rendered paste bodyint __stdcall WinMain(HINSTANCE hInstance, HINSTANCE, LPSTR, int)
{
InitCommonControls();
LOGBRUSH lb;
lb.lbColor = GetSysColor(COLOR_WINDOW);
lb.lbHatch = NULL;
lb.lbStyle = BS_SOLID;
hWindowBrush = CreateBrushIndirect(&lb);
hPopupMenu = LoadMenu(hInstance, MAKEINTRESOURCE(IDR_FILEPOPUP));
GetCurrentDirectory(MAX_PATH, szProcessDirectory);
DoFunctionLinking_GBDecompress();
DoFunctionLinking_GBCompress();
Log_Init("iXFS.log");
Log_Write("iXFS by Moose\n\t\tNot for public distribution\n");
g_hInstance = hInstance;
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG), NULL, DialogProc);
DeleteObject(hWindowBrush);
Log_Close();
return 0;
}