A Windows XP help forum. PCbanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » PCbanter forum » Microsoft Windows XP » Security and Administration with Windows XP
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to auto logon windowsxp in winlogon notification package?



 
 
Thread Tools Display Modes
  #1  
Old September 15th 09, 05:11 AM posted to microsoft.public.security,microsoft.public.win2000.security,microsoft.public.windowsxp.security_admin
dawnwind
external usenet poster
 
Posts: 1
Default How to auto logon windowsxp in winlogon notification package?

Hi all
I have write a winlogon notification package for WindowsXP. It will show a
dialog in Startup event. And I want login automatically, how to do this?
I have written the flowing code in startup callbak

LogonUser( TEXT("Administrator"),NULL,TEXT("111"),
LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT ,&hToken);

HDESK hDesk = ::CreateDesktop( _T("WinSta0\\Default"), NULL, NULL,
DF_ALLOWOTHERACCOUNTHOOK, GENERIC_ALL, NULL );

SwitchDesktop( hDesk );
bRet = ::CreateProcessAsUser( hToken,

NULL, _T("explorer.exe"), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi );



It will get BSOD at CreateProcessAsUser. Is there some thing I missed? How
can I do this?



Thanks very much.






Ads
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off






All times are GMT +1. The time now is 02:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 PCbanter.
The comments are property of their posters.