NULL, LicenceProc);
hwnd, LicenceProc);
static int CALLBACK AboutProc(HWND hwnd, UINT msg,			      WPARAM wParam, LPARAM lParam){    char *str;    switch (msg) {      case WM_INITDIALOG:	str = dupprintf("About %s", appname);	SetWindowText(hwnd, str);	sfree(str);	SetDlgItemText(hwnd, IDA_TEXT1, appname);	SetDlgItemText(hwnd, IDA_VERSION, ver);	return 1;      case WM_COMMAND:	switch (LOWORD(wParam)) {	  case IDOK:	  case IDCANCEL:	    EndDialog(hwnd, TRUE);	    return 0;	  case IDA_LICENCE:	    EnableWindow(hwnd, 0);	    DialogBox(hinst, MAKEINTRESOURCE(IDD_LICENCEBOX),		      NULL, LicenceProc);	    EnableWindow(hwnd, 1);	    SetActiveWindow(hwnd);	    return 0;	  case IDA_WEB:	    /* Load web browser */	    ShellExecute(hwnd, "open",			 "http://www.chiark.greenend.org.uk/~sgtatham/putty/",			 0, 0, SW_SHOWDEFAULT);	    return 0;	}	return 0;      case WM_CLOSE:	EndDialog(hwnd, TRUE);	return 0;    }    return 0;}