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.

132 lines
2.5 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. win16nt.h
  5. Abstract:
  6. This file contains data types for 16 bit windows on DOS that are not
  7. included in windows.h, but are required for NT.
  8. Author:
  9. Dan Lafferty (danl) 27-Sept-1991
  10. Environment:
  11. User Mode -Win16
  12. Revision History:
  13. 27-Sept-1991 danl
  14. created
  15. --*/
  16. #ifndef _WIN16NT_
  17. #define _WIN16NT_
  18. //typedef DWORD SECURITY_DESCRIPTOR, *PSECURITY_DESCRIPTOR;
  19. //typedef DWORD SECURITY_INFORMATION, *PSECURITY_INFORMATION;
  20. typedef void *PVOID;
  21. typedef PVOID PSID;
  22. typedef unsigned short WCHAR;
  23. typedef WCHAR *LPWCH, *PWCH;
  24. typedef WCHAR *LPWSTR, *PWSTR;
  25. typedef char TCHAR;
  26. typedef TCHAR *LPTSTR;
  27. typedef unsigned char UCHAR;
  28. typedef UCHAR * PUCHAR;
  29. typedef unsigned short USHORT;
  30. typedef USHORT *PUSHORT;
  31. typedef DWORD ULONG;
  32. typedef ULONG *PULONG;
  33. //--------------------------------
  34. // some NT stuff (from ntdef.h)
  35. //
  36. typedef char CHAR;
  37. typedef CHAR *PCHAR;
  38. typedef DWORD NTSTATUS;
  39. typedef NTSTATUS *PNTSTATUS;
  40. typedef char CCHAR;
  41. typedef CCHAR BOOLEAN;
  42. typedef BOOLEAN *PBOOLEAN;
  43. typedef struct _LARGE_INTEGER {
  44. ULONG LowPart;
  45. LONG HighPart;
  46. } LARGE_INTEGER, *PLARGE_INTEGER;
  47. typedef LARGE_INTEGER LUID;
  48. typedef LUID *PLUID;
  49. #ifndef ANYSIZE_ARRAY
  50. #define ANYSIZE_ARRAY 1
  51. #endif
  52. typedef struct _STRING {
  53. USHORT Length;
  54. USHORT MaximumLength;
  55. PCHAR Buffer;
  56. } STRING;
  57. typedef STRING *PSTRING;
  58. //--------------------------------
  59. //
  60. //
  61. typedef DWORD NET_API_STATUS;
  62. //typedef USHORT SECURITY_DESCRIPTOR_CONTROL, *PSECURITY_DESCRIPTOR_CONTROL;
  63. #define NET_API_FUNCTION
  64. //**************************************************************************
  65. // The following come from ntelfapi.h. and also exist in winnt.h (which is
  66. // built from ntelfapi.h. We need the same constants, but without the
  67. // 32 bit windows stuff and without the nt stuff.
  68. // Perhaps this file should be built by gathering all this information from
  69. // other files.
  70. //
  71. //
  72. // Defines for the READ flags for Eventlogging
  73. //
  74. #define EVENTLOG_SEQUENTIAL_READ 0X0001
  75. #define EVENTLOG_SEEK_READ 0X0002
  76. #define EVENTLOG_FORWARDS_READ 0X0004
  77. #define EVENTLOG_BACKWARDS_READ 0X0008
  78. //
  79. // The types of events that can be logged.
  80. //
  81. #define EVENTLOG_ERROR_TYPE 0x0001
  82. #define EVENTLOG_WARNING_TYPE 0x0002
  83. #define EVENTLOG_INFORMATION_TYPE 0x0003
  84. //**************************************************************************
  85. #ifndef OPTIONAL
  86. #define OPTIONAL
  87. #endif
  88. #ifndef IN
  89. #define IN
  90. #endif
  91. #ifndef OUT
  92. #define OUT
  93. #endif
  94. #endif //_WIN16NT_
  95.