/* * category: [core] * apply status: * edit status: * build status: * description: honor to cly. */ #ifndef __MODCHECK_H__ #define __MODCHECK_H__ #pragma once #include "config.h" #if defined(_MSC_VER) #include #else #include #endif //_MSC_VER #ifdef __cplusplus extern "C" { #endif #define HPRINTF_BUFFER_SIZE (8*1024) // must be at least 2048 typedef struct { /* rtp.c static LARGE_INTEGER base_time; */ LARGE_INTEGER base_time; /* log.c static logmgr_t *g_mgr = 0; static int g_initialized = 0; */ void *g_mgr; int g_initialized; /* DumpException.c static CHAR hprintf_buffer[HPRINTF_BUFFER_SIZE]; // wvsprintf never prints more than one K. static int hprintf_index = 0; static CHAR szCrashID[20]; // Crash ID for sending to server */ CHAR hprintf_buffer[HPRINTF_BUFFER_SIZE]; int hprintf_index; CHAR szCrashID[20]; }toolkitResource; toolkitResource* toolkit_getResource(); BOOL toolkit_setAssign(void *assign); BOOL toolkit_setThreadGroupByAssign(void *assign); //create or recreate modInfo object bcz live in singleton format TOOLKIT_API BOOL toolkit_CreateModuleInfo(const char *name); //whether the thread belongs to mod TOOLKIT_API BOOL toolkit_checkThreadInName(DWORD threadId, const char *name); //destroy mod TOOLKIT_API BOOL toolkit_DestoryModuleInfo(const char *name); //insert thread information into list under mod named TOOLKIT_API BOOL toolkit_SetthreadGroup(DWORD threadId, const char *name); //kill the threads unser mod except TOOLKIT_API BOOL toolkit_TerminateThreadExcept(DWORD exceptThreadId, const char *name); #ifdef __cplusplus } // extern "C" { #endif #endif //__SHM_H__