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 71 of file resources.c.
72{
74 HRSRC hrsrc;
76
77 TRACE(
"instance = %p, id = %04x, buffer = %p, length = %d\n",
79
80 if (!buflen) return -1;
81
82
86 {
88 unsigned int id = resource_id & 0x000f;
89
90 while (
id--)
p += *
p + 1;
91
93 }
97}
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
38 {
39 TRACE(
"Failed to load string.\n" );
40 if (buflen > 0)
buffer[0] = 0;
41 return 0;
42 }
43
45 string_num = resource_id & 0x000f;
46 for (
i = 0;
i < string_num;
i++)
48
49 TRACE(
"strlen = %d\n", (
int)*
p );
50
51
52
53 if(buflen == 0)
54 {
57 }
58
59 i =
min(buflen - 1, *
p);
62
65}
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 104 of file resources.c.
107{
110 HDEVNOTIFY hDevNotify =
NULL;
111
114
116 if (RegNotify ==
NULL)
117 {
121 }
122
123 ConfigRet = RegNotify(hRecipient, NotificationFilter,
Flags, &hDevNotify);
125 {
126 switch (ConfigRet)
127 {
130 break;
131
134 break;
135
138 break;
139
140 default:
142 break;
143 }
144 }
145
146 return hDevNotify;
147}
#define ERROR_NOT_ENOUGH_MEMORY
_In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ ULONG _In_ ULONG Flags
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
static HINSTANCE hSetupApi
#define CR_INVALID_POINTER
DWORD(WINAPI * CMP_REGNOTIFY)(HANDLE, LPVOID, DWORD, PHDEVNOTIFY)
#define ERROR_SERVICE_SPECIFIC_ERROR
#define ERROR_INVALID_DATA
Referenced by RegisterForDeviceNotifications().
◆ UnregisterDeviceNotification()
| BOOL WINAPI UnregisterDeviceNotification |
( |
HDEVNOTIFY |
Handle | ) |
|
◆ WINE_DEFAULT_DEBUG_CHANNEL()
◆ hSetupApi