using GetGUIThreadInfo

This is a discussion on using GetGUIThreadInfo within the Windows Programming forums, part of the Platform Specific Boards category; When i try to use this function (GetGUIThreadInfo) and also the structure GetGUIThreadInfo iam getting a compiler error.The header file ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    8

    using GetGUIThreadInfo

    When i try to use this function (GetGUIThreadInfo) and also the structure GetGUIThreadInfo iam getting a compiler error.The header file windows.h is included.But no way out .

  2. #2
    Registered User
    Join Date
    Nov 2001
    Posts
    1,348
    What is the error message?

    Kuphryn

  3. #3
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136

  4. #4
    Registered User
    Join Date
    Oct 2002
    Posts
    8
    The error message is as below
    error C2065: 'GUITHREADINFO' : undeclared identifier
    error C2065: 'GetGUIThreadInfo' : undeclared identifier

    The header files required are windows.h and winuser.h .
    Even if those are added the error exists!!!

  5. #5
    Registered User johnnie2's Avatar
    Join Date
    Aug 2001
    Posts
    186
    Sounds as though you need to update your headers. Which compiler are you using?
    "Optimal decisions, once made, do not need to be changed." - Robert Sedgewick, Algorithms in C

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    8
    Iam using microsoft vc++.I think u are right .The problem lies in winuser.h
    The macro #ifndef NOWINABLE
    is the cause of the problem. The GetGUIThreadInfo function comes under this .
    The compiler
    Any how i have solved the problem by directly calling the api after loading user32.dll .Also i had to declare and define the structures in my file

    Thanks

  7. #7
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,136
    I think this might be somewhat new (even though it works in win98). In my documentation (the free lcc one), this function isn't there.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21