Lines Matching refs:hProcess
74 #define GetProcAddressEx( hProcess, hModule, lpProcName ) GetProcAddress( hModule, lpProcName ) argument
76 FARPROC WINAPI GetProcAddressEx( HANDLE hProcess, HMODULE hModule, LPCSTR lpProcName ) in GetProcAddressEx() argument
82 DWORD dwProcessId = GetProcessId( hProcess ); in GetProcAddressEx()
94 if ( EnumProcessModules( hProcess, ahModules, sizeof(ahModules), &cbNeeded ) ) in GetProcAddressEx()
103 … hProcess, ahModules[n], szRemoteBaseName, elementsof(szRemoteBaseName) ) && in GetProcAddressEx()
148 static BOOL RaiseSignalEx( HANDLE hProcess, int sig ) in RaiseSignalEx() argument
150 DWORD dwProcessId = GetProcessId( hProcess ); in RaiseSignalEx()
205 … WriteProcessMemory( hProcess, (LPVOID)aContext.Esp, dwStackBuffer, sizeof(dwStackBuffer), NULL ); in RaiseSignalEx()
206 …aContext.Eip = (DWORD)GetProcAddressEx( hProcess, GetModuleHandleA("KERNEL32"), "RaiseException" ); in RaiseSignalEx()
408 HANDLE hProcess; in _tmain() local
411 hProcess = OpenProcess( PROCESS_TERMINATE | PROCESS_CREATE_THREAD | SYNCHRONIZE | in _tmain()
415 if ( IsValidHandle( hProcess ) ) in _tmain()
418 TerminateProcess( hProcess, 255 ); in _tmain()
421 if ( RaiseSignalEx( hProcess, sig ) ) in _tmain()
429 CloseHandle( hProcess ); in _tmain()