Windows idle time
-
I'm just curious, where does this comes from ? the online MSDN ? I do not have it in my 2000 version. :doh: ~RaGE();
-
-
GetLastInputInfo not working properly in Windows 2000 Error: Undefined Identifier for GetLastInputInfo please explain Jack
This is what MSDN says: Requirements Windows NT/2000: Requires Windows NT 3.1 or later. Windows 95/98: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h. Library: Use user32.lib. And what do you mean by not working properly? Can u give details on the improper working? ...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
-
GetLastInputInfo not working properly in Windows 2000 Error: Undefined Identifier for GetLastInputInfo please explain Jack
Please provide a code snippet of how you are using the function.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
This is what MSDN says: Requirements Windows NT/2000: Requires Windows NT 3.1 or later. Windows 95/98: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h. Library: Use user32.lib. And what do you mean by not working properly? Can u give details on the improper working? ...Avenger
Remember... testing & debugging are always part of programming ...so exterminate those stinking bugs
avenger_sb25 wrote: Windows 95/98: Requires Windows 95 or later. The function is not available on Windows 9x platforms.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Please provide a code snippet of how you are using the function.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
I am using Windows 2000 here is the snippet #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { LASTINPUTINFO plii; memset(&plii,0,sizeof(plii)); plii.cbSize = size(plii); if(GetLastInputInfo(&plii )) { //code here } return 0; } Even if I declare the LASTINPUTINFO structure in the header file its not working Sandy
-
I am using Windows 2000 here is the snippet #include "stdafx.h" int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { LASTINPUTINFO plii; memset(&plii,0,sizeof(plii)); plii.cbSize = size(plii); if(GetLastInputInfo(&plii )) { //code here } return 0; } Even if I declare the LASTINPUTINFO structure in the header file its not working Sandy
Well, since what you have is not a true Windows application (e.g., you need a window and a message pump), I'm not sure how
GetLastInputInfo()
is supposed to behave. I may be incorrect, but it wouldn't hurt to at least provide the minimum.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Well, since what you have is not a true Windows application (e.g., you need a window and a message pump), I'm not sure how
GetLastInputInfo()
is supposed to behave. I may be incorrect, but it wouldn't hurt to at least provide the minimum.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Even if I provide a window and check the messages it gives a error saying "Undefined Identifier for "GetLastInputInfo() Jack
Is this a compiler, linker, or run-time error?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Is this a compiler, linker, or run-time error?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
What other files are being
#include
d in stdafx.h?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
What other files are being
#include
d in stdafx.h?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
-
Have you defined
_WIN32_WINNT
? If not, look at line #5040 of winuser.h.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)