The API LoginToFileServer allows you to login to a file server in bindery mode.
The documenation for the API explains very well how to use the API with one exception, the password must be converted to UPPERCASE, using something like strupr(), before passing it to the API. If the password is not uppercase, LoginToFileServer() will return error 255 (0xff), which is simply 'Login Failure'.
Example:
char pswd[127];
printf("Enter password: "); gets(pswd); LoginToFileServer("myserver/joe",OT_USER,strupr(pswd));
| icon002.exe | 18.9 K | 2005-04-06 |
© 2009 Novell, Inc. All Rights Reserved.