home *** CD-ROM | disk | FTP | other *** search
- /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- NOVLCONN.C, by P. L. Olympia, Platinum Software Int'l, 03/91
- From: DBMS Set Expert On Column, 06/91 issue
-
- Small TurboC program that returns the userid and connection
- number of a Novell workstation. Compile with:
- tcc -c -ml novlconn
- -------------------------------------------------------------*/
-
- #include <stdio.h>
- #include <nit.h>
- #include <niterror.h>
-
- char *userid(char *objectName, WORD *ConnectNumber)
- {
- /* WORD ConnectNumber; */
- long objectID;
- WORD objectType;
- BYTE loginTime[7];
-
- /* Get user's object name */
- *ConnectNumber = GetConnectionNumber();
- GetConnectionInformation(*ConnectNumber, objectName,
- &objectType, &objectID,loginTime);
- }
-
- /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/