Advertisement
Guest User

glnavi.cpp

a guest
Jul 1st, 2018
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // glnavi.cpp : Defines the entry point for the console application.
  2. //
  3.  
  4. #include "stdafx.h"
  5.  
  6.  
  7.  
  8. int _tmain(int argc, _TCHAR* argv[])
  9. {
  10.     DWORD enable = 1;
  11.  
  12.     HDC hdc = GetDC(NULL);
  13.     ExtEscape(hdc, 0x229C7C, 4, (LPCSTR)&enable, 0, 0);
  14.     ReleaseDC(NULL, hdc);
  15.  
  16.     NKDbgPrintfW(_T("setOSOverlayActivate(bActivate %d)\n"), enable);
  17.  
  18.     TCHAR buf[MAX_PATH*2] = {0};
  19.     for (int i=1;i<argc;i++){
  20.         wcscat(buf, argv[i]);
  21.         if (i != (argc-1))
  22.             wcscat(buf, __T(" "));
  23.     }
  24.  
  25.     SHELLEXECUTEINFO sei;
  26.     memset(&sei, 0, sizeof(sei));
  27.     sei.cbSize = sizeof(sei);
  28.     sei.nShow = SW_SHOWNORMAL;
  29.     sei.hwnd = NULL;
  30.     sei.lpParameters = buf;
  31.     sei.lpFile = _T("\\Storage Card4\\NNG\\nngnavi.exe");
  32.     ShellExecuteEx(&sei);
  33.  
  34.     return 0;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement