www.pudn.com > remote_thread.zip > spec_apis.h
#ifndef __SPECIAL_APIS_H__ #define __SPECIAL_APIS_H__ /////////////////////////////////////////////////////////////////////////////// // The kill thread software exception code // Useful macro for creating our own software exception codes #define MAKESOFTWAREEXCEPTION(Severity, Facility, Exception) \ ((DWORD) ( \ /* Severity code */ (Severity << 0) | \ /* MS(0) or Cust(1) */ (1 << 29) | \ /* Reserved(0) */ (0 << 28) | \ /* Facility code */ (Facility << 16) | \ /* Exception code */ (Exception << 0))) // Our very own software exception. This exception is raised // when a thread is being killed. #define SE_KILLTHREAD \ MAKESOFTWAREEXCEPTION(ERROR_SEVERITY_ERROR, FACILITY_NULL, 1) BOOL InitializeHookAPIs(); BOOL UninitializeHookAPIs(); #endif // __SPECIAL_APIS_H__