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 .
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 .
What is the error message?
Kuphryn
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!!!
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
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
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.