2 * Win32 definitions for Windows NT
4 * Copyright 1996 Alexandre Julliard
15 /* Argument 1 passed to the DllEntryProc. */
16 #define DLL_PROCESS_DETACH 0 /* detach process (unload library) */
17 #define DLL_PROCESS_ATTACH 1 /* attach process (load library) */
18 #define DLL_THREAD_ATTACH 2 /* attach new thread */
19 #define DLL_THREAD_DETACH 3 /* detach thread */
22 /* u.x.wProcessorArchitecture (NT) */
23 #define PROCESSOR_ARCHITECTURE_INTEL 0
24 #define PROCESSOR_ARCHITECTURE_MIPS 1
25 #define PROCESSOR_ARCHITECTURE_ALPHA 2
26 #define PROCESSOR_ARCHITECTURE_PPC 3
27 #define PROCESSOR_ARCHITECTURE_UNKNOWN 0xFFFF
30 #define PROCESSOR_INTEL_386 386
31 #define PROCESSOR_INTEL_486 486
32 #define PROCESSOR_INTEL_PENTIUM 586
33 #define PROCESSOR_MIPS_R4000 4000
34 #define PROCESSOR_ALPHA_21064 21064
37 #define ANYSIZE_ARRAY 1
39 #define FIELD_OFFSET(type, field) \
40 ((LONG)(INT)&(((type *)0)->field))
42 #define CONTAINING_RECORD(address, type, field) \
43 ((type *)((PCHAR)(address) - (PCHAR)(&((type *)0)->field)))
48 typedef BOOLEAN
*PBOOLEAN
;
50 typedef struct _LIST_ENTRY
{
51 struct _LIST_ENTRY
*Flink
;
52 struct _LIST_ENTRY
*Blink
;
53 } LIST_ENTRY
, *PLIST_ENTRY
;
55 typedef struct _SINGLE_LIST_ENTRY
{
56 struct _SINGLE_LIST_ENTRY
*Next
;
57 } SINGLE_LIST_ENTRY
, *PSINGLE_LIST_ENTRY
;
61 #define HEAP_NO_SERIALIZE 0x00000001
62 #define HEAP_GROWABLE 0x00000002
63 #define HEAP_GENERATE_EXCEPTIONS 0x00000004
64 #define HEAP_ZERO_MEMORY 0x00000008
65 #define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010
66 #define HEAP_TAIL_CHECKING_ENABLED 0x00000020
67 #define HEAP_FREE_CHECKING_ENABLED 0x00000040
68 #define HEAP_DISABLE_COALESCE_ON_FREE 0x00000080
69 #define HEAP_CREATE_ALIGN_16 0x00010000
70 #define HEAP_CREATE_ENABLE_TRACING 0x00020000
71 #define HEAP_WINE_SEGPTR 0x01000000 /* Not a Win32 flag */
72 #define HEAP_WINE_CODESEG 0x02000000 /* Not a Win32 flag */
73 #define HEAP_WINE_CODE16SEG 0x04000000 /* Not a Win32 flag */
75 /* Processor feature flags. */
76 #define PF_FLOATING_POINT_PRECISION_ERRATA 0
77 #define PF_FLOATING_POINT_EMULATED 1
78 #define PF_COMPARE_EXCHANGE_DOUBLE 2
79 #define PF_MMX_INSTRUCTIONS_AVAILABLE 3
80 #define PF_PPC_MOVEMEM_64BIT_OK 4
81 #define PF_ALPHA_BYTE_INSTRUCTIONS 5
84 /* The Win32 register context */
86 #define CONTEXT_i386 0x00010000
87 #define CONTEXT_i486 CONTEXT_i386
88 #define CONTEXT_CONTROL (CONTEXT_i386 | 0x0001) /* SS:SP, CS:IP, FLAGS, BP */
89 #define CONTEXT_INTEGER (CONTEXT_i386 | 0x0002) /* AX, BX, CX, DX, SI, DI */
90 #define CONTEXT_SEGMENTS (CONTEXT_i386 | 0x0004) /* DS, ES, FS, GS */
91 #define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 0x0008L) /* 387 state */
92 #define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x0010L) /* DB 0-3,6,7 */
93 #define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS)
95 #define SIZE_OF_80387_REGISTERS 80
106 BYTE RegisterArea
[SIZE_OF_80387_REGISTERS
];
108 } FLOATING_SAVE_AREA
;
114 /* These are selected by CONTEXT_DEBUG_REGISTERS */
122 /* These are selected by CONTEXT_FLOATING_POINT */
123 FLOATING_SAVE_AREA FloatSave
;
125 /* These are selected by CONTEXT_SEGMENTS */
131 /* These are selected by CONTEXT_INTEGER */
139 /* These are selected by CONTEXT_CONTROL */
146 } CONTEXT
, *PCONTEXT
;
148 typedef HANDLE
*PHANDLE
;
152 /* Macros for easier access to context registers */
154 #define EAX_reg(context) ((context)->Eax)
155 #define EBX_reg(context) ((context)->Ebx)
156 #define ECX_reg(context) ((context)->Ecx)
157 #define EDX_reg(context) ((context)->Edx)
158 #define ESI_reg(context) ((context)->Esi)
159 #define EDI_reg(context) ((context)->Edi)
160 #define EBP_reg(context) ((context)->Ebp)
162 #define CS_reg(context) ((context)->SegCs)
163 #define DS_reg(context) ((context)->SegDs)
164 #define ES_reg(context) ((context)->SegEs)
165 #define FS_reg(context) ((context)->SegFs)
166 #define GS_reg(context) ((context)->SegGs)
167 #define SS_reg(context) ((context)->SegSs)
169 #define EFL_reg(context) ((context)->EFlags)
170 #define EIP_reg(context) ((context)->Eip)
171 #define ESP_reg(context) ((context)->Esp)
173 #define AX_reg(context) (*(WORD*)&EAX_reg(context))
174 #define BX_reg(context) (*(WORD*)&EBX_reg(context))
175 #define CX_reg(context) (*(WORD*)&ECX_reg(context))
176 #define DX_reg(context) (*(WORD*)&EDX_reg(context))
177 #define SI_reg(context) (*(WORD*)&ESI_reg(context))
178 #define DI_reg(context) (*(WORD*)&EDI_reg(context))
179 #define BP_reg(context) (*(WORD*)&EBP_reg(context))
181 #define AL_reg(context) (*(BYTE*)&EAX_reg(context))
182 #define AH_reg(context) (*((BYTE*)&EAX_reg(context)+1))
183 #define BL_reg(context) (*(BYTE*)&EBX_reg(context))
184 #define BH_reg(context) (*((BYTE*)&EBX_reg(context)+1))
185 #define CL_reg(context) (*(BYTE*)&ECX_reg(context))
186 #define CH_reg(context) (*((BYTE*)&ECX_reg(context)+1))
187 #define DL_reg(context) (*(BYTE*)&EDX_reg(context))
188 #define DH_reg(context) (*((BYTE*)&EDX_reg(context)+1))
190 #define IP_reg(context) (*(WORD*)&EIP_reg(context))
191 #define SP_reg(context) (*(WORD*)&ESP_reg(context))
193 #define FL_reg(context) (*(WORD*)&EFL_reg(context))
195 #define SET_CFLAG(context) (EFL_reg(context) |= 0x0001)
196 #define RESET_CFLAG(context) (EFL_reg(context) &= ~0x0001)
197 #define SET_ZFLAG(context) (EFL_reg(context) |= 0x0040)
198 #define RESET_ZFLAG(context) (EFL_reg(context) &= ~0x0040)
200 #define ISV86(context) (EFL_reg(context) & 0x00020000)
201 #define V86BASE(context) ((context)->Dr7) /* ugly */
203 #endif /* __WINE__ */
209 #define STATUS_WAIT_0 0x00000000
210 #define STATUS_ABANDONED_WAIT_0 0x00000080
211 #define STATUS_USER_APC 0x000000C0
212 #define STATUS_TIMEOUT 0x00000102
213 #define STATUS_PENDING 0x00000103
214 #define STATUS_DATATYPE_MISALIGNMENT 0x80000002
215 #define STATUS_BREAKPOINT 0x80000003
216 #define STATUS_SINGLE_STEP 0x80000004
217 #define STATUS_ACCESS_VIOLATION 0xC0000005
218 #define STATUS_IN_PAGE_ERROR 0xC0000006
219 #define STATUS_NO_MEMORY 0xC0000017
220 #define STATUS_ILLEGAL_INSTRUCTION 0xC000001D
221 #define STATUS_NONCONTINUABLE_EXCEPTION 0xC0000025
222 #define STATUS_INVALID_DISPOSITION 0xC0000026
223 #define STATUS_ARRAY_BOUNDS_EXCEEDED 0xC000008C
224 #define STATUS_FLOAT_DENORMAL_OPERAND 0xC000008D
225 #define STATUS_FLOAT_DIVIDE_BY_ZERO 0xC000008E
226 #define STATUS_FLOAT_INEXACT_RESULT 0xC000008F
227 #define STATUS_FLOAT_INVALID_OPERATION 0xC0000090
228 #define STATUS_FLOAT_OVERFLOW 0xC0000091
229 #define STATUS_FLOAT_STACK_CHECK 0xC0000092
230 #define STATUS_FLOAT_UNDERFLOW 0xC0000093
231 #define STATUS_INTEGER_DIVIDE_BY_ZERO 0xC0000094
232 #define STATUS_INTEGER_OVERFLOW 0xC0000095
233 #define STATUS_PRIVILEGED_INSTRUCTION 0xC0000096
234 #define STATUS_STACK_OVERFLOW 0xC00000FD
235 #define STATUS_CONTROL_C_EXIT 0xC000013A
237 #define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION
238 #define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT
239 #define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT
240 #define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP
241 #define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED
242 #define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND
243 #define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO
244 #define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT
245 #define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION
246 #define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW
247 #define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK
248 #define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW
249 #define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO
250 #define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW
251 #define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION
252 #define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR
253 #define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION
254 #define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION
255 #define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW
256 #define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION
257 #define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION
258 #define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE
259 #define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT
261 #define MAXIMUM_WAIT_OBJECTS 64
262 #define MAXIMUM_SUSPEND_COUNT 127
266 * Return values from the actual exception handlers
269 #define ExceptionContinueExecution 0
270 #define ExceptionContinueSearch 1
271 #define ExceptionNestedException 2
272 #define ExceptionCollidedUnwind 3
275 * Return values from filters in except() and from UnhandledExceptionFilter
278 #define EXCEPTION_EXECUTE_HANDLER 1
279 #define EXCEPTION_CONTINUE_SEARCH 0
280 #define EXCEPTION_CONTINUE_EXECUTION -1
283 * From OS/2 2.0 exception handling
284 * Win32 seems to use the same flags as ExceptionFlags in an EXCEPTION_RECORD
287 #define EH_NONCONTINUABLE 0x01
288 #define EH_UNWINDING 0x02
289 #define EH_EXIT_UNWIND 0x04
290 #define EH_STACK_INVALID 0x08
291 #define EH_NESTED_CALL 0x10
293 #define EXCEPTION_CONTINUABLE 0
294 #define EXCEPTION_NONCONTINUABLE EH_NONCONTINUABLE
297 * The exception record used by Win32 to give additional information
298 * about exception to exception handlers.
301 #define EXCEPTION_MAXIMUM_PARAMETERS 15
303 typedef struct __EXCEPTION_RECORD
306 DWORD ExceptionFlags
;
307 struct __EXCEPTION_RECORD
*ExceptionRecord
;
309 LPVOID ExceptionAddress
;
310 DWORD NumberParameters
;
311 DWORD ExceptionInformation
[EXCEPTION_MAXIMUM_PARAMETERS
];
312 } EXCEPTION_RECORD
, *PEXCEPTION_RECORD
;
315 * The exception pointers structure passed to exception filters
316 * in except() and the UnhandledExceptionFilter().
319 typedef struct _EXCEPTION_POINTERS
321 PEXCEPTION_RECORD ExceptionRecord
;
322 PCONTEXT ContextRecord
;
323 } EXCEPTION_POINTERS
, *PEXCEPTION_POINTERS
;
328 * function pointer to a exception filter
331 typedef LONG (CALLBACK
*PTOP_LEVEL_EXCEPTION_FILTER
)(PEXCEPTION_POINTERS ExceptionInfo
);
332 typedef PTOP_LEVEL_EXCEPTION_FILTER LPTOP_LEVEL_EXCEPTION_FILTER
;
334 DWORD WINAPI
UnhandledExceptionFilter( PEXCEPTION_POINTERS epointers
);
335 LPTOP_LEVEL_EXCEPTION_FILTER
336 WINAPI
SetUnhandledExceptionFilter( LPTOP_LEVEL_EXCEPTION_FILTER filter
);
339 * Here follows typedefs for security and tokens.
343 * First a constant for the following typdefs.
346 #define ANYSIZE_ARRAY 1
349 * TOKEN_INFORMATION_CLASS
352 typedef enum _TOKEN_INFORMATION_CLASS
{
361 TokenImpersonationLevel
,
363 } TOKEN_INFORMATION_CLASS
;
365 #ifndef _SECURITY_DEFINED
366 #define _SECURITY_DEFINED
372 } SID_IDENTIFIER_AUTHORITY
,*PSID_IDENTIFIER_AUTHORITY
;
374 typedef struct _SID
{
376 BYTE SubAuthorityCount
;
377 SID_IDENTIFIER_AUTHORITY IdentifierAuthority
;
378 DWORD SubAuthority
[1];
385 typedef struct _ACL
{
393 /* SECURITY_DESCRIPTOR */
394 #define SECURITY_DESCRIPTOR_REVISION 1
395 #define SECURITY_DESCRIPTOR_REVISION1 1
398 #define SE_OWNER_DEFAULTED 0x0001
399 #define SE_GROUP_DEFAULTED 0x0002
400 #define SE_DACL_PRESENT 0x0004
401 #define SE_DACL_DEFAULTED 0x0008
402 #define SE_SACL_PRESENT 0x0010
403 #define SE_SACL_DEFAULTED 0x0020
404 #define SE_SELF_RELATIVE 0x8000
406 typedef DWORD SECURITY_INFORMATION
;
407 typedef WORD SECURITY_DESCRIPTOR_CONTROL
;
409 /* The security descriptor structure */
413 SECURITY_DESCRIPTOR_CONTROL Control
;
418 } SECURITY_DESCRIPTOR
, *PSECURITY_DESCRIPTOR
;
420 #define SECURITY_DESCRIPTOR_MIN_LENGTH (sizeof(SECURITY_DESCRIPTOR))
422 #endif /* _SECURITY_DEFINED */
428 typedef struct _SID_AND_ATTRIBUTES
{
431 } SID_AND_ATTRIBUTES
;
437 typedef struct _TOKEN_USER
{
438 SID_AND_ATTRIBUTES User
;
445 typedef struct _TOKEN_GROUPS
{
447 SID_AND_ATTRIBUTES Groups
[ANYSIZE_ARRAY
];
451 * LUID_AND_ATTRIBUTES
454 typedef struct _LARGE_INTEGER
458 } LARGE_INTEGER
,*PLARGE_INTEGER
;
460 typedef struct _ULARGE_INTEGER
464 } ULARGE_INTEGER
,*PULARGE_INTEGER
;
466 typedef LARGE_INTEGER LUID
,*PLUID
; /* locally unique ids */
468 typedef struct _LUID_AND_ATTRIBUTES
{
471 } LUID_AND_ATTRIBUTES
;
477 typedef struct _TOKEN_PRIVILEGES
{
478 DWORD PrivilegeCount
;
479 LUID_AND_ATTRIBUTES Privileges
[ANYSIZE_ARRAY
];
480 } TOKEN_PRIVILEGES
, *PTOKEN_PRIVILEGES
;
486 typedef struct _TOKEN_OWNER
{
491 * TOKEN_PRIMARY_GROUP
494 typedef struct _TOKEN_PRIMARY_GROUP
{
496 } TOKEN_PRIMARY_GROUP
;
502 typedef struct _TOKEN_DEFAULT_DACL
{
504 } TOKEN_DEFAULT_DACL
;
510 typedef struct _TOKEN_SOURCE
{
512 LUID SourceIdentifier
;
519 typedef enum tagTOKEN_TYPE
{
525 * SECURITY_IMPERSONATION_LEVEL
528 typedef enum _SECURITY_IMPERSONATION_LEVEL
{
530 SecurityIdentification
,
531 SecurityImpersonation
,
533 } SECURITY_IMPERSONATION_LEVEL
;
541 typedef struct _TOKEN_STATISTICS
{
543 LUID AuthenticationId
;
544 LARGE_INTEGER ExpirationTime
;
545 TOKEN_TYPE TokenType
;
546 SECURITY_IMPERSONATION_LEVEL ImpersonationLevel
;
547 DWORD DynamicCharged
;
548 DWORD DynamicAvailable
;
550 DWORD PrivilegeCount
;
556 #define DELETE 0x00010000
557 #define READ_CONTROL 0x00020000
558 #define WRITE_DAC 0x00040000
559 #define WRITE_OWNER 0x00080000
560 #define SYNCHRONIZE 0x00100000
561 #define STANDARD_RIGHTS_REQUIRED 0x000f0000
563 #define STANDARD_RIGHTS_READ READ_CONTROL
564 #define STANDARD_RIGHTS_WRITE READ_CONTROL
565 #define STANDARD_RIGHTS_EXECUTE READ_CONTROL
567 #define STANDARD_RIGHTS_ALL 0x001f0000
569 #define SPECIFIC_RIGHTS_ALL 0x0000ffff
571 #define GENERIC_READ 0x80000000
572 #define GENERIC_WRITE 0x40000000
573 #define GENERIC_EXECUTE 0x20000000
574 #define GENERIC_ALL 0x10000000
576 #define EVENT_MODIFY_STATE 0x0002
577 #define EVENT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
579 #define SEMAPHORE_MODIFY_STATE 0x0002
580 #define SEMAPHORE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
582 #define MUTEX_MODIFY_STATE 0x0001
583 #define MUTEX_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1)
585 #define PROCESS_TERMINATE 0x0001
586 #define PROCESS_CREATE_THREAD 0x0002
587 #define PROCESS_VM_OPERATION 0x0008
588 #define PROCESS_VM_READ 0x0010
589 #define PROCESS_VM_WRITE 0x0020
590 #define PROCESS_DUP_HANDLE 0x0040
591 #define PROCESS_CREATE_PROCESS 0x0080
592 #define PROCESS_SET_QUOTA 0x0100
593 #define PROCESS_SET_INFORMATION 0x0200
594 #define PROCESS_QUERY_INFORMATION 0x0400
595 #define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0xfff)
597 #define THREAD_TERMINATE 0x0001
598 #define THREAD_SUSPEND_RESUME 0x0002
599 #define THREAD_GET_CONTEXT 0x0008
600 #define THREAD_SET_CONTEXT 0x0010
601 #define THREAD_SET_INFORMATION 0x0020
602 #define THREAD_QUERY_INFORMATION 0x0040
603 #define THREAD_SET_THREAD_TOKEN 0x0080
604 #define THREAD_IMPERSONATE 0x0100
605 #define THREAD_DIRECT_IMPERSONATION 0x0200
606 #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3ff)
608 #define FILE_READ_DATA 0x0001 /* file & pipe */
609 #define FILE_LIST_DIRECTORY 0x0001 /* directory */
610 #define FILE_WRITE_DATA 0x0002 /* file & pipe */
611 #define FILE_ADD_FILE 0x0002 /* directory */
612 #define FILE_APPEND_DATA 0x0004 /* file */
613 #define FILE_ADD_SUBDIRECTORY 0x0004 /* directory */
614 #define FILE_CREATE_PIPE_INSTANCE 0x0004 /* named pipe */
615 #define FILE_READ_EA 0x0008 /* file & directory */
616 #define FILE_READ_PROPERTIES FILE_READ_EA
617 #define FILE_WRITE_EA 0x0010 /* file & directory */
618 #define FILE_WRITE_PROPERTIES FILE_WRITE_EA
619 #define FILE_EXECUTE 0x0020 /* file */
620 #define FILE_TRAVERSE 0x0020 /* directory */
621 #define FILE_DELETE_CHILD 0x0040 /* directory */
622 #define FILE_READ_ATTRIBUTES 0x0080 /* all */
623 #define FILE_WRITE_ATTRIBUTES 0x0100 /* all */
624 #define FILE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x1ff)
626 #define FILE_GENERIC_READ (STANDARD_RIGHTS_READ | FILE_READ_DATA | \
627 FILE_READ_ATTRIBUTES | FILE_READ_EA | \
629 #define FILE_GENERIC_WRITE (STANDARD_RIGHTS_WRITE | FILE_WRITE_DATA | \
630 FILE_WRITE_ATTRIBUTES | FILE_WRITE_EA | \
631 FILE_APPEND_DATA | SYNCHRONIZE)
632 #define FILE_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE | FILE_EXECUTE | \
633 FILE_READ_ATTRIBUTES | SYNCHRONIZE)
636 /* File attribute flags
638 #define FILE_SHARE_READ 0x00000001L
639 #define FILE_SHARE_WRITE 0x00000002L
640 #define FILE_SHARE_DELETE 0x00000004L
641 #define FILE_ATTRIBUTE_READONLY 0x00000001L
642 #define FILE_ATTRIBUTE_HIDDEN 0x00000002L
643 #define FILE_ATTRIBUTE_SYSTEM 0x00000004L
644 #define FILE_ATTRIBUTE_LABEL 0x00000008L /* Not in Windows API */
645 #define FILE_ATTRIBUTE_DIRECTORY 0x00000010L
646 #define FILE_ATTRIBUTE_ARCHIVE 0x00000020L
647 #define FILE_ATTRIBUTE_NORMAL 0x00000080L
648 #define FILE_ATTRIBUTE_TEMPORARY 0x00000100L
649 #define FILE_ATTRIBUTE_ATOMIC_WRITE 0x00000200L
650 #define FILE_ATTRIBUTE_XACTION_WRITE 0x00000400L
651 #define FILE_ATTRIBUTE_COMPRESSED 0x00000800L
652 #define FILE_ATTRIBUTE_OFFLINE 0x00001000L
654 /* File alignments (NT) */
655 #define FILE_BYTE_ALIGNMENT 0x00000000
656 #define FILE_WORD_ALIGNMENT 0x00000001
657 #define FILE_LONG_ALIGNMENT 0x00000003
658 #define FILE_QUAD_ALIGNMENT 0x00000007
659 #define FILE_OCTA_ALIGNMENT 0x0000000f
660 #define FILE_32_BYTE_ALIGNMENT 0x0000001f
661 #define FILE_64_BYTE_ALIGNMENT 0x0000003f
662 #define FILE_128_BYTE_ALIGNMENT 0x0000007f
663 #define FILE_256_BYTE_ALIGNMENT 0x000000ff
664 #define FILE_512_BYTE_ALIGNMENT 0x000001ff
666 /* Registry security values */
667 #define OWNER_SECURITY_INFORMATION 0x00000001
668 #define GROUP_SECURITY_INFORMATION 0x00000002
669 #define DACL_SECURITY_INFORMATION 0x00000004
670 #define SACL_SECURITY_INFORMATION 0x00000008
672 #endif /* __WINE_WINNT_H */