Click here to Skip to main content
16,011,849 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hidding a file for good Pin
Moak26-Sep-04 23:15
Moak26-Sep-04 23:15 
GeneralEN_CHANGE Pin
gamitech24-Sep-04 23:06
gamitech24-Sep-04 23:06 
GeneralRe: EN_CHANGE Pin
Andrzej Markowski24-Sep-04 23:44
Andrzej Markowski24-Sep-04 23:44 
GeneralRe: EN_CHANGE Pin
Andrzej Markowski3-Oct-04 16:31
Andrzej Markowski3-Oct-04 16:31 
Generalproblem with NT service Pin
JimmyRopes24-Sep-04 23:04
professionalJimmyRopes24-Sep-04 23:04 
GeneralRe: problem with NT service Pin
ThatsAlok24-Sep-04 23:26
ThatsAlok24-Sep-04 23:26 
GeneralRe: problem with NT service Pin
JimmyRopes25-Sep-04 3:38
professionalJimmyRopes25-Sep-04 3:38 
GeneralRe: problem with NT service Pin
Blake Miller27-Sep-04 12:18
Blake Miller27-Sep-04 12:18 
I think this is what youw ere ater originally...

Your service needs to be written with HandlerEx instead of just handler.
Then you should get the SERVICE_CONTROL_POWEREVENT control code.

"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."

"If dwControl is SERVICE_CONTROL_POWEREVENT, this parameter can be one of the values specified in the wParam parameter of the WM_POWERBROADCAST message."

"WM_POWERBROADCAST - Power-management event. This parameter can be one of the following events. Event Meaning
PBT_APMBATTERYLOW Battery power is low.
PBT_APMOEMEVENT OEM-defined event occurred.
PBT_APMPOWERSTATUSCHANGE Power status has changed.
PBT_APMQUERYSUSPEND Request for permission to suspend.
PBT_APMQUERYSUSPENDFAILED Suspension request denied.
PBT_APMRESUMEAUTOMATIC Operation resuming automatically after event.
PBT_APMRESUMECRITICAL Operation resuming after critical suspension.
PBT_APMRESUMESUSPEND Operation resuming after suspension.
PBT_APMSUSPEND System is suspending operation."

GeneralRe: problem with NT service Pin
JimmyRopes27-Sep-04 18:45
professionalJimmyRopes27-Sep-04 18:45 
GeneralProblem with Serial communication Pin
Jbardo24-Sep-04 22:50
Jbardo24-Sep-04 22:50 
GeneralSetting attributes to CFile Pin
ledallam24-Sep-04 20:47
ledallam24-Sep-04 20:47 
GeneralRe: Setting attributes to CFile Pin
BAIJUMAX24-Sep-04 22:50
professionalBAIJUMAX24-Sep-04 22:50 
GeneralRe: Setting attributes to CFile Pin
Andrzej Markowski24-Sep-04 22:52
Andrzej Markowski24-Sep-04 22:52 
GeneralRepainting part of a dialog Pin
Fantmx24-Sep-04 18:12
Fantmx24-Sep-04 18:12 
GeneralRe: Repainting part of a dialog Pin
ThatsAlok24-Sep-04 20:19
ThatsAlok24-Sep-04 20:19 
GeneralRe: Repainting part of a dialog Pin
Michael Dunn25-Sep-04 10:13
sitebuilderMichael Dunn25-Sep-04 10:13 
GeneralUnresolved external symbol _main error Pin
Anonymous24-Sep-04 18:09
Anonymous24-Sep-04 18:09 
Generalcombo box Pin
PrathibaDhinakaran24-Sep-04 17:26
PrathibaDhinakaran24-Sep-04 17:26 
GeneralRe: combo box Pin
Maximilien25-Sep-04 1:41
Maximilien25-Sep-04 1:41 
GeneralRe: combo box Pin
PrathibaDhinakaran11-Oct-04 16:15
PrathibaDhinakaran11-Oct-04 16:15 
GeneralFileSystemWatcher.OnChanged Pin
persian_boi24-Sep-04 16:56
persian_boi24-Sep-04 16:56 
GeneralRe: FileSystemWatcher.OnChanged Pin
Garth J Lancaster24-Sep-04 17:21
professionalGarth J Lancaster24-Sep-04 17:21 
GeneralRe: FileSystemWatcher.OnChanged Pin
Anonymous25-Sep-04 3:41
Anonymous25-Sep-04 3:41 
GeneralC++ timer question Pin
Manu8124-Sep-04 14:58
Manu8124-Sep-04 14:58 
GeneralRe: C++ timer question Pin
David Crow27-Sep-04 10:20
David Crow27-Sep-04 10:20 

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.