Hi,
I'm developing on WinXP and deploying on W2K so the path
to System32 directory is different on each system. I'm
trying to import DLLs from the Win32 API, but I have to
change the path and recompile before punching things up
to the server.
private const string SYSTEM32_PATH = @"C:\Winnt\System32
\"; // Or locally @"C:\Windows\System32\";
[DllImport(SYSTEM32_PATH + "Kernel32.dll")]
public static extern int GetLastError();
Is there a standard format for getting access to these
directories?? I thought it was something like %System%
but I think I've tried every combination of '/', '\'
and '%' to no avail. The help sytem has, as usual, not
lived upto it's name...!!
Thanks in advance
Paul