Changeset 497 for trunk/Include/WinNT.ab
- Timestamp:
- Mar 28, 2008, 5:43:34 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/WinNT.ab
r322 r497 1 1 ' winnt.ab 2 3 #ifndef _WINNT_4 #define _WINNT_5 2 6 3 '#include <ctype.h> … … 72 69 #endif 73 70 74 '#ifndef VOID75 '#define VOID void76 71 TypeDef CHAR = SByte 77 72 TypeDef SHORT = Integer 78 73 TypeDef LONG = Long 79 74 TypeDef INT = Long 80 '#endif81 75 82 76 TypeDef WCHAR = Word … … 138 132 139 133 #ifdef UNICODE 140 141 #ifndef _TCHAR_DEFINED142 134 TypeDef TCHAR = WCHAR 143 135 TypeDef PTCHAR = *WCHAR 144 136 TypeDef TBYTE = WCHAR 145 137 TypeDef PTBYTE = *WCHAR 146 #define _TCHAR_DEFINED147 #endif148 138 149 139 TypeDef PTCH = PWCH … … 158 148 TypeDef LPCUTSTR = LPCUWSTR 159 149 'TypeDef LP = LPWSTR 160 161 150 #else 162 163 #ifndef _TCHAR_DEFINED164 151 TypeDef TCHAR = Char 165 152 TypeDef PTCHAR = *Char 166 153 TypeDef TBYTE = Byte 167 154 TypeDef PTBYTE = *Byte 168 #define _TCHAR_DEFINED169 #endif170 155 171 156 TypeDef PTCH = PCH … … 191 176 TypeDef FLONG = DWord 192 177 193 #ifndef _HRESULT_DEFINED194 #define _HRESULT_DEFINED195 178 TypeDef HRESULT = Long 196 #endif197 179 198 180 TypeDef CCHAR = CHAR … … 212 194 TypeDef PFLOAT128 = FLOAT128 213 195 214 '#define _ULONGLONG_215 196 TypeDef LONGLONG = Int64 216 197 TypeDef ULONGLONG = QWord 217 198 218 199 Const MAXLONGLONG = (&h7fffffffffffffff) 219 '#endif220 200 221 201 TypeDef PLONGLONG = *LONGLONG … … 242 222 TypeDef PLUID = *LUID 243 223 244 '#define _DWORDLONG_245 224 'TypeDef DWORDLONG = ULONGLONG 246 225 'TypeDef PDWORDLONG = DWORDLONG … … 285 264 #require <guiddef.ab> 286 265 287 #ifndef __OBJECTID_DEFINED288 #define __OBJECTID_DEFINED289 290 266 Type OBJECTID 291 267 Lineage As GUID 292 268 Uniquifier As DWord 293 269 End Type 294 #endif295 270 296 271 Const MINCHAR = &h80 … … 1077 1052 #endif 1078 1053 1079 #ifndef _LDT_ENTRY_DEFINED1080 #define _LDT_ENTRY_DEFINED1081 1082 1054 Type LDT_ENTRY 1083 1055 LimitLow As Word … … 1089 1061 End Type 1090 1062 TypeDef PLDT_ENTRY = *LDT_ENTRY 1091 1092 #endif1093 1063 1094 1064 Const WOW64_CONTEXT_i386 = &h00010000 … … 1250 1220 ' Security Id (SID) 1251 1221 1252 #ifndef SID_IDENTIFIER_AUTHORITY_DEFINED1253 #define SID_IDENTIFIER_AUTHORITY_DEFINED1254 1222 Type SID_IDENTIFIER_AUTHORITY 1255 1223 Value[ELM(6)] As Byte 1256 1224 End Type 1257 1225 TypeDef PSID_IDENTIFIER_AUTHORITY = *SID_IDENTIFIER_AUTHORITY 1258 #endif 1259 1260 #ifndef SID_DEFINED 1261 #define SID_DEFINED 1226 1262 1227 Type SID 1263 1228 Revision As Byte … … 1267 1232 End Type 1268 1233 TypeDef PSID = *SID 1269 #endif1270 1234 1271 1235 Const SID_REVISION = (1) … … 4191 4155 4192 4156 Const BTYPE(x) = ((x) And N_BTMASK) 4193 4194 #ifndef ISPTR4195 #define ISPTR4196 4157 Const ISPTR(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT)) 4197 #endif4198 4199 #ifndef ISFCN4200 #define ISFCN4201 4158 Const ISFCN(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_FUNCTION << N_BTSHFT)) 4202 #endif4203 4204 #ifndef ISARY4205 #define ISARY4206 4159 Const ISARY(x) = (((x) And N_TMASK) = (IMAGE_SYM_DTYPE_ARRAY << N_BTSHFT)) 4207 #endif4208 4209 #ifndef ISTAG4210 #define ISTAG4211 4160 Const ISTAG(x) = ((x) = IMAGE_SYM_CLASS_STRUCT_TAG Or (x) = IMAGE_SYM_CLASS_UNION_TAG Or (x) = IMAGE_SYM_CLASS_ENUM_TAG) 4212 #endif4213 4214 #ifndef INCREF4215 #define INCREF4216 4161 Const INCREF(x) = ((((x) And (Not N_BTMASK)) << N_TSHIFT) Or (IMAGE_SYM_DTYPE_POINTER << N_BTSHFT) Or ((x) And N_BTMASK)) 4217 #endif4218 4219 #ifndef DECREF4220 #define DECREF4221 4162 Const DECREF(x) = ((((x) >> N_TSHIFT) And (Not N_BTMASK)) Or ((x) And N_BTMASK)) 4222 #endif4223 4163 4224 4164 ' Auxiliary entry format. … … 5196 5136 #endif 5197 5137 5198 ' for move macros5199 '#include <string.h>5200 5201 #ifndef _SLIST_HEADER_5202 #define _SLIST_HEADER_5203 5204 5138 #ifdef _WIN64 5205 5139 Type Align(16) SLIST_ENTRY … … 5254 5188 #endif 5255 5189 5256 #endif5257 5190 5258 5191 Declare Sub RtlInitializeSListHead Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) … … 5263 5196 Declare Function RtlQueryDepthSList Lib "kernel32" (/*IN*/ ByRef ListHead As SLIST_HEADER) As Word 5264 5197 5265 #ifndef _RTL_RUN_ONCE_DEF5266 #define _RTL_RUN_ONCE_DEF5267 5268 5198 'Const RTL_RUN_ONCE_INIT {0} 'Static initializer 5269 5199 … … 5280 5210 5281 5211 TypeDef PRTL_RUN_ONCE_INIT_FN = *Function(ByRef RunOnce As RTL_RUN_ONCE, Parameter As VoidPtr, ByRef Context As VoidPtr) As DWord'LOGICAL 5282 #endif5283 5212 5284 5213 Declare Sub RtlRunOnceInitialize Lib "kernel32" (ByRef RunOnce As RTL_RUN_ONCE) … … 6108 6037 End Enum 6109 6038 6110 #ifndef _NTTMAPI_6111 #define _NTTMAPI_6039 '#ifndef _NTTMAPI_ 6040 '#define _NTTMAPI_ 6112 6041 6113 6042 '#include <ktmtypes.ab> … … 6170 6099 End Enum 6171 6100 6172 6173 6101 Enum TRANSACTION_STATE 6174 6102 TransactionStateNormal = 1 … … 6321 6249 TypeDef PKTMOBJECT_CURSOR = *KTMOBJECT_CURSOR 6322 6250 6323 #endif6251 '#endif 6324 6252 6325 6253 TypeDef TP_VERSION = DWord … … 6439 6367 '#endif // winnt_only 6440 6368 6441 #endif
Note:
See TracChangeset
for help on using the changeset viewer.