Changeset 9969 for trunk/include/win/winnt.h
- Timestamp:
- Apr 2, 2003, 1:02:36 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/include/win/winnt.h (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/win/winnt.h
r9631 r9969 10 10 #include "windef.h" 11 11 12 #include "pshpack1.h"13 12 /* Defines */ 14 13 … … 74 73 ((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field))) 75 74 75 /* C99 restrict support */ 76 77 #if defined(ENABLE_RESTRICTED) && !defined(MIDL_PASS) && !defined(RC_INVOKED) 78 # if defined(_MSC_VER) && defined(_M_MRX000) 79 # define RESTRICTED_POINTER __restrict 80 # elif defined(__GNUC__) && ((__GNUC__ > 2) || ((__GNUC__ == 2) && (__GNUC_MINOR__ >= 95))) 81 # define RESTRICTED_POINTER __restrict 82 # else 83 # define RESTRICTED_POINTER 84 # endif 85 #else 86 # define RESTRICTED_POINTER 87 #endif 88 76 89 /* Types */ 77 90 … … 98 111 typedef DWORD EXECUTION_STATE; 99 112 113 typedef CHAR *PCH, *LPCH; 114 typedef const CHAR *PCCH, *LPCCH; 115 116 /* Unicode string types */ 117 typedef WCHAR *PWCH, *LPWCH; 118 typedef const WCHAR *PCWCH, *LPCWCH; 119 120 # ifdef UNICODE 121 typedef WCHAR TCHAR, *PTCHAR; 122 typedef LPWSTR PTSTR, LPTSTR; 123 typedef LPCWSTR PCTSTR, LPCTSTR; 124 # define __TEXT(string) L##string 125 # else /* UNICODE */ 126 typedef CHAR TCHAR, *PTCHAR; 127 typedef LPSTR PTSTR; 128 typedef LPCSTR PCTSTR; 129 # define __TEXT(string) string 130 # endif /* UNICODE */ 131 # define TEXT(quote) __TEXT(quote) 132 133 /* Types */ 134 100 135 typedef struct _LIST_ENTRY { 101 136 struct _LIST_ENTRY *Flink; 102 137 struct _LIST_ENTRY *Blink; 103 } LIST_ENTRY, *PLIST_ENTRY ;138 } LIST_ENTRY, *PLIST_ENTRY, * RESTRICTED_POINTER PRLIST_ENTRY; 104 139 105 140 typedef struct _SINGLE_LIST_ENTRY { 106 141 struct _SINGLE_LIST_ENTRY *Next; 107 142 } SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY; 143 144 108 145 109 146 /* Heap flags */ … … 1526 1563 } EXCEPTION_FRAME, *PEXCEPTION_FRAME; 1527 1564 1528 #include "poppack.h"1529 1565 1530 1566 /* … … 1615 1651 #define _SECURITY_DEFINED 1616 1652 1617 #include "pshpack1.h"1618 1619 1653 typedef DWORD ACCESS_MASK, *PACCESS_MASK; 1620 1654 … … 1725 1759 #define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR)) 1726 1760 1727 #include "poppack.h"1728 1761 1729 1762 #endif /* _SECURITY_DEFINED */ 1730 1763 1731 #include "pshpack1.h"1732 1764 1733 1765 /* 1734 1766 * SID_AND_ATTRIBUTES 1735 1767 */ 1768 1736 1769 1737 1770 typedef struct _SID_AND_ATTRIBUTES { … … 1900 1933 */ 1901 1934 1935 #define TOKEN_SOURCE_LENGTH 8 1936 1902 1937 typedef struct _TOKEN_SOURCE { 1903 char Source name[8];1904 LUID SourceIdentifier; 1905 } TOKEN_SOURCE; 1938 char SourceName[TOKEN_SOURCE_LENGTH]; 1939 LUID SourceIdentifier; 1940 } TOKEN_SOURCE; 1906 1941 1907 1942 /* … … 2237 2272 } SERVICE_ERROR_TYPE; 2238 2273 2239 2240 #if 0 2241 ndef __WINE__ 2242 #define RtlEqualMemory(Destination, Source, Length) (!memcmp((Destination),(Source),(Length))) 2243 #define RtlMoveMemory(Destination, Source, Length) memmove((Destination),(Source),(Length)) 2244 #define RtlCopyMemory(Destination, Source, Length) memcpy((Destination),(Source),(Length)) 2245 #define RtlFillMemory(Destination, Length, Fill) memset((Destination),(Fill),(Length)) 2246 #define RtlZeroMemory(Destination, Length) memset((Destination),0,(Length)) 2247 #endif 2274 /* archive format */ 2275 2276 #define IMAGE_ARCHIVE_START_SIZE 8 2277 #define IMAGE_ARCHIVE_START "!<arch>\n" 2278 #define IMAGE_ARCHIVE_END "`\n" 2279 #define IMAGE_ARCHIVE_PAD "\n" 2280 #define IMAGE_ARCHIVE_LINKER_MEMBER "/ " 2281 #define IMAGE_ARCHIVE_LONGNAMES_MEMBER "// " 2282 2283 typedef struct _IMAGE_ARCHIVE_MEMBER_HEADER 2284 { 2285 BYTE Name[16]; 2286 BYTE Date[12]; 2287 BYTE UserID[6]; 2288 BYTE GroupID[6]; 2289 BYTE Mode[8]; 2290 BYTE Size[10]; 2291 BYTE EndHeader[2]; 2292 } IMAGE_ARCHIVE_MEMBER_HEADER, *PIMAGE_ARCHIVE_MEMBER_HEADER; 2293 2294 #define IMAGE_SIZEOF_ARCHIVE_MEMBER_HDR 60 2295 2296 typedef struct _IMAGE_BOUND_IMPORT_DESCRIPTOR 2297 { 2298 DWORD TimeDateStamp; 2299 WORD OffsetModuleName; 2300 WORD NumberOfModuleForwarderRefs; 2301 /* Array of zero or more IMAGE_BOUND_FORWARDER_REF follows */ 2302 } IMAGE_BOUND_IMPORT_DESCRIPTOR, *PIMAGE_BOUND_IMPORT_DESCRIPTOR; 2303 2304 typedef struct _IMAGE_BOUND_FORWARDER_REF 2305 { 2306 DWORD TimeDateStamp; 2307 WORD OffsetModuleName; 2308 WORD Reserved; 2309 } IMAGE_BOUND_FORWARDER_REF, *PIMAGE_BOUND_FORWARDER_REF; 2310 2311 #define IMAGE_DEBUG_MISC_EXENAME 1 2312 2313 typedef struct _IMAGE_DEBUG_MISC { 2314 DWORD DataType; 2315 DWORD Length; 2316 BYTE Unicode; 2317 BYTE Reserved[ 3 ]; 2318 BYTE Data[ 1 ]; 2319 } IMAGE_DEBUG_MISC, *PIMAGE_DEBUG_MISC; 2320 2321 2322 #include "pshpack2.h" 2323 2324 typedef struct _IMAGE_SYMBOL { 2325 union { 2326 BYTE ShortName[8]; 2327 struct { 2328 DWORD Short; 2329 DWORD Long; 2330 } Name; 2331 DWORD LongName[2]; 2332 } N; 2333 DWORD Value; 2334 SHORT SectionNumber; 2335 WORD Type; 2336 BYTE StorageClass; 2337 BYTE NumberOfAuxSymbols; 2338 } IMAGE_SYMBOL; 2339 typedef IMAGE_SYMBOL *PIMAGE_SYMBOL; 2340 2341 #define IMAGE_SIZEOF_SYMBOL 18 2342 2343 typedef struct _IMAGE_LINENUMBER { 2344 union { 2345 DWORD SymbolTableIndex; 2346 DWORD VirtualAddress; 2347 } Type; 2348 WORD Linenumber; 2349 } IMAGE_LINENUMBER; 2350 typedef IMAGE_LINENUMBER *PIMAGE_LINENUMBER; 2351 2352 #define IMAGE_SIZEOF_LINENUMBER 6 2353 2354 typedef union _IMAGE_AUX_SYMBOL { 2355 struct { 2356 DWORD TagIndex; 2357 union { 2358 struct { 2359 WORD Linenumber; 2360 WORD Size; 2361 } LnSz; 2362 DWORD TotalSize; 2363 } Misc; 2364 union { 2365 struct { 2366 DWORD PointerToLinenumber; 2367 DWORD PointerToNextFunction; 2368 } Function; 2369 struct { 2370 WORD Dimension[4]; 2371 } Array; 2372 } FcnAry; 2373 WORD TvIndex; 2374 } Sym; 2375 struct { 2376 BYTE Name[IMAGE_SIZEOF_SYMBOL]; 2377 } File; 2378 struct { 2379 DWORD Length; 2380 WORD NumberOfRelocations; 2381 WORD NumberOfLinenumbers; 2382 DWORD CheckSum; 2383 SHORT Number; 2384 BYTE Selection; 2385 } Section; 2386 } IMAGE_AUX_SYMBOL; 2387 typedef IMAGE_AUX_SYMBOL *PIMAGE_AUX_SYMBOL; 2388 2389 #define IMAGE_SIZEOF_AUX_SYMBOL 18 2390 2391 #include "poppack.h" 2248 2392 2249 2393 //#include "guiddef.h" … … 2271 2415 #include <peexe.h> 2272 2416 2417 #include "pshpack2.h" 2418 2419 typedef struct _IMAGE_RELOCATION 2420 { 2421 union { 2422 DWORD VirtualAddress; 2423 DWORD RelocCount; 2424 } DUMMYUNIONNAME; 2425 DWORD SymbolTableIndex; 2426 WORD Type; 2427 } IMAGE_RELOCATION, *PIMAGE_RELOCATION; 2428 2273 2429 #include "poppack.h" 2274 2430 2275 #endif /* __WINE_WINNT_H */ 2431 typedef struct _NT_TIB 2432 { 2433 struct _EXCEPTION_REGISTRATION_RECORD *ExceptionList; 2434 PVOID StackBase; 2435 PVOID StackLimit; 2436 PVOID SubSystemTib; 2437 union { 2438 PVOID FiberData; 2439 DWORD Version; 2440 } DUMMYUNIONNAME; 2441 PVOID ArbitraryUserPointer; 2442 struct _NT_TIB *Self; 2443 } NT_TIB, *PNT_TIB; 2444 2445 typedef struct _MEMORY_BASIC_INFORMATION 2446 { 2447 LPVOID BaseAddress; 2448 LPVOID AllocationBase; 2449 DWORD AllocationProtect; 2450 DWORD RegionSize; 2451 DWORD State; 2452 DWORD Protect; 2453 DWORD Type; 2454 } MEMORY_BASIC_INFORMATION,*LPMEMORY_BASIC_INFORMATION,*PMEMORY_BASIC_INFORMATION; 2455 2456 #ifdef __IBMC__ 2457 typedef void (* __stdcall WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); 2458 #else 2459 typedef void (__stdcall *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN ); 2460 #endif 2461 2462 2463 2464 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
