Lines Matching refs:szBuffer

180 static BOOL GetCrashDataPath( LPTSTR szBuffer )  in GetCrashDataPath()  argument
198 _tcsncpy( szBuffer, reinterpret_cast<LPCWSTR>(ustrPath.getStr()), MAX_PATH ); in GetCrashDataPath()
299 TCHAR szBuffer[2048]; in ReadFromRegistry() local
305 szBuffer, in ReadFromRegistry()
306 sizeof(szBuffer) ) ) in ReadFromRegistry()
307 sProxyServer = szBuffer; in ReadFromRegistry()
318 _stprintf( szBuffer, TEXT("%d"), dwProxyPort ); in ReadFromRegistry()
319 sProxyPort = szBuffer; in ReadFromRegistry()
326 szBuffer, in ReadFromRegistry()
327 sizeof(szBuffer) ) ) in ReadFromRegistry()
328 sEmail = szBuffer; in ReadFromRegistry()
393 TCHAR szBuffer[2048]; in ReadFromEnvironment() local
395 …lt = GetEnvironmentVariable( TEXT("ERRORREPORT_HTTPPROXYSERVER"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
397 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
398 sProxyServer = szBuffer; in ReadFromEnvironment()
400 …sult = GetEnvironmentVariable( TEXT("ERRORREPORT_HTTPPROXYPORT"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
402 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
403 sProxyPort = szBuffer; in ReadFromEnvironment()
405 …sult = GetEnvironmentVariable( TEXT("ERRORREPORT_RETURNADDRESS"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
407 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
409 sEmail = szBuffer; in ReadFromEnvironment()
413 …= GetEnvironmentVariable( TEXT("ERRORREPORT_HTTPCONNECTIONTYPE"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
415 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
417 if ( 0 == _tcsicmp( szBuffer, _T("DIRECT") ) ) in ReadFromEnvironment()
419 else if ( 0 == _tcsicmp( szBuffer, _T("MANUALPROXY") ) ) in ReadFromEnvironment()
421 else if ( 0 == _tcsicmp( szBuffer, _T("SYSTEMDEFAULT") ) ) in ReadFromEnvironment()
425 dwResult = GetEnvironmentVariable( TEXT("ERRORREPORT_SUBJECT"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
427 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
428 sTitle = szBuffer; in ReadFromEnvironment()
431 dwResult = GetEnvironmentVariable( TEXT("ERRORREPORT_BODYFILE"), szBuffer, elementsof(szBuffer) ); in ReadFromEnvironment()
433 if ( dwResult && dwResult < elementsof(szBuffer) ) in ReadFromEnvironment()
435 FILE *fp = _xfopen( szBuffer, _T("rb") ); in ReadFromEnvironment()
508 TCHAR szBuffer[FORMATBUFSIZE]; in LoadAndFormatString() local
511 LoadString( hInstance, uID, szBuffer, elementsof(szBuffer) ); in LoadAndFormatString()
515 for ( dest = szBuffer2, src = szBuffer; *src; src++, dest++ ) in LoadAndFormatString()
894 TCHAR szBuffer[256] = TEXT(""); in PreviewDialogProc() local
898 GetWindowText( hwndParent, szBuffer, elementsof(szBuffer) ); in PreviewDialogProc()
899 SetWindowText( hwndDlg, szBuffer ); in PreviewDialogProc()
901 LoadAndFormatString( hInstance, IDS_OK_BUTTON, szBuffer, elementsof(szBuffer) ); in PreviewDialogProc()
902 Button_SetText( GetDlgItem(hwndDlg, IDOK), szBuffer ); in PreviewDialogProc()
1044 TCHAR szBuffer[1024] = TEXT(""); in OptionsDialogProc() local
1050 LoadAndFormatString( hInstance, IDS_OPTIONS_CAPTION, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1051 SetWindowText( hwndDlg, szBuffer ); in OptionsDialogProc()
1053 LoadAndFormatString( hInstance, IDS_PROXY_SETTINGS_HEADER, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1054 Static_SetText( GetDlgItem(hwndDlg, IDC_PROXY_SETTINGS), szBuffer ); in OptionsDialogProc()
1056 LoadAndFormatString( hInstance, IDS_PROXY_SYSTEM, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1057 Button_SetText( GetDlgItem(hwndDlg, IDC_RADIO_SYSTEM), szBuffer ); in OptionsDialogProc()
1059 LoadAndFormatString( hInstance, IDS_PROXY_DIRECT, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1060 Button_SetText( GetDlgItem(hwndDlg, IDC_RADIO_DIRECT), szBuffer ); in OptionsDialogProc()
1062 LoadAndFormatString( hInstance, IDS_PROXY_MANUAL, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1063 Button_SetText( GetDlgItem(hwndDlg, IDC_RADIO_MANUAL), szBuffer ); in OptionsDialogProc()
1065 LoadAndFormatString( hInstance, IDS_LABEL_PROXYSERVER, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1066 Static_SetText( GetDlgItem(hwndDlg, IDC_LABEL_PROXYSERVER), szBuffer ); in OptionsDialogProc()
1068 LoadAndFormatString( hInstance, IDS_LABEL_PROXYPORT, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1069 Static_SetText( GetDlgItem(hwndDlg, IDC_LABEL_PROXYPORT), szBuffer ); in OptionsDialogProc()
1071 LoadAndFormatString( hInstance, IDS_OK_BUTTON, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1072 Button_SetText( GetDlgItem(hwndDlg, IDOK), szBuffer ); in OptionsDialogProc()
1074 LoadAndFormatString( hInstance, IDS_CANCEL_BUTTON, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1075 Button_SetText( GetDlgItem(hwndDlg, IDCANCEL), szBuffer ); in OptionsDialogProc()
1087 LoadAndFormatString( hInstance, IDS_PROXY_DESCRIPTION, szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1088 Edit_SetText( GetDlgItem(hwndDlg, IDC_PROXY_DESCRIPTION), szBuffer ); in OptionsDialogProc()
1104 TCHAR szBuffer[1024]; in OptionsDialogProc() local
1106 Edit_GetText( GetDlgItem(hwndDlg, IDC_EDIT_PROXYSERVER), szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1107 pParams->sProxyServer = szBuffer; in OptionsDialogProc()
1109 Edit_GetText( GetDlgItem(hwndDlg, IDC_EDIT_PROXYPORT), szBuffer, elementsof(szBuffer) ); in OptionsDialogProc()
1110 pParams->sProxyPort = szBuffer; in OptionsDialogProc()
1174 TCHAR szBuffer[FORMATBUFSIZE]; in ReportDialogProc() local
1176 LoadAndFormatString( hInstance, IDS_REPORT_INTRO, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1177 Static_SetText( GetDlgItem(hwndDlg, IDC_REPORT_INTRO), szBuffer ); in ReportDialogProc()
1179 Edit_SetText( GetDlgItem(hwndDlg, IDC_EDIT3), szBuffer ); in ReportDialogProc()
1181 LoadAndFormatString( hInstance, IDS_ENTER_TITLE, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1182 Static_SetText( GetDlgItem(hwndDlg, IDC_ENTER_TITLE), szBuffer ); in ReportDialogProc()
1184 LoadAndFormatString( hInstance, IDS_ENTER_DESCRIPTION, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1185 Static_SetText( GetDlgItem(hwndDlg, IDC_ENTER_DESCRIPTION), szBuffer ); in ReportDialogProc()
1187 LoadAndFormatString( hInstance, IDS_SHOW_REPORT_BUTTON, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1188 Button_SetText( GetDlgItem(hwndDlg, IDC_SHOW_REPORT), szBuffer ); in ReportDialogProc()
1190 LoadAndFormatString( hInstance, IDS_SAVE_REPORT_BUTTON, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1191 Button_SetText( GetDlgItem(hwndDlg, IDC_SAVE_REPORT), szBuffer ); in ReportDialogProc()
1199 LoadAndFormatString( hInstance, IDS_OPTIONS_BUTTON, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1200 Button_SetText( GetDlgItem(hwndDlg, IDC_OPTIONS), szBuffer ); in ReportDialogProc()
1202 LoadAndFormatString( hInstance, IDS_ALLOW_CONTACT, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1203 Button_SetText( GetDlgItem(hwndDlg, IDC_ALLOW_CONTACT), szBuffer ); in ReportDialogProc()
1206 LoadAndFormatString( hInstance, IDS_LABEL_EMAIL, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1207 Button_SetText( GetDlgItem(hwndDlg, IDC_LABEL_EMAIL), szBuffer ); in ReportDialogProc()
1219 TCHAR szBuffer[FORMATBUFSIZE]; in ReportDialogProc() local
1221 LoadAndFormatString( hInstance, IDS_REPORT_CAPTION, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1222 SetWindowText( GetParent(hwndDlg), szBuffer ); in ReportDialogProc()
1224 LoadAndFormatString( hInstance, IDS_REPORT_HEADER, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1225 SetWindowText( GetDlgItem(GetParent(hwndDlg), IDC_HEADER), szBuffer ); in ReportDialogProc()
1227 LoadAndFormatString( hInstance, IDS_DONOT_SEND_BUTTON, szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1228 Button_SetText( GetDlgItem(GetParent(hwndDlg), IDCANCEL), szBuffer ); in ReportDialogProc()
1252 TCHAR szBuffer[32767]; in ReportDialogProc() local
1258 Edit_GetText( GetDlgItem(hwndDlg, IDC_EDIT_TITLE), szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1259 pParams->sTitle = szBuffer; in ReportDialogProc()
1261 Edit_GetText( GetDlgItem(hwndDlg, IDC_EDIT_DESCRIPTION), szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1262 pParams->sComment = szBuffer; in ReportDialogProc()
1264 Edit_GetText( GetDlgItem(hwndDlg, IDC_EDIT_EMAIL), szBuffer, elementsof(szBuffer) ); in ReportDialogProc()
1265 pParams->sEmail = szBuffer; in ReportDialogProc()
1301 TCHAR szBuffer[FORMATBUFSIZE]; in WelcomeDialogProc() local
1315 LoadAndFormatString( hInstance, IDS_WELCOME_BODY1, szBuffer, elementsof(szBuffer) ); in WelcomeDialogProc()
1317 _tcsncat( szBuffer, szBuffer2, elementsof(szBuffer) ); in WelcomeDialogProc()
1319 _tcsncat( szBuffer, szBuffer2, elementsof(szBuffer) ); in WelcomeDialogProc()
1321 _tcsncat( szBuffer, szURL, elementsof(szBuffer) ); in WelcomeDialogProc()
1322 SetWindowText( hwndRichEdit, szBuffer ); in WelcomeDialogProc()
1333 TCHAR szBuffer[FORMATBUFSIZE]; in WelcomeDialogProc() local
1335 LoadAndFormatString( hInstance, IDS_WELCOME_CAPTION, szBuffer, elementsof(szBuffer) ); in WelcomeDialogProc()
1336 SetWindowText( GetParent(hwndDlg), szBuffer ); in WelcomeDialogProc()
1338 LoadAndFormatString( hInstance, IDS_WELCOME_HEADER, szBuffer, elementsof(szBuffer) ); in WelcomeDialogProc()
1339 SetWindowText( GetDlgItem(GetParent(hwndDlg), IDC_HEADER), szBuffer ); in WelcomeDialogProc()
1341 LoadAndFormatString( hInstance, IDS_CANCEL_BUTTON, szBuffer, elementsof(szBuffer) ); in WelcomeDialogProc()
1342 Button_SetText( GetDlgItem(GetParent(hwndDlg), IDCANCEL), szBuffer ); in WelcomeDialogProc()
1361 TCHAR szBuffer[256]; in WelcomeDialogProc() local
1365 range.lpstrText = szBuffer; in WelcomeDialogProc()
1369 ShellExecute( hwndDlg, NULL, szBuffer, NULL, NULL, SW_SHOWDEFAULT ); in WelcomeDialogProc()
1393 TCHAR szBuffer[FORMATBUFSIZE]; in DialogProc() local
1420 LoadAndFormatString( hInstance, IDS_CANCEL_BUTTON, szBuffer, elementsof(szBuffer) ); in DialogProc()
1421 Button_SetText( GetDlgItem(hwndDlg, IDCANCEL), szBuffer ); in DialogProc()
1423 LoadAndFormatString( hInstance, IDS_NEXT_BUTTON, szBuffer, elementsof(szBuffer) ); in DialogProc()
1424 Button_SetText( GetDlgItem(hwndDlg, IDNEXT), szBuffer ); in DialogProc()
1426 LoadAndFormatString( hInstance, IDS_SEND_BUTTON, szBuffer, elementsof(szBuffer) ); in DialogProc()
1427 Button_SetText( GetDlgItem(hwndDlg, IDFINISH), szBuffer ); in DialogProc()
1429 LoadAndFormatString( hInstance, IDS_BACK_BUTTON, szBuffer, elementsof(szBuffer) ); in DialogProc()
1430 Button_SetText( GetDlgItem(hwndDlg, IDBACK), szBuffer ); in DialogProc()
1460 TCHAR szBuffer[32767]; in DialogProc() local
1465 Edit_GetText( GetDlgItem(hwndPages[1], IDC_EDIT_TITLE), szBuffer, elementsof(szBuffer) ); in DialogProc()
1466 pParams->sTitle = szBuffer; in DialogProc()
1468 Edit_GetText( GetDlgItem(hwndPages[1], IDC_EDIT_DESCRIPTION), szBuffer, elementsof(szBuffer) ); in DialogProc()
1469 pParams->sComment = szBuffer; in DialogProc()
1471 Edit_GetText( GetDlgItem(hwndPages[1], IDC_EDIT_EMAIL), szBuffer, elementsof(szBuffer) ); in DialogProc()
1472 pParams->sEmail = szBuffer; in DialogProc()
2236 char szBuffer[1024]; in read_line() local
2242 while ( !bEOL && fgets( szBuffer, sizeof(szBuffer), fp ) ) in read_line()
2244 int len = strlen(szBuffer); in read_line()
2248 while ( len && szBuffer[len - 1] == '\n' ) in read_line()
2250 szBuffer[--len] = 0; in read_line()
2254 line.append( szBuffer ); in read_line()
2312 TCHAR szBuffer[256] = TEXT(""); in ReadBootstrapParams() local
2333 szBuffer, in ReadBootstrapParams()
2334 elementsof(szBuffer), in ReadBootstrapParams()
2338 TCHAR *pVersion = _tcschr( szBuffer, ' ' ); in ReadBootstrapParams()
2340 g_wstrProductKey = szBuffer; in ReadBootstrapParams()
2352 _tsetenv( TEXT("PRODUCTNAME"), szBuffer ); in ReadBootstrapParams()
2617 TCHAR szBuffer[1024] = TEXT(""); in SendingStatusDialogProc() local
2623 LoadAndFormatString( hInstance, IDS_SENDING_REPORT_HEADER, szBuffer, elementsof(szBuffer) ); in SendingStatusDialogProc()
2624 SetWindowText( hwndDlg, szBuffer ); in SendingStatusDialogProc()
2626 LoadAndFormatString( hInstance, IDS_SENDING_REPORT_STATUS, szBuffer, elementsof(szBuffer) ); in SendingStatusDialogProc()
2627 Static_SetText( GetDlgItem(hwndDlg, IDC_SENDING_REPORT_STATUS), szBuffer ); in SendingStatusDialogProc()
2629 LoadAndFormatString( hInstance, IDS_CANCEL_BUTTON, szBuffer, elementsof(szBuffer) ); in SendingStatusDialogProc()
2630 Button_SetText( GetDlgItem(hwndDlg, IDCANCEL), szBuffer ); in SendingStatusDialogProc()