27{
29 WCHAR strErrorText[260];
31 WCHAR strDebugPath[260];
32 WCHAR strDebugger[260];
39
41
42 if (dwProcessId == 0)
43 return;
44
47
49 {
53 return;
54 }
55
57 {
61 return;
62 }
63
64 dwDebuggerSize = sizeof(strDebugger);
66 {
71 return;
72 }
73
75
77 if (!hDebugEvent)
78 {
82 return;
83 }
84
85 wsprintfW(strDebugPath, strDebugger, dwProcessId, hDebugEvent);
86
91 {
95 }
96 else
97 {
100 }
101
103}
#define IDS_MSG_UNABLEDEBUGPROCESS
#define IDS_MSG_TASKMGRWARNING
#define IDS_MSG_WARNINGDEBUG
#define RegCloseKey(hKey)
LONG WINAPI RegOpenKeyExW(HKEY hKey, LPCWSTR lpSubKey, DWORD ulOptions, REGSAM samDesired, PHKEY phkResult)
LONG WINAPI RegQueryValueExW(_In_ HKEY hkeyorg, _In_ LPCWSTR name, _In_ LPDWORD reserved, _In_ LPDWORD type, _In_ LPBYTE data, _In_ LPDWORD count)
BOOL WINAPI DECLSPEC_HOTPATCH CreateProcessW(LPCWSTR lpApplicationName, LPWSTR lpCommandLine, LPSECURITY_ATTRIBUTES lpProcessAttributes, LPSECURITY_ATTRIBUTES lpThreadAttributes, BOOL bInheritHandles, DWORD dwCreationFlags, LPVOID lpEnvironment, LPCWSTR lpCurrentDirectory, LPSTARTUPINFOW lpStartupInfo, LPPROCESS_INFORMATION lpProcessInformation)
DWORD GetSelectedProcessId(void)
HANDLE WINAPI DECLSPEC_HOTPATCH CreateEventW(IN LPSECURITY_ATTRIBUTES lpEventAttributes OPTIONAL, IN BOOL bManualReset, IN BOOL bInitialState, IN LPCWSTR lpName OPTIONAL)
LPWSTR GetLastErrorText(LPWSTR lpszBuf, DWORD dwSize)
#define HKEY_LOCAL_MACHINE
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPIV wsprintfW(_Out_ LPWSTR, _In_ _Printf_format_string_ LPCWSTR,...)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)