All pastes #838936 Raw Edit

Stuff

public text v1 · immutable
#838936 ·published 2007-12-30 19:26 UTC
rendered paste body
int __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;
}