Ignore:
Timestamp:
Apr 2, 2003, 1:02:36 PM (23 years ago)
Author:
sandervl
Message:

PF: Added modified emx runtime headers + header updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/winnt.h

    r9631 r9969  
    1010#include "windef.h"
    1111
    12 #include "pshpack1.h"
    1312/* Defines */
    1413
     
    7473  ((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
    7574
     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
    7689/* Types */
    7790
     
    98111typedef DWORD           EXECUTION_STATE;
    99112
     113typedef CHAR           *PCH,        *LPCH;
     114typedef const CHAR     *PCCH,       *LPCCH;
     115
     116/* Unicode string types */
     117typedef WCHAR          *PWCH,       *LPWCH;
     118typedef const WCHAR    *PCWCH,      *LPCWCH;
     119
     120# ifdef UNICODE
     121typedef WCHAR           TCHAR,      *PTCHAR;
     122typedef LPWSTR          PTSTR,       LPTSTR;
     123typedef LPCWSTR         PCTSTR,      LPCTSTR;
     124#  define __TEXT(string) L##string
     125# else  /* UNICODE */
     126typedef CHAR            TCHAR,      *PTCHAR;
     127typedef LPSTR           PTSTR;
     128typedef LPCSTR          PCTSTR;
     129#  define __TEXT(string) string
     130# endif /* UNICODE */
     131# define TEXT(quote) __TEXT(quote)
     132
     133/* Types */
     134
    100135typedef struct _LIST_ENTRY {
    101136  struct _LIST_ENTRY *Flink;
    102137  struct _LIST_ENTRY *Blink;
    103 } LIST_ENTRY, *PLIST_ENTRY;
     138} LIST_ENTRY, *PLIST_ENTRY, * RESTRICTED_POINTER PRLIST_ENTRY;
    104139
    105140typedef struct _SINGLE_LIST_ENTRY {
    106141  struct _SINGLE_LIST_ENTRY *Next;
    107142} SINGLE_LIST_ENTRY, *PSINGLE_LIST_ENTRY;
     143
     144
    108145
    109146/* Heap flags */
     
    15261563} EXCEPTION_FRAME, *PEXCEPTION_FRAME;
    15271564
    1528 #include "poppack.h"
    15291565
    15301566/*
     
    16151651#define _SECURITY_DEFINED
    16161652
    1617 #include "pshpack1.h"
    1618 
    16191653typedef DWORD ACCESS_MASK, *PACCESS_MASK;
    16201654
     
    17251759#define SECURITY_DESCRIPTOR_MIN_LENGTH   (sizeof(SECURITY_DESCRIPTOR))
    17261760
    1727 #include "poppack.h"
    17281761
    17291762#endif /* _SECURITY_DEFINED */
    17301763
    1731 #include "pshpack1.h"
    17321764
    17331765/*
    17341766 * SID_AND_ATTRIBUTES
    17351767 */
     1768
    17361769
    17371770typedef struct _SID_AND_ATTRIBUTES {
     
    19001933 */
    19011934
     1935#define TOKEN_SOURCE_LENGTH 8
     1936
    19021937typedef struct _TOKEN_SOURCE {
    1903   char Sourcename[8];
    1904   LUID SourceIdentifier; 
    1905 } TOKEN_SOURCE; 
     1938  char SourceName[TOKEN_SOURCE_LENGTH];
     1939  LUID SourceIdentifier;
     1940} TOKEN_SOURCE;
    19061941
    19071942/*
     
    22372272} SERVICE_ERROR_TYPE;
    22382273
    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
     2283typedef 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
     2296typedef 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
     2304typedef 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
     2313typedef 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
     2324typedef 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;
     2339typedef IMAGE_SYMBOL *PIMAGE_SYMBOL;
     2340
     2341#define IMAGE_SIZEOF_SYMBOL 18
     2342
     2343typedef struct _IMAGE_LINENUMBER {
     2344    union {
     2345        DWORD   SymbolTableIndex;
     2346        DWORD   VirtualAddress;
     2347    } Type;
     2348    WORD    Linenumber;
     2349} IMAGE_LINENUMBER;
     2350typedef IMAGE_LINENUMBER *PIMAGE_LINENUMBER;
     2351
     2352#define IMAGE_SIZEOF_LINENUMBER  6
     2353
     2354typedef 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;
     2387typedef IMAGE_AUX_SYMBOL *PIMAGE_AUX_SYMBOL;
     2388
     2389#define IMAGE_SIZEOF_AUX_SYMBOL 18
     2390
     2391#include "poppack.h"
    22482392
    22492393//#include "guiddef.h"
     
    22712415#include <peexe.h>
    22722416
     2417#include "pshpack2.h"
     2418
     2419typedef 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
    22732429#include "poppack.h"
    22742430
    2275 #endif  /* __WINE_WINNT_H */
     2431typedef 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
     2445typedef 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__
     2457typedef void (* __stdcall WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
     2458#else
     2459typedef void (__stdcall *WAITORTIMERCALLBACKFUNC) (PVOID, BOOLEAN );
     2460#endif
     2461
     2462
     2463
     2464#endif 
Note: See TracChangeset for help on using the changeset viewer.