memset(&wc, 0, sizeof(wc)); wc.lpfnWndProc = (WNDPROC)GaugeWndProc; wc.hInstance = hInstance; wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1); wc.lpszClassName = "NSGauge"; RegisterClass(&wc);
WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){	WNDCLASS	wc;	hInst = hInstance;	LoadString(hInst, IDS_TITLE, szTitle, MAX_BUF);  // Parse the command line  ParseCommandLine(lpCmdLine);	// Figure out the total size of the resources	EnumResourceNames(NULL, "FILE", (ENUMRESNAMEPROC)SizeOfResourcesProc, 0);  if(dwMode != SILENT)  {    // Register a class for the gauge    memset(&wc, 0, sizeof(wc));    wc.lpfnWndProc = (WNDPROC)GaugeWndProc;    wc.hInstance = hInstance;    wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);    wc.lpszClassName = "NSGauge";    RegisterClass(&wc);	  // Display the dialog box	  dlgInfo.hWndDlg = CreateDialog(hInstance, MAKEINTRESOURCE(IDD_EXTRACTING), NULL, (DLGPROC)DialogProc);	  UpdateWindow(dlgInfo.hWndDlg);  }	// Extract the files	EnumResourceNames(NULL, "FILE", (ENUMRESNAMEPROC)ExtractFilesProc, 0);		// Launch the install program and wait for it to finish	RunInstaller();	return 0;  }