rhsCZ

IDP.GENERIC

May 1st, 2022
888
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <Windows.h>
  3.  
  4. int main(int argc, char** argv)
  5. {
  6.         SHELLEXECUTEINFOA shExInfo = { 0 };
  7.         shExInfo.cbSize = sizeof(shExInfo);
  8.         shExInfo.fMask = SEE_MASK_DEFAULT | SEE_MASK_NOCLOSEPROCESS;
  9.         shExInfo.hwnd = 0;
  10.         shExInfo.lpVerb = "";
  11.         shExInfo.lpFile = "C:\\Program Files\\Google\\Drive File Stream\\52.0.6.0\\GoogleDriveFS.exe";
  12.         shExInfo.lpParameters = "";
  13.         shExInfo.lpDirectory = 0;
  14.         shExInfo.nShow = SW_SHOW;
  15.         shExInfo.hInstApp = 0;
  16.         ShellExecuteExA(&shExInfo);
  17.         if(shExInfo.hProcess != 0)
  18.         {
  19.                 CloseHandle(shExInfo.hProcess);
  20.         }
  21.         Sleep(15000);
  22.         shExInfo.lpFile = "C:\\Program Files\\FreeFileSync\\RealTimeSync.exe";
  23.         shExInfo.lpParameters = "E:\\github\\sync-gdrive.ffs_real";
  24.         ShellExecuteExA(&shExInfo);
  25.         if (shExInfo.hProcess != 0)
  26.         {
  27.             CloseHandle(shExInfo.hProcess);
  28.         }
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment