Re: Interacting with winlogon Desktop of Windows Vista

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: Interacting with winlogon Desktop of Windows Vista
    ... In another session. ... same session and it start same time with winlogon desktop start) ... service runs in the Local System account, I think you can open winlogon ... maybe you need to add some privileges to ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Interacting with winlogon Desktop of Windows Vista
    ... More recently in Vista I used some APIs such as WTSGetActiveConsoleSessionId and WTSSendMessage and WTSQuerySessionInformationW. ... In another session. ... same session and it start same time with winlogon desktop start) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Interacting with winlogon Desktop of Windows Vista
    ... If we interact with winlogon desktop we must ... every winlogon desktop in every session. ... SENS always ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Interacting with winlogon Desktop of Windows Vista
    ... Sorry I haven't used the APIs that you discuss here, and can only help a little bit. ... Again, if your service runs in the Local System account, then your process starts with enough privileges to add any additional privileges that it needs. ... every winlogon desktop in every session. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Interacting with winlogon Desktop of Windows Vista
    ... the session attached to the glass terminal ... Now I'm writing a software which interacts with winlogon Desktop of Vista. ... But when I opendesktop(), I always meet a message: ...
    (microsoft.public.win32.programmer.kernel)