Update winlibs.js

This commit is contained in:
Namhyeon Go 2020-07-26 18:09:28 +09:00 committed by GitHub
parent 632ccd0789
commit 1c3f148769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,8 +21,11 @@ exports.loadLibrary = function(LIB) {
};
};
exports.SHELL32 = (function() {
return exports.loadLibrary("SHELL32");
};
exports.showControlPanel = function(name, applets, args) {
var WINLIB_SHELL32 = exports.loadLibrary("shell32");
var _applets = [];
var _args = [];
@ -38,10 +41,13 @@ exports.showControlPanel = function(name, applets, args) {
_args.push(_applets.join(','));
// run command
return WINLIB_SHELL32.call("Control_runDLL", _args);
return exports.SHELL32.call("Control_runDLL", _args);
};
exports.showNetworkAdapters = function() {
return exports.openControlPanel("ncpa", ["@0", 3]);
};
exports.showWindowsCopyright = function() {
return exports.SHELL32.call("ShellAboutW");
};