windows-nt/Source/XPSP1/NT/net/netbt/nbtstat/vxdonly.h

110 lines
2.2 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#ifdef VXD
#ifndef _NBT_H
#define _NBT_H
//
// lifted from windef.h and ntdef.h
//
#define VOID void
typedef void *PVOID;
typedef char CHAR;
typedef CHAR *PCHAR;
typedef unsigned char UCHAR;
typedef UCHAR *PUCHAR;
typedef short SHORT;
typedef unsigned short USHORT;
typedef USHORT *PUSHORT;
typedef unsigned long ULONG;
typedef ULONG *PULONG;
typedef unsigned long DWORD;
typedef int BOOL;
typedef UCHAR BOOLEAN;
typedef unsigned char BYTE;
typedef unsigned short WORD;
#define APIENTRY WINAPI
#define IN
#define OUT
#define STDOUT stdout
#define STDERR stderr
#include <windows.h>
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include <varargs.h>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <fcntl.h>
#include <io.h>
#include <memory.h>
#include <ctype.h>
#include <malloc.h>
#include <time.h>
#include <nb30.h>
//
// This lifted straight from miniport.h
//
typedef double LONGLONG;
#if defined(MIDL_PASS)
typedef struct _LARGE_INTEGER {
#else // MIDL_PASS
typedef union _LARGE_INTEGER {
struct {
ULONG LowPart;
LONG HighPart;
};
struct {
ULONG LowPart;
LONG HighPart;
} u;
#endif //MIDL_PASS
LONGLONG QuadPart;
} LARGE_INTEGER;
typedef LARGE_INTEGER *PLARGE_INTEGER;
//
// These definitions work around NTisms found in various difficult to change
// places.
//
typedef ULONG NTSTATUS ;
typedef PNCB PIRP ;
typedef PVOID PDEVICE_OBJECT ;
#include <tdi.h>
#include <tdistat.h>
#include <tdiinfo.h>
#include <nbtioctl.h>
#include <netvxd.h>
#include <winsock.h>
#include <assert.h>
//
// These are needed because we include windef.h rather then
// ntddk.h, which end up not being defined
// Also, from ntdef.h and ntstatus.h
//
#define NT_SUCCESS(err) ((err==TDI_SUCCESS)||(err==TDI_PENDING))
#define STATUS_SUCCESS 0
#define STATUS_BUFFER_OVERFLOW 9
#define STATUS_INVALID_PARAMETER 10
#define STATUS_INSUFFICIENT_RESOURCES 1
#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
#define CTRL_C 3
#endif // _NBT_H
#endif // VXD