SAMPLE: Sslogin Utility to Validate User Name and Password

ID: Q151354

The information in this article applies to:

SUMMARY

Sslogin.exe is a utility that allows you to validate a user name and password when using the Visual SourceSafe Command Line.

The following files are included in the file Sslogin.exe:

      Readme.doc
      Sslog16.dll     -- 16-bit DLL
      Sslogin.dll     -- 32-bit DLL

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ Sslogin.exe (size: 61074 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

If an invalid password or user name is passed to the Command Line, Visual SourceSafe does not return an error message that can be detected. The Command Line prompts the user to enter a new password. This causes a problem when the Command is included in an application because the control does not return to the file, and the process does not complete. The Sslogin DLL allows you to check the user name before calling the Command Line functions. Once the user name and password are validated, then the programmer may call the Command Line.

The Sslogin.dll takes three parameters:

      Username (case insensitive)
      Password (case insensitive)
      Path to the UM.DAT file

The DLL returns an integer value representing the success or failure of the operation.

Additional query words: Logged login Keywords : kbfile kbsample kbSSafe400 kbSSafe500

Last Reviewed: October 6, 1998