mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 11:16:11 +00:00
[PSDK]
* Add netiodef.h. * Add some missing definitions in ntdef.h and winnt.h. svn path=/trunk/; revision=56534
This commit is contained in:
parent
2afe0c85bb
commit
1727caafd1
3 changed files with 1291 additions and 0 deletions
1276
reactos/include/psdk/netiodef.h
Normal file
1276
reactos/include/psdk/netiodef.h
Normal file
File diff suppressed because it is too large
Load diff
|
@ -415,6 +415,11 @@ typedef ULONG LCID;
|
||||||
typedef PULONG PLCID;
|
typedef PULONG PLCID;
|
||||||
typedef USHORT LANGID;
|
typedef USHORT LANGID;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
UNSPECIFIED_COMPARTMENT_ID = 0,
|
||||||
|
DEFAULT_COMPARTMENT_ID
|
||||||
|
} COMPARTMENT_ID, *PCOMPARTMENT_ID;
|
||||||
|
|
||||||
/* Used to store a non-float 8 byte aligned structure */
|
/* Used to store a non-float 8 byte aligned structure */
|
||||||
typedef struct _QUAD
|
typedef struct _QUAD
|
||||||
{
|
{
|
||||||
|
@ -645,6 +650,11 @@ typedef struct _GROUP_AFFINITY {
|
||||||
} GROUP_AFFINITY, *PGROUP_AFFINITY;
|
} GROUP_AFFINITY, *PGROUP_AFFINITY;
|
||||||
|
|
||||||
/* Helper Macros */
|
/* Helper Macros */
|
||||||
|
|
||||||
|
#define RTL_FIELD_TYPE(type, field) (((type*)0)->field)
|
||||||
|
#define RTL_BITS_OF(sizeOfArg) (sizeof(sizeOfArg) * 8)
|
||||||
|
#define RTL_BITS_OF_FIELD(type, field) (RTL_BITS_OF(RTL_FIELD_TYPE(type, field)))
|
||||||
|
|
||||||
#define RTL_CONSTANT_STRING(s) { sizeof(s)-sizeof((s)[0]), sizeof(s), s }
|
#define RTL_CONSTANT_STRING(s) { sizeof(s)-sizeof((s)[0]), sizeof(s), s }
|
||||||
|
|
||||||
#define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
|
#define RTL_FIELD_SIZE(type, field) (sizeof(((type *)0)->field))
|
||||||
|
|
|
@ -1405,6 +1405,11 @@ typedef enum {
|
||||||
#define MESSAGE_RESOURCE_UNICODE 1
|
#define MESSAGE_RESOURCE_UNICODE 1
|
||||||
#define RTL_CRITSECT_TYPE 0
|
#define RTL_CRITSECT_TYPE 0
|
||||||
#define RTL_RESOURCE_TYPE 1
|
#define RTL_RESOURCE_TYPE 1
|
||||||
|
|
||||||
|
#define RTL_FIELD_TYPE(type, field) (((type*)0)->field)
|
||||||
|
#define RTL_BITS_OF(sizeOfArg) (sizeof(sizeOfArg) * 8)
|
||||||
|
#define RTL_BITS_OF_FIELD(type, field) (RTL_BITS_OF(RTL_FIELD_TYPE(type, field)))
|
||||||
|
|
||||||
/* Also in winddk.h */
|
/* Also in winddk.h */
|
||||||
#if !defined(__GNUC__)
|
#if !defined(__GNUC__)
|
||||||
#define FIELD_OFFSET(t,f) ((LONG)(LONG_PTR)&(((t*) 0)->f))
|
#define FIELD_OFFSET(t,f) ((LONG)(LONG_PTR)&(((t*) 0)->f))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue