Lines Matching refs:opcodes

253 static UINT CheckOpcodes( const char ** opcodes, void *inpAddr, bool abortOnError, const FunctionIn…  in CheckOpcodes()  argument
257 static size_t opcodes_pointer = (size_t)opcodes; in CheckOpcodes()
264 if( !opcodesStringsCount || opcodes_pointer != (size_t)opcodes ){ in CheckOpcodes()
265 while( *(opcodes + opcodesStringsCount)!= nullptr ){ in CheckOpcodes()
266 if( (i=strlen(*(opcodes + opcodesStringsCount))) > maxOpcodesLength ) in CheckOpcodes()
270 opcodes_pointer = (size_t)opcodes; in CheckOpcodes()
282 result = compareStrings( opcodes[idx],opcodeString ); in CheckOpcodes()
435 static bool InsertTrampoline(void *inpAddr, void *targetAddr, const char ** opcodes, void** origFun… in InsertTrampoline() argument
454 UINT opcodeIdx = CheckOpcodes( opcodes, inpAddr, /*abortOnError=*/true ); in InsertTrampoline()
456 pattern = opcodes[opcodeIdx-1]; // -1 compensates for +1 in CheckOpcodes in InsertTrampoline()
478 …onst char *dllName, const char *funcName, FUNCPTR newFunc, const char ** opcodes, FUNCPTR* origFun… in ReplaceFunctionA() argument
510 if (!InsertTrampoline((void*)inpFunc, (void*)newFunc, opcodes, (void**)origFunc)){ in ReplaceFunctionA()
518 …t wchar_t *dllName, const char *funcName, FUNCPTR newFunc, const char ** opcodes, FUNCPTR* origFun… in ReplaceFunctionW() argument
550 if (!InsertTrampoline((void*)inpFunc, (void*)newFunc, opcodes, (void**)origFunc)){ in ReplaceFunctionW()
558 bool IsPrologueKnown(const char* dllName, const char *funcName, const char **opcodes, HMODULE modul… in IsPrologueKnown() argument
568 return CheckOpcodes( opcodes, (void*)inpFunc, /*abortOnError=*/false, &functionInfo) != 0; in IsPrologueKnown()