HyperDbg Debugger
Loading...
Searching...
No Matches
HyperDbgScriptImports.h
Go to the documentation of this file.
1
11#pragma once
12
13//
14// Header file of script-engine
15// Imports
16//
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21//
22// Script engine
23//
24__declspec(dllimport) PVOID
25ScriptEngineParse(char * str);
26__declspec(dllimport) void
27PrintSymbolBuffer(const PVOID SymbolBuffer);
28__declspec(dllimport) void
29PrintSymbol(PVOID Symbol);
30__declspec(dllimport) void
31RemoveSymbolBuffer(PVOID SymbolBuffer);
32__declspec(dllimport) BOOLEAN
34__declspec(dllimport) BOOLEAN
36
37//
38// pdb parser
39//
40__declspec(dllimport) VOID
42__declspec(dllimport) VOID
44__declspec(dllimport) UINT64
45ScriptEngineConvertNameToAddress(const char * FunctionOrVariableName, PBOOLEAN WasFound);
46__declspec(dllimport) UINT32
47ScriptEngineLoadFileSymbol(UINT64 BaseAddress, const char * PdbFileName, const char * CustomModuleName);
48__declspec(dllimport) UINT32
50__declspec(dllimport) UINT32
51ScriptEngineUnloadModuleSymbol(char * ModuleName);
52__declspec(dllimport) UINT32
53ScriptEngineSearchSymbolForMask(const char * SearchMask);
54__declspec(dllimport) BOOLEAN
56__declspec(dllimport) BOOLEAN
58__declspec(dllimport) BOOLEAN
60__declspec(dllimport) BOOLEAN
61ScriptEngineConvertFileToPdbPath(const char * LocalFilePath, char * ResultPath);
62__declspec(dllimport) BOOLEAN
64__declspec(dllimport) BOOLEAN
66__declspec(dllimport) BOOLEAN
68
69#ifdef __cplusplus
70}
71#endif
UCHAR BOOLEAN
Definition BasicTypes.h:39
BOOLEAN * PBOOLEAN
Definition BasicTypes.h:40
#define VOID
Definition BasicTypes.h:33
unsigned __int64 UINT64
Definition BasicTypes.h:21
unsigned int UINT32
Definition BasicTypes.h:48
char CHAR
Definition BasicTypes.h:31
char * PdbFilePath
Definition HyperDbgScriptImports.h:63
CHAR * FieldName
Definition HyperDbgScriptImports.h:55
CHAR UINT32 * FieldOffset
Definition HyperDbgScriptImports.h:55
UINT64 BOOLEAN IsStruct
Definition HyperDbgScriptImports.h:67
__declspec(dllimport) PVOID ScriptEngineParse(char *str)
UINT64 * TypeSize
Definition HyperDbgScriptImports.h:57
UINT64 Address
Definition HyperDbgScriptImports.h:67
UINT32 * NumberOfGetOperands
Definition HyperDbgScriptImports.h:33
UINT32 BOOLEAN const char * SymbolPath
Definition HyperDbgScriptImports.h:65
char char BOOLEAN Is32BitModule
Definition HyperDbgScriptImports.h:63
UINT32 BOOLEAN const char BOOLEAN IsSilentLoad
Definition HyperDbgScriptImports.h:65
UINT32 StoredLength
Definition HyperDbgScriptImports.h:65
const char const char * CustomModuleName
Definition HyperDbgScriptImports.h:47
const char * PdbFileName
Definition HyperDbgScriptImports.h:47
UINT64 BOOLEAN PVOID const char * AdditionalParameters
Definition HyperDbgScriptImports.h:67
UINT64 BOOLEAN PVOID BufferAddress
Definition HyperDbgScriptImports.h:67
UINT32 UINT32 * NumberOfSetOperands
Definition HyperDbgScriptImports.h:33
char * ResultPath
Definition HyperDbgScriptImports.h:61
UINT32 BOOLEAN DownloadIfAvailable
Definition HyperDbgScriptImports.h:65
PBOOLEAN WasFound
Definition HyperDbgScriptImports.h:45
char char * GuidAndAgeDetails
Definition HyperDbgScriptImports.h:63
void PrintSymbol(PVOID Symbol)
Prints symbol.
Definition script-engine.c:2574
BOOLEAN FuncGetNumberOfOperands(UINT64 FuncType, UINT32 *NumberOfGetOperands, UINT32 *NumberOfSetOperands)
Script Engine get number of operands.
Definition script-engine.c:3356
UINT32 ScriptEngineUnloadModuleSymbol(char *ModuleName)
Unload a special pdb.
Definition script-engine.c:94
UINT64 ScriptEngineConvertNameToAddress(const char *FunctionOrVariableName, PBOOLEAN WasFound)
Converts name to address.
Definition script-engine.c:33
BOOLEAN ScriptEngineGetFieldOffset(CHAR *TypeName, CHAR *FieldName, UINT32 *FieldOffset)
Get offset of a field from the structure.
Definition script-engine.c:126
BOOLEAN ScriptEngineCreateSymbolTableForDisassembler(void *CallbackFunction)
Create symbol table for disassembler.
Definition script-engine.c:157
UINT32 ScriptEngineLoadFileSymbol(UINT64 BaseAddress, const char *PdbFileName, const char *CustomModuleName)
Definition script-engine.c:53
void PrintSymbolBuffer(const PVOID SymbolBuffer)
Prints a symbol buffer.
Definition script-engine.c:2859
BOOLEAN ScriptEngineConvertFileToPdbFileAndGuidAndAgeDetails(const char *LocalFilePath, char *PdbFilePath, char *GuidAndAgeDetails, BOOLEAN Is32BitModule)
Convert file to pdb attributes for symbols.
Definition script-engine.c:252
PVOID ScriptEngineParse(char *str)
The entry point of script engine.
Definition script-engine.c:267
BOOLEAN ScriptEngineSetHwdbgInstanceInfo(HWDBG_INSTANCE_INFORMATION *InstancInfo)
Set hwdbg instance info for the script engine.
Definition script-engine.c:3332
BOOLEAN ScriptEngineGetDataTypeSize(CHAR *TypeName, UINT64 *TypeSize)
Get size of a data type (structure)
Definition script-engine.c:142
BOOLEAN ScriptEngineSymbolInitLoad(PVOID BufferToStoreDetails, UINT32 StoredLength, BOOLEAN DownloadIfAvailable, const char *SymbolPath, BOOLEAN IsSilentLoad)
Initial load of the symbols.
Definition script-engine.c:192
BOOLEAN ScriptEngineShowDataBasedOnSymbolTypes(const char *TypeName, UINT64 Address, BOOLEAN IsStruct, PVOID BufferAddress, const char *AdditionalParameters)
Show data based on symbol types.
Definition script-engine.c:215
void RemoveSymbolBuffer(PVOID SymbolBuffer)
Frees the memory allocated by SymbolBuffer.
Definition script-engine.c:2725
VOID ScriptEngineSetTextMessageCallback(PVOID Handler)
Set the message handler as an alternative to printf.
Definition script-engine.c:68
UINT32 ScriptEngineUnloadAllSymbols()
Unload all the previously loaded symbols.
Definition script-engine.c:79
UINT32 ScriptEngineSearchSymbolForMask(const char *SearchMask)
Search for a special mask.
Definition script-engine.c:109
VOID ScriptEngineSymbolAbortLoading()
Cancel loading.
Definition script-engine.c:233
BOOLEAN ScriptEngineConvertFileToPdbPath(const char *LocalFilePath, char *ResultPath)
Convert local file to pdb path.
Definition script-engine.c:173
The structure of script capabilities information in hwdbg.
Definition HardwareDebugger.h:91