0.0.23 • Published 7 years ago
dbghelp.js v0.0.23
windows dbghelp.dll wrapper for js
support api list
void* GetCurrentProcess();
- boolean SymInitialize( void* hProcess , string UserSearchPath , boolean InvadeProcess );
- boolean SymCleanup( void* hProcess );
- string SymGetSymbolFile( void* hProcess , string ImageFile , string SymbolType);
string SymGetSearchPath( void* hProcess );
boolean SymSetSearchPath( void* hProcess , string UserSearchPath );
- ULONG64 SymLoadModuleFile( void* hProcess , string ImageFile , string ModuleName , ULONG64 ImageBase , int SizeOfImage );
- boolean SymUnloadModule64( void* hProcess , ULONG64 ImageBase );
- string SymGetNameFromAddr( void* hProcess , ULONG64 address );
- ULONG64 SymGetAddrFromName( void* hProcess , string name );
- string UnDecorateSymbolName( string name );
And here's some code:
var dbghelp = require('dbghelp.js');
var BinFile = "D:/win32k/win32kbase.sys";
var PdbFile = '';
var hProcess = null;
var pWin32kBase = null;
dbghelp.SymInitialize( hProcess , 'c:/symbols' , false );
PdbFile = dbghelp.SymGetSymbolFile( hProcess , BinFile )
printf('[SymGetSymbolFile] %s \n' , PdbFile );
pWin32kBase = dbghelp.SymLoadModuleFile( hProcess , BinFile );
printf('[SymLoadModuleFile] %s \n' , pWin32kBase );
var a = dbghelp.SymGetAddrFromName(hProcess , "gpW32FastMutex" );
printf( "gpW32FastMutex = %p \n" , a );
dbghelp.SymGetNameFromAddr(hProcess , a );
dbghelp.SymCleanup( hProcess );
0.0.23
7 years ago
0.0.22
7 years ago
0.0.21
7 years ago
0.0.20
7 years ago
0.0.19
7 years ago
0.0.18
7 years ago
0.0.17
7 years ago
0.0.16
7 years ago
0.0.15
7 years ago
0.0.14
7 years ago
0.0.13
7 years ago
0.0.12
7 years ago
0.0.10
7 years ago
0.0.9
7 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago