home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
- #include <nit.h>
- #include <nwconn.h>
- #include <string.h>
-
- void __far __export getloginfo(char *node,char *objectname)
- {
- WORD connectionNumber,objecttype;
- long objectID;
- BYTE logintime[7];
- char netnum[4],nodenum[6];
- WORD socketnum;
-
- connectionNumber = GetConnectionNumber();
-
- GetInternetAddress(connectionNumber,netnum,nodenum,&socketnum);
-
- sprintf(node,"%08lX:%08lX%04X",LongSwap(*((long *)&netnum[0])),LongSwap(*((long *)(nodenum))),IntSwap(*((int *)(nodenum + 4))));
-
- GetConnectionInformation(connectionNumber,objectname,&objecttype,&objectID,logintime);
- }
-
-
-