ReactOS  0.4.10-dev-479-g13a3cf0
umtypes.h File Reference
#include <sal.h>
#include <no_sal2.h>
#include <windef.h>
#include <ntstatus.h>
#include <winioctl.h>
#include <ntnls.h>
Include dependency graph for umtypes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _UNICODE_STRING
 
struct  _STRING
 
struct  _CSTRING
 
struct  _STRING32
 
struct  _STRING64
 
struct  _OBJECT_ATTRIBUTES
 
struct  _CLIENT_ID
 

Macros

#define _NTDEF_
 
#define _NTDEF_H
 
#define WIN32_NO_STATUS
 
#define NTOS_MODE_USER
 
#define FASTCALL
 
#define NTAPI_INLINE   NTAPI
 
#define ALIGN_DOWN_BY(size, align)   ((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))
 
#define ALIGN_UP_BY(size, align)   (ALIGN_DOWN_BY(((ULONG_PTR)(size) + align - 1), align))
 
#define ALIGN_DOWN_POINTER_BY(ptr, align)   ((PVOID)ALIGN_DOWN_BY(ptr, align))
 
#define ALIGN_UP_POINTER_BY(ptr, align)   ((PVOID)ALIGN_UP_BY(ptr, align))
 
#define ALIGN_DOWN(size, type)   ALIGN_DOWN_BY(size, sizeof(type))
 
#define ALIGN_UP(size, type)   ALIGN_UP_BY(size, sizeof(type))
 
#define ALIGN_DOWN_POINTER(ptr, type)   ALIGN_DOWN_POINTER_BY(ptr, sizeof(type))
 
#define ALIGN_UP_POINTER(ptr, type)   ALIGN_UP_POINTER_BY(ptr, sizeof(type))
 
#define NT_SUCCESS(Status)   (((NTSTATUS)(Status)) >= 0)
 
#define NT_INFORMATION(Status)   ((((ULONG)(Status)) >> 30) == 1)
 
#define NT_WARNING(Status)   ((((ULONG)(Status)) >> 30) == 2)
 
#define NT_ERROR(Status)   ((((ULONG)(Status)) >> 30) == 3)
 
#define MINCHAR   0x80
 
#define MAXCHAR   0x7f
 
#define MINSHORT   0x8000
 
#define MAXSHORT   0x7fff
 
#define MINLONG   0x80000000
 
#define MAXLONG   0x7fffffff
 
#define MAXUCHAR   0xff
 
#define MAXUSHORT   0xffff
 
#define MAXULONG   0xffffffff
 

Typedefs

typedef CONST int CINT
 
typedef CONST charPCSZ
 
typedef ULONG CLONG
 
typedef short CSHORT
 
typedef CSHORTPCSHORT
 
typedef LARGE_INTEGER PHYSICAL_ADDRESS
 
typedef LARGE_INTEGERPPHYSICAL_ADDRESS
 
typedef LONG KPRIORITY
 
typedef * PNTSTATUS
 
typedef struct _UNICODE_STRING UNICODE_STRING
 
typedef struct _UNICODE_STRINGPUNICODE_STRING
 
typedef struct _STRING STRING
 
typedef struct _STRINGPSTRING
 
typedef struct _CSTRING CSTRING
 
typedef struct _CSTRINGPCSTRING
 
typedef struct _STRING32 STRING32
 
typedef struct _STRING32PSTRING32
 
typedef struct _STRING32 UNICODE_STRING32
 
typedef struct _STRING32PUNICODE_STRING32
 
typedef struct _STRING32 ANSI_STRING32
 
typedef struct _STRING32PANSI_STRING32
 
typedef struct _STRING64 STRING64
 
typedef struct _STRING64PSTRING64
 
typedef struct _STRING64 UNICODE_STRING64
 
typedef struct _STRING64PUNICODE_STRING64
 
typedef struct _STRING64 ANSI_STRING64
 
typedef struct _STRING64PANSI_STRING64
 
typedef struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES
 
typedef struct _OBJECT_ATTRIBUTESPOBJECT_ATTRIBUTES
 
typedef struct _CLIENT_ID CLIENT_ID
 
typedef struct _CLIENT_IDPCLIENT_ID
 
typedef const UNICODE_STRINGPCUNICODE_STRING
 
typedef STRING ANSI_STRING
 
typedef PSTRING PANSI_STRING
 
typedef STRING OEM_STRING
 
