Skip to content

Commit

Permalink
add isAdmin export
Browse files Browse the repository at this point in the history
  • Loading branch information
Manwe-777 committed May 7, 2024
1 parent a8cdc72 commit 526e817
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export function readData(processName: string, fields: Array<string>): 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
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 526e817

Please sign in to comment.