mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:56:00 +00:00
[SETUPAPI] CMP_RegisterNotification: When a window is registered, pass the window text to PNP_RegisterNotification().
This commit is contained in:
parent
b5478a7873
commit
86e8a477b6
1 changed files with 12 additions and 3 deletions
|
@ -602,8 +602,9 @@ CMP_RegisterNotification(
|
||||||
RPC_BINDING_HANDLE BindingHandle = NULL;
|
RPC_BINDING_HANDLE BindingHandle = NULL;
|
||||||
PNOTIFY_DATA pNotifyData = NULL;
|
PNOTIFY_DATA pNotifyData = NULL;
|
||||||
WCHAR szNameBuffer[256];
|
WCHAR szNameBuffer[256];
|
||||||
DWORD dwError;
|
INT nLength;
|
||||||
DWORD ulUnknown9 = 0;
|
DWORD ulUnknown9 = 0;
|
||||||
|
DWORD dwError;
|
||||||
CONFIGRET ret = CR_SUCCESS;
|
CONFIGRET ret = CR_SUCCESS;
|
||||||
|
|
||||||
FIXME("CMP_RegisterNotification(%p %p %lu %p)\n",
|
FIXME("CMP_RegisterNotification(%p %p %lu %p)\n",
|
||||||
|
@ -635,8 +636,16 @@ CMP_RegisterNotification(
|
||||||
{
|
{
|
||||||
FIXME("Register a window\n");
|
FIXME("Register a window\n");
|
||||||
|
|
||||||
/* FIXME */
|
nLength = GetWindowTextW((HWND)hRecipient,
|
||||||
szNameBuffer[0] = UNICODE_NULL;
|
szNameBuffer,
|
||||||
|
ARRAYSIZE(szNameBuffer));
|
||||||
|
if (nLength == 0)
|
||||||
|
{
|
||||||
|
HeapFree(GetProcessHeap(), 0, pNotifyData);
|
||||||
|
return CR_INVALID_DATA;
|
||||||
|
}
|
||||||
|
|
||||||
|
FIXME("Register window: %S\n", szNameBuffer);
|
||||||
}
|
}
|
||||||
else if ((ulFlags & DEVICE_NOTIFY_SERVICE_HANDLE) == DEVICE_NOTIFY_SERVICE_HANDLE)
|
else if ((ulFlags & DEVICE_NOTIFY_SERVICE_HANDLE) == DEVICE_NOTIFY_SERVICE_HANDLE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue