Click here to Skip to main content
15,906,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with Windows 95 Pin
29-Jul-01 21:15
suss29-Jul-01 21:15 
GeneralRe: Problem with Windows 95 Pin
Tomasz Sowinski29-Jul-01 23:20
Tomasz Sowinski29-Jul-01 23:20 
GeneralRe: Problem with Windows 95 Pin
Asif Ahmad30-Jul-01 3:13
Asif Ahmad30-Jul-01 3:13 
GeneralRe: Problem with Windows 95 Pin
Tomasz Sowinski30-Jul-01 3:21
Tomasz Sowinski30-Jul-01 3:21 
GeneralRe: Problem with Windows 95 Pin
Paolo Messina30-Jul-01 8:03
professionalPaolo Messina30-Jul-01 8:03 
GeneralRe: Problem with Windows 95 Pin
Tomasz Sowinski30-Jul-01 8:41
Tomasz Sowinski30-Jul-01 8:41 
GeneralRe: Problem with Windows 95 Pin
Asif Ahmad30-Jul-01 21:28
Asif Ahmad30-Jul-01 21:28 
GeneralQuery regarding WinNT sleep state Pin
Sandeep Shetty29-Jul-01 20:58
Sandeep Shetty29-Jul-01 20:58 
Hello !!


I want to take the system into sleep state aand wake the system after say 10 seconds..

I am using the API SetSystemPowerState(). I have used Setwaitabletimer for 10 seconds to fire an signal after 10 seconds so as to wake the system and come out of sleep state.The system is going into sleep state and then returning from sleep after 10 seconds(indicator lights on the monitor changes but nothing appears on the screen) but nothing on the screen is visible afterwards. Only when I press a key or move the mouse does the monitor gets refreshed. Is there some problem in the permissions set???

Can you please help.
I have used the following:
OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY,&hToken));
LookupPrivilegeValue(NULL,SE_SHUTDOWN_NAME ,&tkp.Privileges[0].Luid);
AdjustTokenPrivileges(hToken,FALSE,&tkp,sizeof(TOKEN_PRIVILEGES), &oldtp&dwSize);


Sandeep
GeneralRe: Query regarding WinNT sleep state Pin
Paolo Messina30-Jul-01 8:10
professionalPaolo Messina30-Jul-01 8:10 
GeneralDialog Resource Language Pin
Michael Martin29-Jul-01 20:46
professionalMichael Martin29-Jul-01 20:46 
GeneralRe: Dialog Resource Language Pin
Tomasz Sowinski29-Jul-01 23:48
Tomasz Sowinski29-Jul-01 23:48 
GeneralRe: Dialog Resource Language Pin
Michael Martin30-Jul-01 3:52
professionalMichael Martin30-Jul-01 3:52 
GeneralBCGLibrary 5.1 Pin
Tran Hoang Chuong29-Jul-01 15:59
Tran Hoang Chuong29-Jul-01 15:59 
GeneralRe: BCGLibrary 5.1 Pin
#realJSOP30-Jul-01 0:46
professional#realJSOP30-Jul-01 0:46 
GeneralRe: BCGLibrary 5.1 Pin
Joel Holdsworth30-Jul-01 9:38
Joel Holdsworth30-Jul-01 9:38 
GeneralRe: BCGLibrary 5.1 Pin
Joel Holdsworth30-Jul-01 9:38
Joel Holdsworth30-Jul-01 9:38 
GeneralUsing MFC HTTP over SSL Pin
29-Jul-01 12:06
suss29-Jul-01 12:06 
GeneralRe: Using MFC HTTP over SSL Pin
Martin Ziacek30-Jul-01 3:21
Martin Ziacek30-Jul-01 3:21 
GeneralHiding the Menu Bar Pin
Jeff Holtz29-Jul-01 11:09
Jeff Holtz29-Jul-01 11:09 
GeneralRe: Hiding the Menu Bar Pin
Tomasz Sowinski29-Jul-01 23:44
Tomasz Sowinski29-Jul-01 23:44 
GeneralRe: Hiding the Menu Bar Pin
Jeff Holtz30-Jul-01 3:57
Jeff Holtz30-Jul-01 3:57 
GeneralRe: Hiding the Menu Bar Pin
Tomasz Sowinski30-Jul-01 6:09
Tomasz Sowinski30-Jul-01 6:09 
GeneralC programming phonebook using structs Pin
minikg29-Jul-01 11:06
minikg29-Jul-01 11:06 
GeneralRe: C programming phonebook using structs Pin
Stan Shannon29-Jul-01 12:08
Stan Shannon29-Jul-01 12:08 
GeneralRe: C programming phonebook using structs Pin
minikg29-Jul-01 12:26
minikg29-Jul-01 12:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.