WINAPI Function - NT Only!?
-
When MSDN specifies that an API call is "NT Only", like WH_MOUSE_LL, does that include / exclude Win 2000 and XP... which are based on the NT architecture. I need to use the WH_MOUSE_LL mouse hook, but it is an undeclared identifier even after including the neccesary includes: winuser.h & windows.h. Is this because I'm developing on a Win2K machine? Or have I missed something else? -serp13:wtf:
-
When MSDN specifies that an API call is "NT Only", like WH_MOUSE_LL, does that include / exclude Win 2000 and XP... which are based on the NT architecture. I need to use the WH_MOUSE_LL mouse hook, but it is an undeclared identifier even after including the neccesary includes: winuser.h & windows.h. Is this because I'm developing on a Win2K machine? Or have I missed something else? -serp13:wtf:
It's supported on Windows NT 4.0 Service Pack 3 and greater. This includes 2K and XP, but in order to build a project you'll needed updated headers and includes. MSDN says the version of winuser.h that ships with VC++ 5 doesn't have it, and I don't know about VC++ 6 off the top of my head. Either way, download or order a copy of the Platform SDK and install it to get newer versions of the headers. Jeremy Falcon Imputek
-
When MSDN specifies that an API call is "NT Only", like WH_MOUSE_LL, does that include / exclude Win 2000 and XP... which are based on the NT architecture. I need to use the WH_MOUSE_LL mouse hook, but it is an undeclared identifier even after including the neccesary includes: winuser.h & windows.h. Is this because I'm developing on a Win2K machine? Or have I missed something else? -serp13:wtf:
try adding the following to your code (before including windows.h and winuser.h) #define _WIN32_WINNT 0x0500 I needed it for the function InitializeCriticalSectionAndSpinCount()
-
When MSDN specifies that an API call is "NT Only", like WH_MOUSE_LL, does that include / exclude Win 2000 and XP... which are based on the NT architecture. I need to use the WH_MOUSE_LL mouse hook, but it is an undeclared identifier even after including the neccesary includes: winuser.h & windows.h. Is this because I'm developing on a Win2K machine? Or have I missed something else? -serp13:wtf:
Since "Windows 2000" and "Windows XP" are just marketdroid names for NT5 and NT5.1, of course they are included in "NT only" stuff.