ReactOS  0.4.10-dev-34-g4db10a4
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(s, t)   ((ULONG)(s) & ~(sizeof(t) - 1))
 
#define ALIGN_UP(s, t)   (ALIGN_DOWN(((ULONG)(s) + sizeof(t) - 1), t))
 
#define ALIGN_DOWN_POINTER(p, t)   ((PVOID)((ULONG_PTR)(p) & ~((ULONG_PTR)sizeof(t) - 1)))
 
#define ALIGN_UP_POINTER(p, t)   (ALIGN_DOWN_POINTER(((ULONG_PTR)(p) + sizeof(t) - 1), t))
 
#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 (   s,
  t 
)    ((ULONG)(s) & ~(sizeof(t) - 1))
#define ALIGN_DOWN_POINTER (   p,
  t 
)    ((PVOID)((ULONG_PTR)(p) & ~((ULONG_PTR)sizeof(t) - 1)))

Definition at line 82 of file umtypes.h.

#define ALIGN_UP_POINTER (   p,
  t 
)    (ALIGN_DOWN_POINTER(((ULONG_PTR)(p) + sizeof(t) - 1), t))

Definition at line 85 of file umtypes.h.

Referenced by IopLogWorker(), and ScmSendStartCommand().

#define FASTCALL

Definition at line 61 of file umtypes.h.

#define MAXCHAR   0x7f

Definition at line 100 of file umtypes.h.

Referenced by KiInitializeKernel().

#define MAXSHORT   0x7fff

Definition at line 102 of file umtypes.h.

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

#define MAXUCHAR   0xff

Definition at line 105 of file umtypes.h.

Referenced by USBH_GetConfigurationDescriptor().

#define MAXULONG   0xffffffff

Definition at line 107 of file umtypes.h.

#define MAXUSHORT   0xffff

Definition at line 106 of file umtypes.h.

#define MINCHAR   0x80

Definition at line 99 of file umtypes.h.

#define MINSHORT   0x8000

Definition at line 101 of file umtypes.h.

Referenced by VgaMarkForUpdate().

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

Definition at line 92 of file umtypes.h.

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

Definition at line 91 of file umtypes.h.

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

Definition at line 93 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 189 of file umtypes.h.

Definition at line 194 of file umtypes.h.

typedef CONST int CINT

Definition at line 112 of file umtypes.h.

typedef ULONG CLONG

Definition at line 114 of file umtypes.h.

typedef short CSHORT

Definition at line 115 of file umtypes.h.

typedef LONG KPRIORITY

Definition at line 118 of file umtypes.h.

typedef STRING OEM_STRING

Definition at line 191 of file umtypes.h.

Definition at line 190 of file umtypes.h.

Definition at line 195 of file umtypes.h.

Definition at line 193 of file umtypes.h.

typedef CSHORT* PCSHORT

Definition at line 116 of file umtypes.h.

typedef CONST char* PCSZ

Definition at line 113 of file umtypes.h.

Definition at line 188 of file umtypes.h.

Definition at line 117 of file umtypes.h.

typedef * PNTSTATUS

Definition at line 126 of file umtypes.h.

Definition at line 85 of file file.c.

Definition at line 192 of file umtypes.h.

Definition at line 117 of file umtypes.h.

typedef struct _STRING * PSTRING

Function Documentation

typedef _Return_type_success_ ( return >=  0)