Re: Interacting with winlogon Desktop of Windows Vista
- From: "Norman Diamond" <ndiamond@xxxxxxxxxxxxxxxx>
- Date: Fri, 12 Oct 2007 18:51:22 +0900
It's usually a bad idea for a service to open a user's desktop, but I'm not sure about a winlogon desktop.
Anyway, if you're a service then you're running in session 0, and the winlogon desktop is running in some other session. Are you sure that you opened the console session before looking for a winlogon desktop?
"tran kien" <tran kien@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:C11EF68A-AFDA-4835-9234-D78A8B05FC26@xxxxxxxxxxxxxxxx
Hi everybody,
Now I'm writing a software which interacts with winlogon Desktop of Vista. I
want to control winlogon desktop such as show a message box, draw a icon on
winlogon desktop...
But when I opendesktop(), I always meet a message: "Access is denied."
hDesktop = OpenDesktop(
TEXT("Winlogon"),
0,
FALSE,
DESKTOP_CREATEMENU |
DESKTOP_CREATEWINDOW |
DESKTOP_ENUMERATE |
DESKTOP_HOOKCONTROL |
DESKTOP_JOURNALPLAYBACK |
DESKTOP_JOURNALRECORD |
DESKTOP_READOBJECTS |
DESKTOP_SWITCHDESKTOP |
DESKTOP_WRITEOBJECTS |
READ_CONTROL |
WRITE_DAC |
WRITE_OWNER );
I make a windows service to run my program when logon. I don't know why it
show error "Access is denied."
If you know that, please show me. Thank you very much
.
- References:
- Interacting with winlogon Desktop of Windows Vista
- From: tran kien
- Interacting with winlogon Desktop of Windows Vista
- Prev by Date: RE: Windows 2003 Server throughput vs. Windows XP
- Next by Date: Re: Interacting with winlogon Desktop of Windows Vista
- Previous by thread: Interacting with winlogon Desktop of Windows Vista
- Next by thread: Re: Interacting with winlogon Desktop of Windows Vista
- Index(es):
Relevant Pages
|