hidden hit counter
Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

How to auto logon windowsxp in winlogon notification packa..

 
   Soft32 Home -> Windows -> Security Admin RSS
Next:  How to Convert HD Video Between HD and Standard V..  
Author Message
dawnwind

External


Since: Sep 15, 2009
Posts: 1



(Msg. 1) Posted: Mon Sep 14, 2009 11:20 pm
Post subject: How to auto logon windowsxp in winlogon notification package?
Archived from groups: microsoft>public>security, others (more info?)

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.
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Slow Auto Logon in Windows XP - Hi all, I have a problem for slow auto logon without any domain (just a workgroup) for running in Fujistu P7230..

WinXP Hibernation, Logon,hibernate,resume,no Logon, comput.. - Hibernation works great on all the computers I've ever used...but whether on a network or just home PC, I of course..

Logout/Logon with different user causes double logon prompt - Hello, I have an XP workstation that is a member of a local domain. When I log onto the XP workstation via the..

User Notification of Failed Logins and Controlling Concurr.. - I have been searching for a soultion that has been vexxing my Security program. I work for a large company (+10,000..

Auto update problem - When Autoupdate is enabled there are multiple DCOM errors in the event viewer. When disabled I get the following error...

auto updates denied - I just bought this used computer that has xp pro on it and every time that I try to get auto updates I get a message..
       Soft32 Home -> Windows -> Security Admin All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows
 Linux
 Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]