Skip to content

Commit acb7954

Browse files
committed
Handles view
1 parent 77408c3 commit acb7954

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/bridge/bridgemain.cpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ BRIDGE_IMPEXP const char* BridgeInit()
8383
LOADEXPORT(_dbg_dbgcmddirectexec);
8484
LOADEXPORT(_dbg_getbranchdestination);
8585
LOADEXPORT(_dbg_sendmessage);
86+
LOADEXPORT(_dbg_gethandlecount);
87+
LOADEXPORT(_dbg_gethandlename);
88+
LOADEXPORT(_dbg_enumhandles);
89+
LOADEXPORT(_dbg_getProcessInformation);
8690
return 0;
8791
}
8892

@@ -846,6 +850,26 @@ BRIDGE_IMPEXP ARGTYPE DbgGetArgTypeAt(duint addr)
846850
return ARG_NONE;
847851
}
848852

853+
BRIDGE_IMPEXP long DbgGetHandleCount()
854+
{
855+
return _dbg_gethandlecount();
856+
}
857+
858+
BRIDGE_IMPEXP long DbgEnumHandles(duint* handles, unsigned char* typeNumbers, unsigned int* grantedAccess, unsigned int maxcount)
859+
{
860+
return _dbg_enumhandles(handles, typeNumbers, grantedAccess, maxcount);
861+
}
862+
863+
BRIDGE_IMPEXP bool DbgGetHandleName(char *name, char* typeName, size_t buffersize, duint remotehandle)
864+
{
865+
return _dbg_gethandlename(name, typeName, buffersize, remotehandle);
866+
}
867+
868+
BRIDGE_IMPEXP PROCESS_INFORMATION* DbgGetProcessInformation()
869+
{
870+
return _dbg_getProcessInformation();
871+
}
872+
849873
BRIDGE_IMPEXP void GuiDisasmAt(duint addr, duint cip)
850874
{
851875
_gui_sendmessage(GUI_DISASSEMBLE_AT, (void*)addr, (void*)cip);

0 commit comments

Comments
 (0)