diff --git a/index.d.ts b/index.d.ts index d0babb8..32f8fbf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -7,3 +7,4 @@ export function readData(processName: string, fields: Array): any export function readClass(processName: string, address: number): any export function readGenericInstance(processName: string, address: number): any export function findPidByName(processName: string): boolean +export function isAdmin(): boolean diff --git a/index.js b/index.js index 165ef63..efa7f3f 100644 --- a/index.js +++ b/index.js @@ -310,9 +310,10 @@ if (!nativeBinding) { throw new Error(`Failed to load native binding`) } -const { readData, readClass, readGenericInstance, findPidByName } = nativeBinding +const { readData, readClass, readGenericInstance, findPidByName, isAdmin } = nativeBinding module.exports.readData = readData module.exports.readClass = readClass module.exports.readGenericInstance = readGenericInstance module.exports.findPidByName = findPidByName +module.exports.isAdmin = isAdmin