Go to the source code of this file.
◆ CR_INVALID_DATA
#define CR_INVALID_DATA 0x0000001F |
◆ CR_INVALID_POINTER
#define CR_INVALID_POINTER 0x00000003 |
◆ CR_OUT_OF_MEMORY
#define CR_OUT_OF_MEMORY 0x00000002 |
◆ CR_SUCCESS
◆ CMP_REGNOTIFY
◆ CMP_UNREGNOTIFY
◆ LoadStringA()
Definition at line 77 of file resources.c.
78{
80 HRSRC hrsrc;
82
83 TRACE(
"instance = %p, id = %04x, buffer = %p, length = %d\n",
85
86 if (!buflen) return -1;
87
88
92 {
94 unsigned int id = resource_id & 0x000f;
95
96 while (
id--)
p += *
p + 1;
97
98 if (buflen != 1)
100 }
103 return retval;
104}
static HINSTANCE instance
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
_Use_decl_annotations_ NTSTATUS NTAPI RtlUnicodeToMultiByteN(_Out_ PCHAR MbString, _In_ ULONG MbSize, _Out_opt_ PULONG ResultSize, _In_ PCWCH UnicodeString, _In_ ULONG UnicodeSize)
#define MAKEINTRESOURCEW(i)
◆ LoadStringW()
Definition at line 21 of file resources.c.
23{
25 HRSRC hrsrc;
27 int string_num;
29
30 TRACE(
"instance = %p, id = %04x, buffer = %p, length = %d\n",
32
34 return 0;
35
36
39 if (!hrsrc) return 0;
41 if (!hmem) return 0;
42
44 string_num = resource_id & 0x000f;
45 for (
i = 0;
i < string_num;
i++)
47
48 TRACE(
"strlen = %d\n", (
int)*
p );
49
50
51
52 if(buflen == 0)
53 {
56 }
57
58 i =
min(buflen - 1, *
p);
62 } else {
63 if (buflen > 1) {
65 return 0;
66 }
67 }
68
71}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define memcpy(s1, s2, n)
◆ RegisterDeviceNotificationW()
Definition at line 111 of file resources.c.
114{
117 HDEVNOTIFY hDevNotify =
NULL;
118
121
123 if (RegNotify ==
NULL)
124 {
128 }
129
130 ConfigRet = RegNotify(hRecipient, NotificationFilter,
Flags, (
PULONG) &hDevNotify);
132 {
133 switch (ConfigRet)
134 {
137 break;
138
141 break;
142
145 break;
146
147 default:
149 break;
150 }
151 }
152
153 return hDevNotify;
154}
#define ERROR_NOT_ENOUGH_MEMORY
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
DWORD(WINAPI * CMP_REGNOTIFY)(HANDLE, LPVOID, DWORD, PULONG)
static HINSTANCE hSetupApi
#define CR_INVALID_POINTER
#define ERROR_SERVICE_SPECIFIC_ERROR
#define ERROR_INVALID_DATA
_Must_inspect_result_ _In_ ULONG Flags
Referenced by RegisterForDeviceNotifications().
◆ UnregisterDeviceNotification()
BOOL WINAPI UnregisterDeviceNotification |
( |
HDEVNOTIFY |
Handle | ) |
|
Definition at line 162 of file resources.c.
163{
166
169
171 if (UnRegNotify ==
NULL)
172 {
176 }
177
180 {
181 switch (ConfigRet)
182 {
185 break;
186
189 break;
190
191 default:
193 break;
194 }
196 }
197
199}
DWORD(WINAPI * CMP_UNREGNOTIFY)(ULONG)
◆ WINE_DEFAULT_DEBUG_CHANNEL()
◆ hSetupApi