diff --git a/lib/memoryjs.cc b/lib/memoryjs.cc index 754906b..3d007bb 100644 --- a/lib/memoryjs.cc +++ b/lib/memoryjs.cc @@ -1576,6 +1576,7 @@ std::string GetLastErrorToString() { Napi::Object init(Napi::Env env, Napi::Object exports) { exports.Set(Napi::String::New(env, "openProcess"), Napi::Function::New(env, openProcess)); exports.Set(Napi::String::New(env, "getProcesses"), Napi::Function::New(env, getProcesses)); + exports.Set(Napi::String::New(env, "closeHandle"), Napi::Function::New(env, closeHandle)); exports.Set(Napi::String::New(env, "getModules"), Napi::Function::New(env, getModules)); exports.Set(Napi::String::New(env, "findModule"), Napi::Function::New(env, findModule)); exports.Set(Napi::String::New(env, "readMemory"), Napi::Function::New(env, readMemory)); @@ -1603,4 +1604,4 @@ Napi::Object init(Napi::Env env, Napi::Object exports) { return exports; } -NODE_API_MODULE(memoryjs, init) \ No newline at end of file +NODE_API_MODULE(memoryjs, init)