home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
proglang
/
dbms9106.arj
/
OLY2
< prev
next >
Wrap
Text File
|
1991-04-23
|
855b
|
28 lines
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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);
}
/*-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*/