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