GitBook: [master] one page modified

This commit is contained in:
CPol 2020-12-28 14:14:40 +00:00 committed by gitbook-bot
parent bcb25897ff
commit 65a0afb2a4
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -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;
}