This repository has been archived on 2019-12-04. You can view files and clone it, but cannot push or open issues or pull requests.
steamproxy/steamstub.c

23 lines
452 B
C
Raw Normal View History

2011-05-25 17:13:49 +00:00
/* steamstub.c - A Windows program for Linux
2011-06-21 20:24:48 +00:00
Useful as a wrapper to execute a Linux binary from Windows, and block on its
return (i.e. getting the Linux system() functionality for Linux binaries from
inside Windows binaries, such as Steam)
2011-05-25 17:13:49 +00:00
compile it with:
2011-06-21 20:24:48 +00:00
make
2011-05-25 17:13:49 +00:00
*/
#include <windows.h>
2011-06-21 20:24:48 +00:00
#include <stdlib.h>
2011-05-25 17:13:49 +00:00
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
2011-06-21 20:24:48 +00:00
system("gedit");
2011-05-25 17:13:49 +00:00
return 0;
}