Click here to Skip to main content
15,927,593 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Socket messages Pin
erkanina2-Jun-04 1:54
erkanina2-Jun-04 1:54 
GeneralRe: Socket messages Pin
erkanina2-Jun-04 2:03
erkanina2-Jun-04 2:03 
Generalworking with CToolTipCtrl Pin
Aviv Halperin2-Jun-04 1:01
Aviv Halperin2-Jun-04 1:01 
GeneralI wnt to convert SDI project to MDI Pin
auur2-Jun-04 1:00
auur2-Jun-04 1:00 
GeneralRe: I wnt to convert SDI project to MDI Pin
David Crow2-Jun-04 3:08
David Crow2-Jun-04 3:08 
Generalwindows services Pin
Csharper992-Jun-04 0:57
Csharper992-Jun-04 0:57 
GeneralRe: windows services Pin
David Crow2-Jun-04 3:09
David Crow2-Jun-04 3:09 
GeneralRe: windows services Pin
Blake Miller2-Jun-04 4:14
Blake Miller2-Jun-04 4:14 
If you only have to run on WindowsXP or later, you are in luck.
Your service, after registering its service control handler function, should receive a control event of SERVICE_CONTROL_SESSIONCHANGE. This will pass a data structure with the information about what happened: log on, log off, session locked, etc.

From MSDN:"A HandlerEx function is an application-defined callback function used with the RegisterServiceCtrlHandlerEx function. A service program can use it as the control handler function of a particular service.

The LPHANDLER_FUNCTION_EX type defines a pointer to this function. HandlerEx is a placeholder for the application-defined name.

This function supersedes the Handler control handler function used with the RegisterServiceCtrlHandler function. A service can use either control handler, but the new control handler supports user-defined context data and additional extended control codes."

Also see this:"WTSSESSION_NOTIFICATION
The WTSSESSION_NOTIFICATION structure provides information about the session change notification. A service receives this structure in its HandlerEx function in response to a session change event."


Ticking away the moments that make up a dull day, I friter and waster the hours in an offhand way...
GeneralMenu Item Bitmap Pin
amine.turki2-Jun-04 0:51
amine.turki2-Jun-04 0:51 
GeneralRe: Menu Item Bitmap Pin
Anonymous2-Jun-04 1:31
Anonymous2-Jun-04 1:31 
GeneralMenu Item Bitmap Pin
amine.turki2-Jun-04 0:51
amine.turki2-Jun-04 0:51 
Generalvector to raster, have u ever heard Pin
neuconcongaymai2-Jun-04 0:39
neuconcongaymai2-Jun-04 0:39 
GeneralRe: vector to raster, have u ever heard Pin
neuconcongaymai2-Jun-04 23:31
neuconcongaymai2-Jun-04 23:31 
GeneralRe: vector to raster, have u ever heard Pin
eric_burden6-Jul-04 2:55
eric_burden6-Jul-04 2:55 
GeneralConnecting to a datasource Pin
si_692-Jun-04 0:20
si_692-Jun-04 0:20 
GeneralRe: Connecting to a datasource Pin
GermanGeorge2-Jun-04 2:31
GermanGeorge2-Jun-04 2:31 
GeneralRe: Connecting to a datasource Pin
si_692-Jun-04 2:53
si_692-Jun-04 2:53 
GeneralRe: Connecting to a datasource Pin
David Crow2-Jun-04 3:14
David Crow2-Jun-04 3:14 
GeneralRe: Connecting to a datasource Pin
si_692-Jun-04 3:25
si_692-Jun-04 3:25 
GeneralRe: Connecting to a datasource Pin
David Crow2-Jun-04 3:34
David Crow2-Jun-04 3:34 
GeneralRe: Connecting to a datasource Pin
si_692-Jun-04 3:37
si_692-Jun-04 3:37 
Generalexperts guide Pin
ykutanoor2-Jun-04 0:17
ykutanoor2-Jun-04 0:17 
GeneralRe: experts guide Pin
David Crow2-Jun-04 3:25
David Crow2-Jun-04 3:25 
QuestionHow to get Ip Pin
gamitech1-Jun-04 23:42
gamitech1-Jun-04 23:42 
AnswerRe: How to get Ip Pin
Nirav Doshi1-Jun-04 23:54
Nirav Doshi1-Jun-04 23:54 

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.