source: trunk/include/stats.h@ 22145

Last change on this file since 22145 was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

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