if(GetSaveFileName(&of))
if(GetOpenFileName(&of))
BOOL BrowseForDirectory(HWND hDlg, char *szCurrDir){   OPENFILENAME   of;  char           ftitle [MAX_PATH];  char           fname  [MAX_PATH];  char           szCDir [MAX_BUF];  char           szDlgBrowseTitle[MAX_BUF];  BOOL           bRet;  /* save the current directory */  GetCurrentDirectory(MAX_BUF, szCDir);  ZeroMemory(szDlgBrowseTitle, sizeof(szDlgBrowseTitle));  NS_LoadString(hSetupRscInst, IDS_DLGBROWSETITLE, szDlgBrowseTitle, MAX_BUF);  ftitle[0] = 0;  strcpy(fname, "*.*");  of.lStructSize        = sizeof(OPENFILENAME);  of.hwndOwner          = hDlg;  of.hInstance          = hSetupRscInst;  of.lpstrFilter        = NULL;  of.lpstrCustomFilter  = NULL;  of.nMaxCustFilter     = 0;  of.nFilterIndex       = 0;  of.lpstrFile          = fname;  of.nMaxFile           = MAX_PATH;  of.lpstrFileTitle     = ftitle;  of.nMaxFileTitle      = MAX_PATH;  of.lpstrInitialDir    = szCurrDir;  of.lpstrTitle         = szDlgBrowseTitle;  of.Flags              = OFN_NONETWORKBUTTON |                          OFN_ENABLEHOOK      |                          OFN_NOCHANGEDIR     |                          OFN_ENABLETEMPLATE;  of.nFileOffset        = 0;  of.nFileExtension     = 0;  of.lpstrDefExt        = NULL;  of.lCustData          = 0;  of.lpfnHook           = BrowseHookProc;  of.lpTemplateName     = MAKEINTRESOURCE(DLG_BROWSE_DIR);  if(GetSaveFileName(&of))    bRet = TRUE;  else    bRet = FALSE;  /* restore the current directory */  SetCurrentDirectory(szCDir);  return(bRet);}