Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Stupid problem Pin
Ted Ferenc3-Sep-03 21:55
Ted Ferenc3-Sep-03 21:55 
GeneralRe: Stupid problem Pin
David Crow4-Sep-03 3:07
David Crow4-Sep-03 3:07 
GeneralProblem with thread Pin
Majid Shahabfar3-Sep-03 20:35
Majid Shahabfar3-Sep-03 20:35 
GeneralRe: Problem with thread Pin
Magnus Westin3-Sep-03 21:08
Magnus Westin3-Sep-03 21:08 
GeneralDirectX problem Pin
SteelModule3-Sep-03 19:58
SteelModule3-Sep-03 19:58 
GeneralRe: DirectX problem Pin
JWood5-Sep-03 3:38
JWood5-Sep-03 3:38 
GeneralDetermine if System is Shutting Down/Restarting or Logging off Pin
Paul Farry3-Sep-03 19:58
professionalPaul Farry3-Sep-03 19:58 
GeneralRe: Determine if System is Shutting Down/Restarting or Logging off Pin
Dominik Reichl3-Sep-03 21:51
Dominik Reichl3-Sep-03 21:51 
Have a look at WM_QUERYENDSESSION:

WM_QUERYENDSESSION
The WM_QUERYENDSESSION message is sent when the user chooses to end the session or when an application calls the ExitWindows function. If any application returns zero, the session is not ended. The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.

After processing this message, the system sends the WM_ENDSESSION message with the wParam parameter set to the results of the WM_QUERYENDSESSION message.

WM_QUERYENDSESSION 
nSource = (UINT) wParam;    // source of end-session request 
fLogOff = lParam            // logoff flag
Parameters
nSource - Reserved for future use.
fLogOff - Value of lParam. Indicates whether the user is logging off or shutting down the system. Supported values include: ENDSESSION_LOGOFF.

Return Values
If an application can terminate conveniently, it should return TRUE; otherwise, it should return FALSE.

Big Grin | :-D
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

GeneralHelp Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 19:44
rohit.dhamija3-Sep-03 19:44 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Michael Dunn3-Sep-03 19:52
sitebuilderMichael Dunn3-Sep-03 19:52 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 19:54
BhaskarBora3-Sep-03 19:54 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:11
rohit.dhamija3-Sep-03 20:11 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 20:21
BhaskarBora3-Sep-03 20:21 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
J. Dunlap3-Sep-03 20:30
J. Dunlap3-Sep-03 20:30 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:49
rohit.dhamija3-Sep-03 20:49 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
chifor3-Sep-03 21:19
chifor3-Sep-03 21:19 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 23:35
rohit.dhamija3-Sep-03 23:35 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Braulio Dez3-Sep-03 23:49
Braulio Dez3-Sep-03 23:49 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Maverick4-Sep-03 22:30
Maverick4-Sep-03 22:30 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Dangleberry22-Sep-03 0:00
sussDangleberry22-Sep-03 0:00 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija22-Sep-03 0:11
rohit.dhamija22-Sep-03 0:11 
Questionhow to get IP Pin
igala.net3-Sep-03 19:21
igala.net3-Sep-03 19:21 
AnswerRe: how to get IP Pin
Jason Henderson4-Sep-03 2:44
Jason Henderson4-Sep-03 2:44 
GeneralTranslate this method to c++; Pin
Bo Hunter3-Sep-03 19:05
Bo Hunter3-Sep-03 19:05 
GeneralRe: Translate this method to c++; Pin
HJo3-Sep-03 23:33
HJo3-Sep-03 23:33 

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.