ReactOS  0.4.15-dev-313-g8fde48b
accelerator.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _ACCELERATOR_TABLE
 

Typedefs

typedef struct _ACCELERATOR_TABLE ACCELERATOR_TABLE
 
typedef struct _ACCELERATOR_TABLEPACCELERATOR_TABLE
 

Functions

PACCELERATOR_TABLE FASTCALL UserGetAccelObject (HACCEL)
 
BOOLEAN UserDestroyAccelTable (PVOID Object)
 

Typedef Documentation

◆ ACCELERATOR_TABLE

◆ PACCELERATOR_TABLE

Function Documentation

◆ UserDestroyAccelTable()

BOOLEAN UserDestroyAccelTable ( PVOID  Object)

Definition at line 328 of file accelerator.c.

329 {
330  PACCELERATOR_TABLE Accel = Object;
331 
332  if (Accel->Table != NULL)
333  {
335  Accel->Table = NULL;
336  }
337 
339  return TRUE;
340 }
BOOL FASTCALL UserDeleteObject(HANDLE h, HANDLE_TYPE type)
Definition: object.c:683
#define TRUE
Definition: types.h:120
#define USERTAG_ACCEL
Definition: tags.h:195
smooth NULL
Definition: ftsmooth.c:416
static IUnknown Object
Definition: main.c:512
PROCMARKHEAD head
Definition: accelerator.h:5
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099

Referenced by NtUserDestroyAcceleratorTable().

◆ UserGetAccelObject()

PACCELERATOR_TABLE FASTCALL UserGetAccelObject ( HACCEL  )

Definition at line 21 of file accelerator.c.

22 {
23  PACCELERATOR_TABLE Accel;
24 
25  if (!hAccel)
26  {
28  return NULL;
29  }
30 
32  if (!Accel)
33  {
35  return NULL;
36  }
37 
38  return Accel;
39 }
#define ERROR_INVALID_ACCEL_HANDLE
Definition: winerror.h:884
HACCEL hAccel
Definition: main.c:47
smooth NULL
Definition: ftsmooth.c:416
PVOID UserGetObject(PUSER_HANDLE_TABLE ht, HANDLE handle, HANDLE_TYPE type)
Definition: object.c:462
PUSER_HANDLE_TABLE gHandleTable
Definition: object.c:13
ENGAPI VOID APIENTRY EngSetLastError(_In_ ULONG iError)
Definition: error.c:27

Referenced by NtUserCopyAcceleratorTable(), NtUserDestroyAcceleratorTable(), and NtUserTranslateAccelerator().