Menu

Missing win32API functions/constants

2002-12-11
2012-09-26
  • Nobody/Anonymous

    Excuse me if this is common knowledge but the search feature of this forum seems to be down.  I decided to write some code to support fast user switching in winblows XP.  I decided to use Dev-C++ for this project but the included win32api headers/libs don't seem to support the necessary function calls and constants.  These functions/constants are included with the MS Platform SDK.  How do I integrate the SDK headers/libs with the Dev-C++ environment?  Or do I?  This link shows what I'm tryin to accomlish: http://support.microsoft.com/default.aspx?scid=KB;en-us;q310153

    Thanks in advance.

     
    • Derek Baker

      Derek Baker - 2002-12-11

      Hi.

      The link you gave, reported article not found when I tried it.

      What compiler do you have?

      Derek

       
    • Nobody/Anonymous

      The link should be valid.  Either way its Microsoft Knowledge Base Article - 310153.  It's a how-to on writing an application to support fast user switching.  I'm using the mingw compiler (default install of Dec-C++).

       
    • Derek Baker

      Derek Baker - 2002-12-11

      Exactly what is missing?

      Derek

       
    • Nobody/Anonymous

      The wtsapi32.h include which contains the WTSRegisterSessionNotification function prototype among others. And the winuser.h file included with the default install of Dev-C++/mingw does not contain the #defines for WM_WTSSESSION_CHANGE, as well as, the associated WPARAM codes for this message (ie WTS_CONSOLE_CONNECT, WTS_CONSOLE_DISCONNECT, ...)

      Thanks again for the help.

       
    • Derek Baker

      Derek Baker - 2002-12-11

      Apparently they're not there.

      I've already posted a bug report about missing #defines in mingw3.2, in this case for the mouse wheel.

      Mingw3.2  winuser,h is only 104KB, that for DMs compiler 189KB and that for Visual C++ 6.0 232KB

      Possibly quite a lot missing.

      Derek

       
      • Nobody/Anonymous

        Did you try to update your header?

        I had to update commctrl.h and #define _WIN32_IE 0x0400 to get flat toolbars to work.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.