OLD | NEW |
1 // Copyright (c) 2008, Google Inc. | 1 // Copyright (c) 2008, Google Inc. |
2 // All rights reserved. | 2 // All rights reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 HINSTANCE current_instance; // Current instance. | 67 HINSTANCE current_instance; // Current instance. |
68 TCHAR title[kMaxLoadString]; // Title bar text. | 68 TCHAR title[kMaxLoadString]; // Title bar text. |
69 TCHAR window_class[kMaxLoadString]; // Main window class name. | 69 TCHAR window_class[kMaxLoadString]; // Main window class name. |
70 | 70 |
71 ATOM MyRegisterClass(HINSTANCE instance); | 71 ATOM MyRegisterClass(HINSTANCE instance); |
72 BOOL InitInstance(HINSTANCE, int); | 72 BOOL InitInstance(HINSTANCE, int); |
73 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); | 73 LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM); |
74 INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); | 74 INT_PTR CALLBACK About(HWND, UINT, WPARAM, LPARAM); |
75 | 75 |
76 static int kCustomInfoCount = 2; | 76 static size_t kCustomInfoCount = 2; |
77 static CustomInfoEntry kCustomInfoEntries[] = { | 77 static CustomInfoEntry kCustomInfoEntries[] = { |
78 CustomInfoEntry(L"prod", L"CrashTestApp"), | 78 CustomInfoEntry(L"prod", L"CrashTestApp"), |
79 CustomInfoEntry(L"ver", L"1.0"), | 79 CustomInfoEntry(L"ver", L"1.0"), |
80 }; | 80 }; |
81 | 81 |
82 static ExceptionHandler* handler = NULL; | 82 static ExceptionHandler* handler = NULL; |
83 static CrashGenerationServer* crash_server = NULL; | 83 static CrashGenerationServer* crash_server = NULL; |
84 | 84 |
85 // Registers the window class. | 85 // Registers the window class. |
86 // | 86 // |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 MSG msg; | 513 MSG msg; |
514 while (GetMessage(&msg, NULL, 0, 0)) { | 514 while (GetMessage(&msg, NULL, 0, 0)) { |
515 if (!TranslateAccelerator(msg.hwnd, accel_table, &msg)) { | 515 if (!TranslateAccelerator(msg.hwnd, accel_table, &msg)) { |
516 TranslateMessage(&msg); | 516 TranslateMessage(&msg); |
517 DispatchMessage(&msg); | 517 DispatchMessage(&msg); |
518 } | 518 } |
519 } | 519 } |
520 | 520 |
521 return static_cast<int>(msg.wParam); | 521 return static_cast<int>(msg.wParam); |
522 } | 522 } |
OLD | NEW |