source: trunk/include/stats.h@ 21393

Last change on this file since 21393 was 21301, checked in by ydario, 16 years ago

Header updates.

File size: 4.3 KB
Line 
1#ifndef _STATISTICS_H__
2#define _STATISTICS_H__
3
4#include <_ras.h>
5
6//Get memory statistics from odincrt
7void _LNK_CONV getcrtstat(unsigned long *pnrcalls_malloc,
8 unsigned long *pnrcalls_free,
9 unsigned long *ptotalmemalloc);
10
11#ifdef OS2_INCLUDED
12#define LOGPEN void
13#define LOGFONTA void
14#define LPLOGBRUSH void *
15#define LOGBRUSH void
16#define DEVMODEA void
17#define BITMAP void
18#define BITMAPINFO void
19#define BITMAPINFOHEADER void
20#endif
21
22#if defined(DEBUG) || defined(RAS)
23void STATS_GetDCEx(HWND hwnd, HDC hdc, HRGN hrgn, ULONG flags);
24void STATS_ReleaseDC(HWND hwnd, HDC hdc);
25void STATS_InitializeGDI32 (void);
26void STATS_UninitializeGDI32(void);
27void STATS_DumpStatsGDI32();
28void STATS_DumpStatsUSER32();
29void STATS_InitializeUSER32 (void);
30void STATS_UninitializeUSER32(void);
31void STATS_CreateFontIndirect(HFONT hFont, LOGFONTA* lplf);
32void STATS_CreateCompatibleDC(HDC hdc, HDC newHdc);
33void STATS_DeleteDC(HDC hdc);
34void STATS_CreatePatternBrush(HBRUSH hBrush, HBITMAP hBitmap);
35void STATS_CreateDIBPatternBrushPt(HBRUSH hBrush, LPCVOID buffer, DWORD usage);
36void STATS_CreatePenIndirect(HPEN hPen, const LOGPEN *lplgpn);
37void STATS_CreatePen(HPEN hPen, int fnPenStyle, int nWidth, COLORREF crColor);
38void STATS_ExtCreatePen(HPEN hPen, DWORD dwPenStyle, DWORD dwWidth, const LOGBRUSH *lplb,
39 DWORD dwStyleCount, const DWORD *lpStyle);
40void STATS_CreateBrushIndirect(HBRUSH hBrush, LPLOGBRUSH pLogBrush);
41void STATS_CreateHatchBrush(HBRUSH hBrush, int fnStyle, COLORREF clrref);
42void STATS_CreateSolidBrush(HBRUSH hBrush, COLORREF color);
43void STATS_CreateICA(HDC hdc, LPCSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszOutput,
44 const DEVMODEA *lpdvmInit);
45void STATS_CreateDCA(HDC hdc, LPCSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszOutput,
46 const DEVMODEA *lpdvmInit);
47
48void STATS_CreatePolyPolygonRgn(HRGN hRgn, const POINT *lppt, const int *pPolyCount, int nCount, int fnPolyFillMode);
49void STATS_CreateRectRgn(HRGN hRgn, int left, int top, int right, int bottom);
50void STATS_CreateRoundRectRgn(HRGN hRgn, int left, int top, int right, int bottom, int nWidthEllipse, int nHeightEllipse);
51void STATS_ExtCreateRegion(HRGN hRgn, PVOID pXform, DWORD count, const RGNDATA * pData);
52void STATS_CreateEllipticRgn(HRGN hRgn, int left, int top, int right, int bottom);
53void STATS_CreatePolygonRgn(HRGN hRgn, const POINT * lppt, int cPoints, int fnPolyFillMode);
54void STATS_DeleteObject(HANDLE hObj, DWORD objtype);
55
56void STATS_CreateDIBitmap(HBITMAP hBitmap,HDC hdc, const BITMAPINFOHEADER *lpbmih,
57 DWORD fdwInit, const void *lpbInit,
58 const BITMAPINFO *lpbmi, UINT fuUsage);
59void STATS_CreateCompatibleBitmap(HBITMAP hBitmap,HDC hdc, int nWidth, int nHeight);
60void STATS_CreateBitmap(HBITMAP hBitmap,int nWidth, int nHeight, UINT cPlanes,
61 UINT cBitsPerPel, const void *lpvBits);
62void STATS_CreateDIBSection(HBITMAP hBitmap,HDC hdc, BITMAPINFO *pbmi, UINT iUsage,
63 VOID **ppvBits, HANDLE hSection, DWORD dwOffset);
64void STATS_CreateBitmapIndirect(HBITMAP hBitmap, const BITMAP *pBitmap);
65
66#else
67#define STATS_GetDCEx(a, b, c, d)
68#define STATS_ReleaseDC(a,b)
69#define STATS_InitializeGDI32()
70#define STATS_UninitializeGDI32()
71#define STATS_DumpStatsGDI32()
72#define STATS_DumpStatsUSER32()
73#define STATS_CreateFontIndirect(a,b)
74#define STATS_CreateCompatibleDC(a,b)
75#define STATS_DeleteDC(a)
76#define STATS_CreatePatternBrush(a,b)
77#define STATS_CreateDIBPatternBrushPt(a,b,c)
78#define STATS_CreatePenIndirect(a,b)
79#define STATS_CreatePen(a,b,c,d)
80#define STATS_CreateBrushIndirect(a,b)
81#define STATS_CreateHatchBrush(a,b,c)
82#define STATS_CreateSolidBrush(a,b)
83#define STATS_CreateDCA(a,b,c,d,e)
84#define STATS_CreateICA(a,b,c,d,e)
85#define STATS_ExtCreatePen(a,b,c,d,e,f)
86#define STATS_CreatePolyPolygonRgn(a,b,c,d,e)
87#define STATS_CreateRectRgn(a,b,c,d,e)
88#define STATS_CreateRoundRectRgn(a,b,c,d,e,f,g)
89#define STATS_ExtCreateRegion(a,b,c,d)
90#define STATS_CreateEllipticRgn(a,b,c,d,e)
91#define STATS_CreatePolygonRgn(a,b,c,d)
92#define STATS_DeleteObject(a,b)
93#define STATS_CreateDIBitmap(a,b,c,d,e,f,g)
94#define STATS_CreateCompatibleBitmap(a,b,c,d)
95#define STATS_CreateBitmap(a,b,c,d,e,f)
96#define STATS_CreateDIBSection(a,b,c,d,e,f,g)
97#define STATS_CreateBitmapIndirect(a,b)
98
99#endif
100
101#endif
Note: See TracBrowser for help on using the repository browser.