How to call windows API in NSIS?
Use the system plugin, the basic syntax is: system::call 'windowsdll::function(parameters)' Check the docs for details
system::call 'windowsdll::function(parameters)'