ReactOS  0.4.12-dev-43-g63b00d8
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:

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

◆ _NTDEF_

#define _NTDEF_

Definition at line 20 of file umtypes.h.

◆ _NTDEF_H

#define _NTDEF_H

Definition at line 21 of file umtypes.h.

◆ ALIGN_DOWN

◆ ALIGN_DOWN_BY

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

Definition at line 76 of file umtypes.h.

◆ ALIGN_DOWN_POINTER

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

Definition at line 94 of file umtypes.h.

◆ ALIGN_DOWN_POINTER_BY

◆ ALIGN_UP

◆ ALIGN_UP_BY

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

Definition at line 79 of file umtypes.h.

◆ ALIGN_UP_POINTER

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

Definition at line 97 of file umtypes.h.

Referenced by IopLogWorker(), ScmSendStartCommand(), and SoftModalMessageBox().

◆ ALIGN_UP_POINTER_BY

#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().

◆ FASTCALL

#define FASTCALL

Definition at line 61 of file umtypes.h.

◆ MAXCHAR

#define MAXCHAR   0x7f

Definition at line 112 of file umtypes.h.

Referenced by KiInitializeKernel().

◆ MAXLONG

◆ MAXSHORT

#define MAXSHORT   0x7fff

Definition at line 114 of file umtypes.h.

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

◆ MAXUCHAR

#define MAXUCHAR   0xff

Definition at line 117 of file umtypes.h.

Referenced by USBH_GetConfigurationDescriptor().

◆ MAXULONG

#define MAXULONG   0xffffffff

Definition at line 119 of file umtypes.h.

◆ MAXUSHORT

#define MAXUSHORT   0xffff

Definition at line 118 of file umtypes.h.

◆ MINCHAR

#define MINCHAR   0x80

Definition at line 111 of file umtypes.h.

◆ MINLONG

◆ MINSHORT

#define MINSHORT   0x8000

Definition at line 113 of file umtypes.h.

Referenced by VgaMarkForUpdate().

◆ NT_ERROR

◆ NT_INFORMATION

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

Definition at line 104 of file umtypes.h.

◆ NT_SUCCESS

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

Definition at line 103 of file umtypes.h.

◆ NT_WARNING

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

Definition at line 105 of file umtypes.h.

Referenced by IopCreateFile().

◆ NTAPI_INLINE

◆ NTOS_MODE_USER

#define NTOS_MODE_USER

Definition at line 41 of file umtypes.h.

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 35 of file umtypes.h.

Typedef Documentation

◆ ANSI_STRING

Definition at line 201 of file umtypes.h.

◆ ANSI_STRING32

◆ ANSI_STRING64

◆ CANSI_STRING

Definition at line 206 of file umtypes.h.

◆ CINT

typedef CONST int CINT

Definition at line 124 of file umtypes.h.

◆ CLIENT_ID

◆ CLONG

typedef ULONG CLONG

Definition at line 126 of file umtypes.h.

◆ CSHORT

typedef short CSHORT

Definition at line 127 of file umtypes.h.

◆ CSTRING

◆ KPRIORITY

typedef LONG KPRIORITY

Definition at line 130 of file umtypes.h.

◆ OBJECT_ATTRIBUTES

◆ OEM_STRING

typedef STRING OEM_STRING

Definition at line 203 of file umtypes.h.

◆ PANSI_STRING

Definition at line 202 of file umtypes.h.

◆ PANSI_STRING32

◆ PANSI_STRING64

◆ PCANSI_STRING

Definition at line 207 of file umtypes.h.

◆ PCLIENT_ID

◆ PCOEM_STRING

Definition at line 205 of file umtypes.h.

◆ PCSHORT

typedef CSHORT* PCSHORT

Definition at line 128 of file umtypes.h.

◆ PCSTRING

◆ PCSZ

typedef CONST char* PCSZ

Definition at line 125 of file umtypes.h.

◆ PCUNICODE_STRING

Definition at line 200 of file umtypes.h.

◆ PHYSICAL_ADDRESS

Definition at line 129 of file umtypes.h.

◆ PNTSTATUS

typedef * PNTSTATUS

Definition at line 138 of file umtypes.h.

◆ POBJECT_ATTRIBUTES

Definition at line 85 of file file.c.

◆ POEM_STRING

Definition at line 204 of file umtypes.h.

◆ PPHYSICAL_ADDRESS

Definition at line 129 of file umtypes.h.

◆ PSTRING

typedef struct _STRING * PSTRING

◆ PSTRING32

◆ PSTRING64

◆ PUNICODE_STRING

◆ PUNICODE_STRING32

◆ PUNICODE_STRING64

◆ STRING

◆ STRING32

◆ STRING64

◆ UNICODE_STRING

◆ UNICODE_STRING32

◆ UNICODE_STRING64

Function Documentation

◆ _Return_type_success_()

typedef _Return_type_success_ ( return >=  0)