#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 #include #include #include #include #include #include #include #include #include #include #include #include #include #include // // 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 #include #include #include #include #include #include // // 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