27 typedef struct _MODULE_SERVICES_CONTEXT
41 _In_ HWND ParentWindowHandle,
49 context.ModuleName = ModuleName;
77 HWND serviceListHandle;
86 if (!I_QueryTagInformation)
88 PhShowError(hwndDlg, L
"Unable to query services because the feature is not supported by the operating system.");
89 EndDialog(hwndDlg, IDCANCEL);
94 namesReferencingModule.
InParams.
dwPid = HandleToUlong(context->ProcessId);
99 if (win32Result == ERROR_NO_MORE_ITEMS)
102 if (win32Result != 0)
104 PhShowStatus(hwndDlg, L
"Unable to query services", 0, win32Result);
105 EndDialog(hwndDlg, IDCANCEL);
129 serviceName += nameLength + 1;
141 MapWindowPoints(NULL, hwndDlg, (POINT *)&rect, 2);
142 MoveWindow(serviceListHandle, rect.left, rect.top, rect.right - rect.left, rect.bottom - rect.top,
FALSE);
144 ShowWindow(serviceListHandle, SW_SHOW);
153 message =
PhFormatString(L
"Services referencing %s:", context->ModuleName);
162 switch (LOWORD(wParam))
166 EndDialog(hwndDlg, IDOK);