#include <nwserver.h> #include <nwbindry.h> or #include <nwcalls.h>NWCCODE N_API NWLoginToFileServer (NWCONN_HANDLE conn, pnstr8 objName, nuint16 objType, pnstr8 password);
If a Directory Services attachment exists, NWLoginToFileServer fails with 0x8800.
Before calling NWLoginToFileServer, call NWGetConnectionStatus and check CONNECTION_NDS. If it is set, NWLoginToFileServer cannot be used to log in. NWDetachFromFileServer will also be prevented from being called. Call Directory Services functions to continue the operation.
If the encryption key is not available, it attempts an unencrypted login. If the key is available, the password is encrypted and an encrypted login is attempted.
NWLoginToFileServer performs only the login, not the attach. Clients must be previously attached to call NWLoginToFileServer. Attaching to a NetWare server is not the same as logging in. A workstation attaches to a NetWare server to obtain a connection number. The workstation can then log in to the NetWare server using that connection number. NWLoginToFileServer does not, however, interpret the login script.
Valid Bindery object types for OT_ constants follow:
OT_WILD 0xFFFF OT_UNKNOWN 0x0000 OT_USER 0x0100 OT_USER_GROUP 0x0200 OT_PRINT_QUEUE 0x0300 OT_FILE_SERVER 0x0400 OT_JOB_SERVER 0x0500 OT_GATEWAY 0x0600 OT_PRINT_SERVER 0x0700 OT_ARCHIVE_QUEUE 0x0800 OT_ARCHIVE_SERVER 0x0900 OT_JOB_QUEUE 0x0A00 OT_ADMINISTRATION 0x0B00 OT_NAS_SNA_GATEWAY 0x2100 OT_REMOTE_BRIDGE_SERVER 0x2600 OT_TCPIP_GATEWAY 0x2700
Extended bindery object types follow:
OT_TIME_SYNCHRONIZATION_SERVER 0x2D00 OT_ARCHIVE_SERVER_DYNAMIC_SAP 0x2E00 OT_ADVERTISING_PRINT_SERVER 0x4700 OT_PRINT_QUEUE_USER 0x5300
File Server Environment