I have problems with GetEnvironmentVariable_ on Windows 2000. It works ok on XP, but on W2K it generates an error "ModName: ntdll.dll".
I've also tried Droopy's lib, but the same there - works on XP, not on W2K....
Any suggestions?


GetEnvironmentVariable wrote:Client Requires Windows XP, Windows 2000 Professional, Windows NT Workstation, Windows Me, Windows 98, or Windows 95.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server.
Header Declared in Winbase.h; include Windows.h.
Library Link to Kernel32.lib.
DLL Requires Kernel32.dll.
Unicode Implemented as GetEnvironmentStringsW (Unicode) and GetEnvironmentStringsA (ANSI). Note that Unicode support on Windows Me/98/95 requires Microsoft Layer for Unicode.
Yes, Windows 2000 Server. However this should not be a problem on Server. I will test it on a W2k Server box if that is what techjunkie is running.Dare2 wrote:Although the SDK mentions Win2000 Professional and not Win2000 "non-professional" (is there such a thing?).

