-
Notifications
You must be signed in to change notification settings - Fork 91
Modules
Robert edited this page Apr 2, 2019
·
1 revision
When retrieving a module, an object is returned with details about it.
{ modBaseAddr: 468123648,
modBaseSize: 80302080,
szExePath: 'c:\\program files (x86)\\steam\\steamapps\\common\\counter-strike global offensive\\csgo\\bin\\client.dll',
szModule: 'client.dll',
th32ProcessID: 10316 }
- moduleName - the name of the module to find
- processId - the ID of the process in which to find the module
-
callback - has two parameters:
- error - error message (if one occurred)
- moduleObject - object containing information about the module
returns (if no callback provided): object containing information about the module
Finds a given module associated with a process.
// synchronously
const moduleObject = memoryjs.findModule(moduleName, processId);
// asynchronously
memoryjs.findModule(moduleName, processId, (error, moduleObject) => {
});
- processId - the ID of the process to find the modules of
-
callback - has two parameters:
- error - error message (if one occurred)
- moduleObject - array of module objects found within the given process
returns (if no callback provided): array of module objects found within the given process
Finds all the modules within a given process.
// synchronously
const modules = memoryjs.getModules(processId);
// asynchronously
memoryjs.getModules(processId, (error, modules) => {
});