ReactOS 0.4.16-dev-329-g9223134
cursoricon.h
Go to the documentation of this file.
1#pragma once
2
3#define MAXCURICONHANDLES 4096
4
5/* Flags that are allowed to be set through NtUserSetCursorIconData() */
6#define CURSORF_USER_MASK \
7 (CURSORF_FROMRESOURCE | CURSORF_LRSHARED | CURSORF_ACON)
8
9typedef struct _CURICON_OBJECT
10{
28
29typedef struct tagACON
30{
44
46
50
53
54VOID
57
59{
64
65typedef struct _SYSTEM_CURSORINFO
66{
70// BOOL SwapButtons;
76/*
77 UINT WheelScroLines;
78 UINT WheelScroChars;
79 UINT DblClickSpeed;
80 UINT DblClickWidth;
81 UINT DblClickHeight;
82
83 UINT MouseHoverTime;
84 UINT MouseHoverWidth;
85 UINT MouseHoverHeight;
86
87 UINT MouseSpeed;
88 CURSORACCELERATION_INFO CursorAccelerationInfo;
89*/
96
97typedef struct {
101
102extern SYSTEMCURICO gasysico[];
103extern SYSTEMCURICO gasyscur[];
104
105#define ROIC_SAMPLE 0
106#define ROIC_HAND 1
107#define ROIC_QUES 2
108#define ROIC_BANG 3
109#define ROIC_NOTE 4
110#define ROIC_WINLOGO 5
111
112#define ROCR_ARROW 0
113#define ROCR_IBEAM 1
114#define ROCR_WAIT 2
115#define ROCR_CROSS 3
116#define ROCR_UP 4
117#define ROCR_SIZE 5
118#define ROCR_ICON 6
119#define ROCR_SIZENWSE 7
120#define ROCR_SIZENESW 8
121#define ROCR_SIZEWE 9
122#define ROCR_SIZENS 10
123#define ROCR_SIZEALL 11
124#define ROCR_NO 12
125#define ROCR_HAND 13
126#define ROCR_APPSTARTING 14
127#define ROCR_HELP 15
128
129#define SYSTEMCUR(func) (gasyscur[ROCR_ ## func].handle)
130#define SYSTEMICO(func) (gasysico[ROIC_ ## func].handle)
131
133
136
137BOOL UserDrawIconEx(HDC hDc, INT xLeft, INT yTop, PCURICON_OBJECT pIcon, INT cxWidth,
138 INT cyHeight, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags);
140BOOL UserSetCursorPos( INT x, INT y, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook);
144
145/* EOF */
unsigned char BOOLEAN
VOID FreeCurIconObject(_In_ PVOID Object)
Definition: cursoricon.c:336
struct _CURSORACCELERATION_INFO CURSORACCELERATION_INFO
SYSTEMCURICO gasyscur[]
Definition: cursoricon.c:32
HANDLE IntCreateCurIconHandle(BOOLEAN Anim)
Definition: cursoricon.c:285
struct tagACON * PACON
struct _SYSTEM_CURSORINFO * PSYSTEM_CURSORINFO
BOOL InitCursorImpl(VOID)
Definition: cursoricon.c:64
struct _CURICON_OBJECT CURICON_OBJECT
struct tagACON ACON
BOOL UserSetCursorPos(INT x, INT y, DWORD flags, ULONG_PTR dwExtraInfo, BOOL Hook)
Definition: cursoricon.c:238
VOID IntLoadSystenIcons(HICON, DWORD)
Definition: cursoricon.c:137
struct _SYSTEM_CURSORINFO SYSTEM_CURSORINFO
struct _CURICON_OBJECT * PCURICON_OBJECT
PSYSTEM_CURSORINFO IntGetSysCursorInfo(VOID)
Definition: cursoricon.c:187
PCURICON_OBJECT FASTCALL UserGetCurIconObject(HCURSOR hCurIcon)
Definition: cursoricon.c:200
PCURICON_OBJECT IntSystemSetCursor(PCURICON_OBJECT)
Definition: cursoricon.c:230
struct _CURSORACCELERATION_INFO * PCURSORACCELERATION_INFO
BOOL APIENTRY UserClipCursor(RECTL *prcl)
Definition: cursoricon.c:700
BOOL UserDrawIconEx(HDC hDc, INT xLeft, INT yTop, PCURICON_OBJECT pIcon, INT cxWidth, INT cyHeight, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags)
Definition: cursoricon.c:1689
VOID FASTCALL IntCleanupCurIconCache(PPROCESSINFO Win32Process)
Definition: cursoricon.c:395
SYSTEMCURICO gasysico[]
Definition: cursoricon.c:54
BOOLEAN IntDestroyCurIconObject(_In_ PVOID Object)
Definition: cursoricon.c:317
#define APIENTRY
Definition: api.h:79
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLbitfield flags
Definition: glext.h:7161
#define C_ASSERT(e)
Definition: intsafe.h:73
static HBITMAP
Definition: button.c:44
static HDC
Definition: imagelist.c:88
static HICON
Definition: imagelist.c:80
unsigned int UINT
Definition: ndis.h:50
#define _In_
Definition: no_sal2.h:158
#define FASTCALL
Definition: nt_native.h:50
short SHORT
Definition: pedump.c:59
long LONG
Definition: pedump.c:60
unsigned short USHORT
Definition: pedump.c:61
DWORD type
Definition: cursoricon.h:98
PCURICON_OBJECT handle
Definition: cursoricon.h:99
struct _CURICON_OBJECT * pcurNext
Definition: cursoricon.h:12
HBITMAP hbmColor
Definition: cursoricon.h:20
HBITMAP hbmMask
Definition: cursoricon.h:19
HBITMAP hbmUserAlpha
Definition: cursoricon.h:23
UNICODE_STRING strName
Definition: cursoricon.h:13
USHORT atomModName
Definition: cursoricon.h:14
PROCMARKHEAD head
Definition: cursoricon.h:11
ULONG CURSORF_flags
Definition: cursoricon.h:16
HBITMAP hbmAlpha
Definition: cursoricon.h:21
PCURICON_OBJECT CurrentCursorObject
Definition: cursoricon.h:74
UINT cpcur
Definition: cursoricon.h:37
UNICODE_STRING strName
Definition: cursoricon.h:33
PROCMARKHEAD head
Definition: cursoricon.h:31
USHORT rt
Definition: cursoricon.h:35
UINT cicur
Definition: cursoricon.h:38
DWORD * aicur
Definition: cursoricon.h:40
PCURICON_OBJECT * aspcur
Definition: cursoricon.h:39
struct _CURICON_OBJECT * pcurNext
Definition: cursoricon.h:32
INT * ajifRate
Definition: cursoricon.h:41
UINT iicur
Definition: cursoricon.h:42
USHORT atomModName
Definition: cursoricon.h:34
ULONG CURSORF_flags
Definition: cursoricon.h:36
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
int32_t INT
Definition: typedefs.h:58
uint32_t ULONG_PTR
Definition: typedefs.h:65
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_In_ ULONG _In_ CLIPOBJ _In_ RECTL * prcl
Definition: winddi.h:3531
HICON HCURSOR
Definition: windef.h:299