home *** CD-ROM | disk | FTP | other *** search
/ Netware Super Library / Netware Super Library.iso / admin / _winfile / netlog / netlog.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-04  |  693 b   |  24 lines

  1. #include <stdio.h>
  2. #include <nit.h>
  3. #include <nwconn.h> 
  4. #include <string.h>
  5.     
  6. void __far __export getloginfo(char *node,char *objectname)
  7.   {
  8.     WORD connectionNumber,objecttype;
  9.     long objectID;
  10.     BYTE logintime[7];
  11.     char netnum[4],nodenum[6];
  12.     WORD socketnum;                      
  13.               
  14.     connectionNumber = GetConnectionNumber();  
  15.     
  16.     GetInternetAddress(connectionNumber,netnum,nodenum,&socketnum);  
  17.  
  18.     sprintf(node,"%08lX:%08lX%04X",LongSwap(*((long *)&netnum[0])),LongSwap(*((long *)(nodenum))),IntSwap(*((int *)(nodenum + 4))));
  19.  
  20.     GetConnectionInformation(connectionNumber,objectname,&objecttype,&objectID,logintime);
  21.    }
  22.  
  23.  
  24.