Click here to Skip to main content
16,017,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Write to excel Pin
hellogany5-Nov-08 16:11
hellogany5-Nov-08 16:11 
GeneralRe: Write to excel Pin
achainard5-Nov-08 23:35
achainard5-Nov-08 23:35 
AnswerRe: Write to excel Pin
David Crow5-Nov-08 6:05
David Crow5-Nov-08 6:05 
Questionhow to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 3:21
Krzysztof Gorgolewski5-Nov-08 3:21 
AnswerRe: how to get the HWND from the windows on the "locked screen" Pin
Iain Clarke, Warrior Programmer5-Nov-08 4:52
Iain Clarke, Warrior Programmer5-Nov-08 4:52 
GeneralRe: how to get the HWND from the windows on the "locked screen" Pin
SandipG 5-Nov-08 5:25
SandipG 5-Nov-08 5:25 
QuestionRe: how to get the HWND from the windows on the "locked screen" Pin
David Crow5-Nov-08 6:07
David Crow5-Nov-08 6:07 
QuestionRe: how to get the HWND from the windows on the "locked screen" Pin
Roger Stoltz5-Nov-08 6:36
Roger Stoltz5-Nov-08 6:36 
Krzysztof Gorgolewski wrote:
i'm trying to get the window handle from the only window, when my windows is locked.



So you want to get a handle to the window that is displayed when the user session is locked...

Why?
In order to do what? Suspicious | :suss:


From a technical aspect I doubt this is even possible, but here are my thoughts...
From that screen you can switch user through "Fast User Switching", which means that you create or active another desktop. This suggests to me that this window doesn't even belong to the session your application is running in and this is probably also why ::FindWindow() cannot find the window.

If you want to know when the session gets locked you can register for session notifications with WTSRegisterSessionNotification() and process the WM_WTSSESSION_CHANGE message.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown


AnswerRe: how to get the HWND from the windows on the "locked screen" Pin
SimonSays5-Nov-08 7:37
SimonSays5-Nov-08 7:37 
QuestionRe: how to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 8:11
Krzysztof Gorgolewski5-Nov-08 8:11 
RantRe: how to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 8:31
Krzysztof Gorgolewski5-Nov-08 8:31 
QuestionRe: how to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 18:42
Krzysztof Gorgolewski5-Nov-08 18:42 
AnswerRe: how to get the HWND from the windows on the "locked screen" Pin
SandipG 5-Nov-08 20:49
SandipG 5-Nov-08 20:49 
NewsRe: how to get the HWND from the windows on the "locked screen" Pin
Krzysztof Gorgolewski5-Nov-08 21:21
Krzysztof Gorgolewski5-Nov-08 21:21 
QuestionAny beginner's SDK tutorials? Pin
Megidolaon5-Nov-08 3:03
Megidolaon5-Nov-08 3:03 
AnswerRe: Any beginner's SDK tutorials? Pin
Saurabh.Garg5-Nov-08 3:11
Saurabh.Garg5-Nov-08 3:11 
AnswerRe: Any beginner's SDK tutorials? Pin
achainard5-Nov-08 3:47
achainard5-Nov-08 3:47 
AnswerRe: Any beginner's SDK tutorials? Pin
SandipG 5-Nov-08 4:01
SandipG 5-Nov-08 4:01 
AnswerRe: Any beginner's SDK tutorials? Pin
Megidolaon6-Nov-08 7:06
Megidolaon6-Nov-08 7:06 
QuestionCalls to windows API is failing for directory created by same process [modified] Pin
Aseem Sharma5-Nov-08 2:34
Aseem Sharma5-Nov-08 2:34 
GeneralRe: Calls to windows API is failing for directory created by same process Pin
led mike5-Nov-08 4:16
led mike5-Nov-08 4:16 
GeneralRe: Calls to windows API is failing for directory created by same process Pin
Aseem Sharma5-Nov-08 20:45
Aseem Sharma5-Nov-08 20:45 
GeneralRe: Calls to windows API is failing for directory created by same process Pin
led mike6-Nov-08 5:34
led mike6-Nov-08 5:34 
GeneralRe: Calls to windows API is failing for directory created by same process Pin
Aseem Sharma6-Nov-08 19:13
Aseem Sharma6-Nov-08 19:13 
QuestionCFileDialog problem in MFC REGULAR DLL [modified] Pin
W.Kim 19875-Nov-08 2:32
W.Kim 19875-Nov-08 2:32 

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.