VC++: entry GetComputerNameExA couldn't be found in kernel32.dll
Posted on 2006-05-13
my VC+++ program I designed to run in NT4, W2K, WXP, W2K3.
The program is compiled in W2K using VS.Net 2003 (unmanaged).
If I'm executing the program in NT4, I get the message
"entry GetComputerNameExA couldn't be found in kernel32.dll"
Now I'm looking for a way to prevent this.
Currently I'm checking for NT4 and ignore executing this API,
but this is not sufficient.
Does anyone know what I need to change?
If required please supply some code.
Thank you HStrix