Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // glnavi.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- int _tmain(int argc, _TCHAR* argv[])
- {
- DWORD enable = 1;
- HDC hdc = GetDC(NULL);
- ExtEscape(hdc, 0x229C7C, 4, (LPCSTR)&enable, 0, 0);
- ReleaseDC(NULL, hdc);
- NKDbgPrintfW(_T("setOSOverlayActivate(bActivate %d)\n"), enable);
- TCHAR buf[MAX_PATH*2] = {0};
- for (int i=1;i<argc;i++){
- wcscat(buf, argv[i]);
- if (i != (argc-1))
- wcscat(buf, __T(" "));
- }
- SHELLEXECUTEINFO sei;
- memset(&sei, 0, sizeof(sei));
- sei.cbSize = sizeof(sei);
- sei.nShow = SW_SHOWNORMAL;
- sei.hwnd = NULL;
- sei.lpParameters = buf;
- sei.lpFile = _T("\\Storage Card4\\NNG\\nngnavi.exe");
- ShellExecuteEx(&sei);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement