--- mstools/h/nb30.h 2018/08/09 18:21:14 1.1.1.3 +++ mstools/h/nb30.h 2018/08/09 18:23:10 1.1.1.4 @@ -1,6 +1,6 @@ //*++ // -// Copyright (c) 1991 Microsoft Corporation +// Copyright (c) 1991-1993 Microsoft Corporation // // Module Name: // @@ -20,9 +20,11 @@ //--*/ #ifndef NCB_INCLUDED - #define NCB_INCLUDED +#ifdef __cplusplus +extern "C" { +#endif /**************************************************************** * * @@ -31,7 +33,7 @@ ****************************************************************/ #define NCBNAMSZ 16 /* absolute length of a net name */ -#define MAX_LANA 32 /* lana's in range 0 to MAX_LANA */ +#define MAX_LANA 72 /* lana's in range 0 to MAX_LANA */ /* * Network Control Block @@ -48,7 +50,7 @@ typedef struct _NCB { UCHAR ncb_name[NCBNAMSZ]; /* our blank-padded netname */ UCHAR ncb_rto; /* rcv timeout/retry count */ UCHAR ncb_sto; /* send timeout/sys timeout */ - void (*ncb_post)( struct _NCB * ); /* POST routine address */ + void (CALLBACK *ncb_post)( struct _NCB * ); /* POST routine address */ UCHAR ncb_lana_num; /* lana (adapter) number */ UCHAR ncb_cmd_cplt; /* 0xff => commmand pending */ UCHAR ncb_reserve[10]; /* reserved, used by BIOS */ @@ -303,6 +305,10 @@ Netbios( * Usage in a declaration: NCB_POST MyPostRoutine( PNCB pncb ); * ****************************************************************/ -#define NCB_POST +#define NCB_POST void CALLBACK + +#ifdef __cplusplus +} +#endif #endif /* NCB_INCLUDED */