typedef PSTRING POEM_STRING
 
typedef CONST STRINGPCOEM_STRING
 
typedef STRING CANSI_STRING
 
typedef PSTRING PCANSI_STRING
 

Functions

typedef _Return_type_success_ (return >=0) long NTSTATUS
 

Macro Definition Documentation

#define _NTDEF_

Definition at line 20 of file umtypes.h.

#define _NTDEF_H

Definition at line 21 of file umtypes.h.

#define ALIGN_DOWN_BY (   size,
  align 
)    ((ULONG_PTR)(size) & ~((ULONG_PTR)(align) - 1))

Definition at line 76 of file umtypes.h.

#define ALIGN_DOWN_POINTER (   ptr,
  type 
)    ALIGN_DOWN_POINTER_BY(ptr, sizeof(type))

Definition at line 94 of file umtypes.h.

#define ALIGN_UP_BY (   size,
  align 
)    (ALIGN_DOWN_BY(((ULONG_PTR)(size) + align - 1), align))

Definition at line 79 of file umtypes.h.

#define ALIGN_UP_POINTER (   ptr,
  type 
)    ALIGN_UP_POINTER_BY(ptr, sizeof(type))

Definition at line 97 of file umtypes.h.

Referenced by IopLogWorker(), and ScmSendStartCommand().

#define ALIGN_UP_POINTER_BY (   ptr,
  align 
)    ((PVOID)ALIGN_UP_BY(ptr, align))

Definition at line 85 of file umtypes.h.

Referenced by FrLdrHeapRelease(), and MiCheckVadsForLockOperation().

#define FASTCALL

Definition at line 61 of file umtypes.h.

#define MAXCHAR   0x7f

Definition at line 112 of file umtypes.h.

Referenced by KiInitializeKernel().

#define MAXSHORT   0x7fff

Definition at line 114 of file umtypes.h.

Referenced by EnumProcesses(), MountMgrQueryPoints(), and VgaMarkForUpdate().

#define MAXUCHAR   0xff

Definition at line 117 of file umtypes.h.

Referenced by USBH_GetConfigurationDescriptor().

#define MAXULONG   0xffffffff

Definition at line 119 of file umtypes.h.

#define MAXUSHORT   0xffff

Definition at line 118 of file umtypes.h.

#define MINCHAR   0x80

Definition at line 111 of file umtypes.h.

#define MINSHORT   0x8000

Definition at line 113 of file umtypes.h.

Referenced by VgaMarkForUpdate().

#define NT_INFORMATION (   Status)    ((((ULONG)(Status)) >> 30) == 1)

Definition at line 104 of file umtypes.h.

#define NT_SUCCESS (   Status)    (((NTSTATUS)(Status)) >= 0)

Definition at line 103 of file umtypes.h.

#define NT_WARNING (   Status)    ((((ULONG)(Status)) >> 30) == 2)

Definition at line 105 of file umtypes.h.

Referenced by IopCreateFile().

#define NTAPI_INLINE   NTAPI

Definition at line 68 of file umtypes.h.

#define NTOS_MODE_USER

Definition at line 41 of file umtypes.h.

#define WIN32_NO_STATUS

Definition at line 35 of file umtypes.h.

Typedef Documentation

Definition at line 201 of file umtypes.h.

Definition at line 206 of file umtypes.h.

typedef CONST int CINT

Definition at line 124 of file umtypes.h.

typedef ULONG CLONG

Definition at line 126 of file umtypes.h.

typedef short CSHORT

Definition at line 127 of file umtypes.h.

typedef LONG KPRIORITY

Definition at line 130 of file umtypes.h.

typedef STRING OEM_STRING

Definition at line 203 of file umtypes.h.

Definition at line 202 of file umtypes.h.

Definition at line 207 of file umtypes.h.

Definition at line 205 of file umtypes.h.

typedef CSHORT* PCSHORT

Definition at line 128 of file umtypes.h.

typedef CONST char* PCSZ

Definition at line 125 of file umtypes.h.

Definition at line 200 of file umtypes.h.

Definition at line 129 of file umtypes.h.

typedef * PNTSTATUS

Definition at line 138 of file umtypes.h.

Definition at line 85 of file file.c.

Definition at line 204 of file umtypes.h.

Definition at line 129 of file umtypes.h.

typedef struct _STRING * PSTRING

Function Documentation

typedef _Return_type_success_ ( return >=  0)