Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
2.2 KiB

  1. #ifdef VXD
  2. #ifndef _NBT_H
  3. #define _NBT_H
  4. //
  5. // lifted from windef.h and ntdef.h
  6. //
  7. #define VOID void
  8. typedef void *PVOID;
  9. typedef char CHAR;
  10. typedef CHAR *PCHAR;
  11. typedef unsigned char UCHAR;
  12. typedef UCHAR *PUCHAR;
  13. typedef short SHORT;
  14. typedef unsigned short USHORT;
  15. typedef USHORT *PUSHORT;
  16. typedef unsigned long ULONG;
  17. typedef ULONG *PULONG;
  18. typedef unsigned long DWORD;
  19. typedef int BOOL;
  20. typedef UCHAR BOOLEAN;
  21. typedef unsigned char BYTE;
  22. typedef unsigned short WORD;
  23. #define APIENTRY WINAPI
  24. #define IN
  25. #define OUT
  26. #define STDOUT stdout
  27. #define STDERR stderr
  28. #include <windows.h>
  29. #include <conio.h>
  30. #include <stdio.h>
  31. #include <string.h>
  32. #include <varargs.h>
  33. #include <stdarg.h>
  34. #include <stdlib.h>
  35. #include <time.h>
  36. #include <fcntl.h>
  37. #include <io.h>
  38. #include <memory.h>
  39. #include <ctype.h>
  40. #include <malloc.h>
  41. #include <time.h>
  42. #include <nb30.h>
  43. //
  44. // This lifted straight from miniport.h
  45. //
  46. typedef double LONGLONG;
  47. #if defined(MIDL_PASS)
  48. typedef struct _LARGE_INTEGER {
  49. #else // MIDL_PASS
  50. typedef union _LARGE_INTEGER {
  51. struct {
  52. ULONG LowPart;
  53. LONG HighPart;
  54. };
  55. struct {
  56. ULONG LowPart;
  57. LONG HighPart;
  58. } u;
  59. #endif //MIDL_PASS
  60. LONGLONG QuadPart;
  61. } LARGE_INTEGER;
  62. typedef LARGE_INTEGER *PLARGE_INTEGER;
  63. //
  64. // These definitions work around NTisms found in various difficult to change
  65. // places.
  66. //
  67. typedef ULONG NTSTATUS ;
  68. typedef PNCB PIRP ;
  69. typedef PVOID PDEVICE_OBJECT ;
  70. #include <tdi.h>
  71. #include <tdistat.h>
  72. #include <tdiinfo.h>
  73. #include <nbtioctl.h>
  74. #include <netvxd.h>
  75. #include <winsock.h>
  76. #include <assert.h>
  77. //
  78. // These are needed because we include windef.h rather then
  79. // ntddk.h, which end up not being defined
  80. // Also, from ntdef.h and ntstatus.h
  81. //
  82. #define NT_SUCCESS(err) ((err==TDI_SUCCESS)||(err==TDI_PENDING))
  83. #define STATUS_SUCCESS 0
  84. #define STATUS_BUFFER_OVERFLOW 9
  85. #define STATUS_INVALID_PARAMETER 10
  86. #define STATUS_INSUFFICIENT_RESOURCES 1
  87. #define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)
  88. #define CTRL_C 3
  89. #endif // _NBT_H
  90. #endif // VXD