-
Can't layer Windows 2000 logon prompt
(I cancelled my post in vb.general. Maybe I'll have better luck here.)
Hi all,
I'm having some trouble getting the Windows 2000 "Log On to Windows" prompt
to accept WS_EX_LAYERED. The application I wrote can layer itself and any
other window at time when the logon window is shown, but not the logon
window itself.
It's odd because I can show/hide/resize/bitblt the window (it's accepting
some messages), but whenever I try to set WS_EX_LAYERED, it never sticks.
The code is pretty simple:
Dim l As Long
l = GetWindowLong(hWnd, GWL_EXSTYLE)
SetWindowLong hWnd, GWL_EXSTYLE, l Or WS_EX_LAYERED
SetLayeredWindowAttributes hWnd, 0, 180, ULW_ALPHA
It's not the code, because it works on every other window I try it on. My
only guess is that winlogon.exe rejects certain window messages for security
purposes. But it accepts some messages that could be considered
compromising (SW_HIDE), so I'm just confused.
Any help would be appreciated.
Thanks, Ted.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|