|
|
1.1 root 1: /*****************************************************************************
2: *
3: * Perfmon.h - This is the main include file. It contains all major data
4: * structures and general defines.
5: *
6: * Microsoft Confidential
7: * Copyright (c) 1992-1993 Microsoft Corporation
8: *
9: * Author: Mike Moskowicz
10: *
11: * [1-May-1992]
12: *
13: ****************************************************************************/
14:
15:
16: #include <limits.h>
17: #include <windows.h>
18: #include <commdlg.h>
19: #include <shellapi.h>
20: #include <stdlib.h>
21: #include <string.h>
22: #include <winperf.h>
23: #include <largeint.h>
24:
25: #include "perfmrc.h"
26: #include "strids.h"
27: #include "menuids.h"
28: #include "dlgids.h"
29:
30: #include "sizes.h"
31: #include "typedefs.h"
32: #include "winhelpr.h"
33:
34:
35: // VOID ErrorExit(LPTSTR pszError,HWND hwnd) ;
36:
37: //extern BOOL PrintDlg(LPPRINTDLG);
38:
39:
40: // extern VOID ErrorExit(LPTSTR,HWND);
41: extern VOID LoadLineGraphSettings(PGRAPHSTRUCT);
42: extern VOID LoadRefreshSettings(PGRAPHSTRUCT);
43: extern VOID SetGraphTimer(PGRAPHSTRUCT lgraph) ;
44: //extern BOOL PrintDlg(LPPRINTDLG);
45: extern BOOL QueryTitleEntry(HKEY,DWORD,DWORD,DWORD,LPTSTR);
46: extern VOID ResetGraphTimer(PGRAPHSTRUCT lgraph);
47:
48:
49: //==========================================================================//
50: // Constants //
51: //==========================================================================//
52:
53: typedef LONG NTSTATUS;
54:
55: #define VERSION_NUMBER 1
56: #define SAVED_LOG 4
57: #define SAVED_ALERT 2
58: #define SAVED_GRAPH 1
59: #define SAVED_WORKSPACE (SAVED_GRAPH | SAVED_ALERT | SAVED_LOG)
60: #define FNAMLEN 128
61:
62:
63: #define szScalesFontFace TEXT("Helv")
64: #define iScalesFontHeight 8
65: #define szScalesPrinterFontFace TEXT("Helvetica")
66: #define iScalesPrinterFontHeight 12
67: #define iTitlePrinterFontHeight 18
68:
69:
70: #define crLightGray RGB (0xC0, 0xC0, 0xC0)
71: #define crDarkGray RGB (0x40, 0x40, 0x40)
72: #define crGray RGB (0x80, 0x80, 0x80)
73: #define crRed RGB (0xFF, 0x00, 0x00)
74: #define crGreen RGB (0x00, 0xFF, 0x00)
75: #define crBlue RGB (0x00, 0x00, 0xFF)
76: #define crBlack RGB (0x00, 0x00, 0x00)
77: #define crWhite RGB (0xFF, 0xFF, 0xFF)
78:
79:
80: #define LogTimerID 100
81: #define AlertTimerID 200
82: #define ChartTimerID 300
83: #define ReportTimerID 400
84:
85:
86: #define ChartTool IDM_VIEWCHART
87: #define AlertTool IDM_VIEWALERT
88: #define LogTool IDM_VIEWLOG
89: #define ReportTool IDM_VIEWREPORT
90: #define AddTool IDM_TOOLBARADD
91: #define EditTool IDM_TOOLBARMODIFY
92: #define DeleteTool IDM_TOOLBARDELETE
93: #define RefreshTool IDM_TOOLBARREFRESH
94: #define BookmarkTool IDM_OPTIONSBOOKMARK
95: #define OptionsTool IDM_TOOLBAROPTIONS
96:
97:
98: #define szComputerPrefix TEXT("\\\\") // two backslashes
99:
100:
101: #define WIDESTYLES FALSE // Don't allow wide styled lines
102:
103:
104: //
105: // Determine if an argument is present by testing the value of the pointer
106: // to the argument value.
107: //
108:
109: #define ARGUMENT_PRESENT(ArgumentPointer) (\
110: (CHAR *)(ArgumentPointer) != (CHAR *)(NULL) )
111:
112: //==========================================================================//
113: // Global Data //
114: //==========================================================================//
115:
116:
117: #include "globals.h"
118:
119:
120: //==========================================================================//
121: // Exported Functions //
122: //==========================================================================//
123:
124:
125: LRESULT APIENTRY MainWndProc (HWND hwnd,
126: UINT message,
127: DWORD wParam,
128: LONG lParam) ;
129:
130:
131: void SizePerfmonComponents (void) ;
132:
133: #ifdef UNICODE
134: #define TSPRINTF swprintf
135: #else
136: #define TSPRINTF sprintf
137: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.