home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_02_05
/
2n05033b
< prev
next >
Wrap
Text File
|
1991-03-27
|
1KB
|
44 lines
/*
* File: NetBIOS.H
* Purpose: Contains definitions and declarations for
* NetBIOS communications
*/
#ifndef STANDARD
#include "standard.h"
#endif
/**
NetBIOS Command Block
**/
typedef struct NetbiosCmdBlk {
BYTE command; /* command code */
BYTE status; /* return status*/
BYTE localSession; /* session # */
BYTE nameNumber; /* name number */
FPTR buffer; /* data buffer */
WORD length; /* buffer size */
char callName[16]; /* remote name */
char name[16]; /* local name */
BYTE receiveTimeOut; /* for NB_RECV */
BYTE sendTimeOut; /* for NB_SEND */
void (interrupt far *post)();
BYTE lanAdapter; /* adapter # */
BYTE commandDone; /* finish flag */
BYTE reserved[4];
} NCB;
/**
NetBIOS Command Codes
**/
#define NB_ADDNAME 0x30 /* add unique name */
#define NB_DELNAME 0x31 /* delete name */
#define NB_CALL 0x10 /* request session */
#define NB_LISTEN 0x11 /* wait for call */
#define NB_HANGUP 0x12 /* end session */
#define NB_SEND 0x14 /* session send */
#define NB_RECV 0x15 /* session receive */