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