Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LVN_GETDISPINFO Using SendMessage Pin
Mike Nordell28-Jan-04 0:35
Mike Nordell28-Jan-04 0:35 
Generalparallel port Pin
Member 64882827-Jan-04 15:10
Member 64882827-Jan-04 15:10 
GeneralRe: parallel port Pin
Antti Keskinen27-Jan-04 19:35
Antti Keskinen27-Jan-04 19:35 
GeneralRe: parallel port Pin
Member 64882828-Jan-04 5:33
Member 64882828-Jan-04 5:33 
GeneralRe: parallel port Pin
Antti Keskinen28-Jan-04 6:42
Antti Keskinen28-Jan-04 6:42 
GeneralRe: parallel port Pin
Member 64882829-Jan-04 15:34
Member 64882829-Jan-04 15:34 
GeneralRe: parallel port Pin
Antti Keskinen30-Jan-04 6:30
Antti Keskinen30-Jan-04 6:30 
GeneralDetecting UPS State Pin
Blake Miller27-Jan-04 15:01
Blake Miller27-Jan-04 15:01 
I have tried to capture WM_POWERBROADCAST and all manner of system messages and API calls.
It seems these messages and API are all 'battery' related and power suspend-state related.

The UPS system service works fine and the 'messenger' service pops up a window when the UPS is running on battery power, and an event is logged to the Windows event log. However, a running application is just terminated seemingly without warning.

So, has anyone worked with the UPS service or some other drivers to be able to detect from their programs that an application is running on Windows that has just been toggled from the AC Power to the UPS Battery power?
Are there some links to this?

The best I came up with so far was some brief Linux code that directly monitored a few signals on the serial port, and I can do that if I have to, but I would rather let the rest of the system interact with the UPS as well.

GeneralRe: Detecting UPS State Pin
David Crow28-Jan-04 2:33
David Crow28-Jan-04 2:33 
GeneralWierd thing with caption... Pin
Snyp27-Jan-04 14:44
Snyp27-Jan-04 14:44 
GeneralRe: Wierd thing with caption... Pin
alex.barylski27-Jan-04 18:33
alex.barylski27-Jan-04 18:33 
GeneralRe: Wierd thing with caption... Pin
Antti Keskinen27-Jan-04 21:50
Antti Keskinen27-Jan-04 21:50 
GeneralRe: Wierd thing with caption... Pin
Snyp28-Jan-04 12:15
Snyp28-Jan-04 12:15 
QuestionHow to hide a dialog temporarily and go to CView to pick a point? Pin
lxy27-Jan-04 14:25
lxy27-Jan-04 14:25 
AnswerRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Antti Keskinen27-Jan-04 21:36
Antti Keskinen27-Jan-04 21:36 
GeneralRe: How to hide a dialog temporarily and go to CView to pick a point? Pin
Anonymous28-Jan-04 16:44
Anonymous28-Jan-04 16:44 
QuestionHow can I get the file size of a file Pin
nachilau27-Jan-04 14:14
nachilau27-Jan-04 14:14 
AnswerRe: How can I get the file size of a file Pin
Brad Bruce27-Jan-04 14:43
Brad Bruce27-Jan-04 14:43 
AnswerRe: How can I get the file size of a file Pin
Michael Gunlock27-Jan-04 17:14
Michael Gunlock27-Jan-04 17:14 
AnswerRe: How can I get the file size of a file Pin
Mukkie28-Jan-04 9:19
Mukkie28-Jan-04 9:19 
GeneralDate format in a List Control Pin
Ger Hayden27-Jan-04 13:20
Ger Hayden27-Jan-04 13:20 
GeneralRe: Date format in a List Control Pin
David Crow27-Jan-04 13:40
David Crow27-Jan-04 13:40 
GeneralRe: Date format in a List Control Pin
Ger Hayden27-Jan-04 19:48
Ger Hayden27-Jan-04 19:48 
GeneralRe: Date format in a List Control Pin
David Crow28-Jan-04 2:28
David Crow28-Jan-04 2:28 
GeneralRe: Date format in a List Control Pin
Ger Hayden31-Jan-04 0:03
Ger Hayden31-Jan-04 0:03 

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.