Update: It appears that C::B and VS don't use the same windows.h header (there's a windows.h in my C:\MinGW\include directory, and there's one ... somewhere .... in my VS path). The code you have...
Type: Posts; User: tabstop
Update: It appears that C::B and VS don't use the same windows.h header (there's a windows.h in my C:\MinGW\include directory, and there's one ... somewhere .... in my VS path). The code you have...
One possibility: The default value of _WIN32_WINNT, at least on my system in Code::Blocks, is 0x0400; this function requires 0x0500 or larger. You should #define the correct value of _WIN32_WINNT...
Are you linking kernel32.dll (or kernel32.lib) into your project?