03-16-2010 03:17 PM - edited 03-16-2010 03:17 PM
I get missing prototype error when I call sdk function LockWorkStation.
I have included window.h. (First file)
Windows XP.
What am I missing?
Solved! Go to Solution.
03-16-2010 11:12 PM
Add this before Windows.h if you're running XP
#define _WIN32_WINNT 0x0501
Other values used for different versions of the Win OS. (0x0500 for Win2K, 0x0600 for Vista for example).
http://msdn.microsoft.com/en-us/library/6sehtctf.aspx
It's an OS-specific function so you need to indicate what OS you're targeting. The prototype is in winusers.h but it's guarded by a check for the OS version.
Menchar