Listing 3 A common implementation to be compiled and linked into your program


int APIENTRY synesisWinMain(HINSTANCE,
                            HINSTANCE,
                            LPSTR,
                            int)
{
    int iRet;

    iRet = WinMain( GetModuleHandle(NULL),
                    NULL,
                    GetAdjustedCommandLine(),
                    GetWindowShowState());

    trace_leaks();

    return iRet;
}