dougt%meer.net 9337690b2c Adding a stub runner application to avoid loading two large processes. wince only. npodb
git-svn-id: svn://10.0.0.236/trunk@182468 18797224-902f-48f8-a5cc-f745e15eee43
2005-10-18 18:09:29 +00:00

43 lines
767 B
C++
Executable File

#include <windows.h>
int main(int argc, char *argv[])
{
HWND h = FindWindowW(NULL, L"Minimo");
if (h)
{
ShowWindow(h, SW_SHOWNORMAL);
SetForegroundWindow(h);
return 0;
}
char *cp;
char exe[MAX_PATH];
GetModuleFileName(GetModuleHandle(NULL), exe, sizeof(exe));
cp = strrchr(exe,'\\');
if (cp != NULL)
{
cp++; // pass the \ char.
*cp = 0;
}
strcat(exe, "minimo.exe");
PROCESS_INFORMATION pi;
BOOL b = CreateProcess(exe,
NULL,
NULL,
NULL,
NULL,
0,
NULL,
NULL,
NULL,
&pi);
return 0;
}