home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / dbms_mag / 9106 / oly2 < prev    next >
Text File  |  1991-04-23  |  855b  |  28 lines

  1. /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  2.   NOVLCONN.C, by P. L. Olympia, Platinum Software Int'l, 03/91
  3.   From: DBMS Set Expert On Column, 06/91 issue
  4.  
  5.   Small TurboC program that returns the userid and connection
  6.   number of a Novell workstation. Compile with:
  7.     tcc -c -ml novlconn
  8. -------------------------------------------------------------*/
  9.  
  10. #include <stdio.h>
  11. #include <nit.h>
  12. #include <niterror.h>
  13.  
  14. char *userid(char *objectName, WORD *ConnectNumber)
  15. {
  16. /*    WORD ConnectNumber; */
  17.     long objectID;
  18.     WORD objectType;
  19.     BYTE loginTime[7];
  20.  
  21. /* Get user's object name */
  22.    *ConnectNumber =  GetConnectionNumber();
  23.     GetConnectionInformation(*ConnectNumber, objectName,
  24.             &objectType, &objectID,loginTime);
  25. }
  26.  
  27. /*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/
  28.