TForm.WndProc doesn't receive WM_WTSSESSION_CHANGE
Original Reporter info from Mantis: RolfW @Rolf_Wetjen
-
Reporter name: Rolf Wetjen
Original Reporter info from Mantis: RolfW @Rolf_Wetjen
- Reporter name: Rolf Wetjen
Description:
I want to act on WM_WTSSESSION_CHANGE to detect the lock workstation event (key WIN+l).
The attached example shows that TForm1.WndProc doesn't get this message. Same for procedure WTSSessionChange (var Message: TMessage); message WM_WTSSESSION_CHANGE;
Subclassing Form1 (function TForm1_SubClassWndProc (AWnd: HWND; uMsg: UINT; wParam: WParam; lParam: LParam): LRESULT; stdcall;) shows that there are WM_WTSSESSION_CHANGE messages.
Mantis conversion info:
- Mantis ID: 30415
- OS: Windows 7
- OS Build: x64
- Build: 52696
- Platform: Windows
- Version: 2.3 (SVN)