How to Perform Programmatic Logon from Windows for WorkgroupsLast reviewed: October 21, 1996Article ID: Q131202  | 
	
	
 
The information in this article applies to:
 SUMMARYI_AutoLogon is the only documented API for doing a programmatic logon from Windows for Workgroups. This API requires the user to type a user name and password. There aren't any other documented functions for performing logons. In particular, there is nothing documented to: 
 MORE INFORMATIONIt is possible to perform a logon in an indirect fashion by executing a batch file that calls NET LOGON. For example, you might have a file named LOGON.BAT that contains: 
 REM batch file that performs a logon NET LOGON <username> <password> /DOMAIN:<mydomain>You can use WinExec to execute the batch file: 
 WinExec( "LOGON.BAT", SW_HIDE ); REFERENCESFor more information, please see the Windows for Workgroups SDK Help file. 
  | 
	
	Additional reference words: 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |