Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. WINAPI Function - NT Only!?

WINAPI Function - NT Only!?

Scheduled Pinned Locked Moved C / C++ / MFC
jsonarchitecturequestion
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    carp
    wrote on last edited by
    #1

    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:

    J C M 3 Replies Last reply
    0
    • C carp

      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:

      J Offline
      J Offline
      Jeremy Falcon
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • C carp

        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:

        C Offline
        C Offline
        Chad Koehler
        wrote on last edited by
        #3

        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()

        1 Reply Last reply
        0
        • C carp

          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:

          M Offline
          M Offline
          Mike Nordell
          wrote on last edited by
          #4

          Since "Windows 2000" and "Windows XP" are just marketdroid names for NT5 and NT5.1, of course they are included in "NT only" stuff.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups