eug_prog
July 19th, 2006, 06:23 PM
Hello,
I have a simple C program that invokes GetComputerNameEx() with
'(COMPUTER_NAME_FORMAT)ComputerNameDnsFullyQualified' value as first parameter. During compilation (via cl.exe command line or as part of
VC 2003 project), I consistently get compile error (see "subject line"
above). That is happening despite the following definitions on my
WinXP system:
#ifdef WINVER
#undef WINVER
#endif
#define APPVER 5.0
#define WINVER 0x0501
#define _WIN32_WINNT WINVER
#ifndef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WINXPSP2
#endif
How can I compile a program that tries to use GetComputerNameEx()?!?
I have a simple C program that invokes GetComputerNameEx() with
'(COMPUTER_NAME_FORMAT)ComputerNameDnsFullyQualified' value as first parameter. During compilation (via cl.exe command line or as part of
VC 2003 project), I consistently get compile error (see "subject line"
above). That is happening despite the following definitions on my
WinXP system:
#ifdef WINVER
#undef WINVER
#endif
#define APPVER 5.0
#define WINVER 0x0501
#define _WIN32_WINNT WINVER
#ifndef NTDDI_VERSION
#define NTDDI_VERSION NTDDI_WINXPSP2
#endif
How can I compile a program that tries to use GetComputerNameEx()?!?