ReactOS 0.4.16-dev-122-g325d74c
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 324 of file accelerator.c.

325{
327
328 if (Accel->Table != NULL)
329 {
331 Accel->Table = NULL;
332 }
333
335 return TRUE;
336}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define UserHMGetHandle(obj)
Definition: ntuser.h:230
@ TYPE_ACCELTABLE
Definition: ntuser.h:48
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1109
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
BOOL FASTCALL UserDeleteObject(HANDLE h, HANDLE_TYPE type)
Definition: object.c:717
#define USERTAG_ACCEL
Definition: tags.h:196

Referenced by NtUserDestroyAcceleratorTable().

◆ UserGetAccelObject()

PACCELERATOR_TABLE FASTCALL UserGetAccelObject ( HACCEL  hAccel)

Definition at line 21 of file accelerator.c.

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

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