6#define CR_SUCCESS 0x00000000
7#define CR_OUT_OF_MEMORY 0x00000002
8#define CR_INVALID_POINTER 0x00000003
9#define CR_INVALID_DATA 0x0000001F
30 TRACE(
"instance = %p, id = %04x, buffer = %p, length = %d\n",
44 string_num = resource_id & 0x000f;
45 for (
i = 0;
i < string_num;
i++)
48 TRACE(
"strlen = %d\n", (
int)*
p );
58 i =
min(buflen - 1, *
p);
83 TRACE(
"instance = %p, id = %04x, buffer = %p, length = %d\n",
86 if (!buflen)
return -1;
94 unsigned int id = resource_id & 0x000f;
96 while (
id--)
p += *
p + 1;
112 LPVOID NotificationFilter,
117 HDEVNOTIFY hDevNotify =
NULL;
123 if (RegNotify ==
NULL)
130 ConfigRet = RegNotify(hRecipient, NotificationFilter,
Flags, (
PULONG) &hDevNotify);
171 if (UnRegNotify ==
NULL)
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define ERROR_NOT_ENOUGH_MEMORY
static HINSTANCE instance
#define ERROR_INVALID_PARAMETER
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
HRSRC WINAPI FindResourceW(HINSTANCE hModule, LPCWSTR name, LPCWSTR type)
LPVOID WINAPI LockResource(HGLOBAL handle)
HGLOBAL WINAPI LoadResource(HINSTANCE hModule, HRSRC hRsrc)
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)
_Use_decl_annotations_ NTSTATUS NTAPI RtlUnicodeToMultiByteN(_Out_ PCHAR MbString, _In_ ULONG MbSize, _Out_opt_ PULONG ResultSize, _In_ PCWCH UnicodeString, _In_ ULONG UnicodeSize)
DWORD(WINAPI * CMP_UNREGNOTIFY)(ULONG)
BOOL WINAPI UnregisterDeviceNotification(HDEVNOTIFY Handle)
HDEVNOTIFY WINAPI RegisterDeviceNotificationW(HANDLE hRecipient, LPVOID NotificationFilter, DWORD Flags)
INT WINAPI LoadStringW(HINSTANCE instance, UINT resource_id, LPWSTR buffer, INT buflen)
INT WINAPI LoadStringA(HINSTANCE instance, UINT resource_id, LPSTR buffer, INT buflen)
DWORD(WINAPI * CMP_REGNOTIFY)(HANDLE, LPVOID, DWORD, PULONG)
static HINSTANCE hSetupApi
#define CR_INVALID_POINTER
#define ERROR_SERVICE_SPECIFIC_ERROR
#define ERROR_INVALID_DATA
#define MAKEINTRESOURCEW(i)
_Must_inspect_result_ _In_ ULONG Flags