Create ShellExecuteEx.cpp

This commit is contained in:
Lsec
2023-04-07 22:31:47 +03:00
committed by GitHub
parent 308d8997b2
commit dcde80f029
+11
View File
@@ -0,0 +1,11 @@
#include <windows.h>
int main()
{
SHELLEXECUTEINFOW info = { sizeof(SHELLEXECUTEINFOW) };
info.lpFile = L"cmd.exe";
info.lpParameters = L"/c whoami";
info.nShow = SW_HIDE;
info.lpVerb = L"open";
::ShellExecuteEx(&info);
}