Untitled

mail@pastecode.io avatar
unknown
plain_text
8 months ago
563 B
2
Indexable
Never
void return_hash(string rare5) {
	STARTUPINFO si;PROCESS_INFORMATION pi;ZeroMemory(&si, sizeof(si));ZeroMemory(&pi, sizeof(pi));si.cb = sizeof(si);rare5 += " > nul";
	int wideStrLen = MultiByteToWideChar(CP_UTF8, 0, rare5.c_str(), -1, NULL, 0);
	LPWSTR wideStr = new WCHAR[wideStrLen];
	MultiByteToWideChar(CP_UTF8, 0, rare5.c_str(), -1, wideStr, wideStrLen);
	if (CreateProcess(NULL, wideStr, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {WaitForSingleObject(pi.hProcess, INFINITE);CloseHandle(pi.hProcess);CloseHandle(pi.hThread);}
	delete[] wideStr;
}
Leave a Comment