12{
14 WCHAR strErrorText[260];
16 WCHAR strDebugPath[260];
17 WCHAR strDebugger[260];
24
26
27 if (dwProcessId == 0)
28 return;
29
32
34 {
38 return;
39 }
40
42 {
46 return;
47 }
48
49 dwDebuggerSize = sizeof(strDebugger);
51 {
56 return;
57 }
58
60
62 if (!hDebugEvent)
63 {
67 return;
68 }
69
70 wsprintfW(strDebugPath, strDebugger, dwProcessId, hDebugEvent);
71
76 {
80 }
81 else
82 {
85 }
86
88}
#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)
BOOL ConfirmMessageBox(HWND hWnd, LPCWSTR Text, LPCWSTR Title, UINT Type)
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)