atldebugapi.h
资源名称:CreatBMP.rar [点击查看]
上传用户:hfwmdy
上传日期:2016-01-14
资源大小:83k
文件大小:5k
源码类别:
GDI/图象编程
开发平台:
Visual C++
- // This is a part of the Active Template Library.
- // Copyright (C) Microsoft Corporation
- // All rights reserved.
- //
- // This source code is only intended as a supplement to the
- // Active Template Library Reference and related
- // electronic documentation provided with the library.
- // See these sources for detailed information regarding the
- // Active Template Library product.
- #ifndef __ATLDEBUGAPI_H__
- #define __ATLDEBUGAPI_H__
- #pragma once
- #ifdef __cplusplus
- #pragma pack(push,_ATL_PACKING)
- namespace ATL
- {
- extern "C" {
- #endif
- #define ATL_TRACE_MAX_NAME_SIZE 64
- typedef enum ATLTRACESTATUS
- {
- ATLTRACESTATUS_INHERIT, ATLTRACESTATUS_ENABLED, ATLTRACESTATUS_DISABLED
- } ATLTRACESTATUS;
- DWORD_PTR __stdcall AtlTraceOpenProcess( DWORD idProcess );
- void __stdcall AtlTraceCloseProcess( DWORD_PTR dwProcess );
- void __stdcall AtlTraceSnapshotProcess( DWORD_PTR dwProcess );
- DWORD_PTR __stdcall AtlTraceRegister(HINSTANCE hInst,
- int (__cdecl *fnCrtDbgReport)(int,const char *,int,const char *,const char *,...));
- BOOL __stdcall AtlTraceUnregister(DWORD_PTR dwModule);
- DWORD_PTR __stdcall AtlTraceRegisterCategoryA(DWORD_PTR dwModule, const CHAR szCategoryName[ATL_TRACE_MAX_NAME_SIZE]);
- DWORD_PTR __stdcall AtlTraceRegisterCategoryU(DWORD_PTR dwModule, const WCHAR szCategoryName[ATL_TRACE_MAX_NAME_SIZE]);
- BOOL __stdcall AtlTraceModifyProcess(DWORD_PTR dwProcess, UINT nLevel, BOOL bEnabled, BOOL bFuncAndCategoryNames, BOOL bFileNameAndLineNo);
- BOOL __stdcall AtlTraceModifyModule(DWORD_PTR dwProcess, DWORD_PTR dwModule, UINT nLevel, ATLTRACESTATUS eStatus);
- BOOL __stdcall AtlTraceModifyCategory(DWORD_PTR dwProcess, DWORD_PTR dwCategory, UINT nLevel, ATLTRACESTATUS eStatus);
- BOOL __stdcall AtlTraceGetProcess(DWORD_PTR dwProcess, UINT *pnLevel, BOOL *pbEnabled, BOOL *pbFuncAndCategoryNames, BOOL *pbFileNameAndLineNo);
- BOOL __stdcall AtlTraceGetModule(DWORD_PTR dwProcess, DWORD_PTR dwModule, UINT *pnLevel, ATLTRACESTATUS *pStatus);
- BOOL __stdcall AtlTraceGetCategory(DWORD_PTR dwProcess, DWORD_PTR dwCategory, UINT *pnLevel, ATLTRACESTATUS *pStatus);
- _ATL_INSECURE_DEPRECATE("AtlTraceGetUpdateEventNameA is unsafe. Instead use AtlTraceGetUpdateEventNameA_s")
- void __stdcall AtlTraceGetUpdateEventNameA(__out_z CHAR *pszEventName);
- _ATL_INSECURE_DEPRECATE("AtlTraceGetUpdateEventNameU is unsafe. Instead use AtlTraceGetUpdateEventNameU_s")
- void __stdcall AtlTraceGetUpdateEventNameU(__out_z WCHAR *pszEventName);
- void __stdcall AtlTraceGetUpdateEventNameA_s(__out_ecount_z(cchEventName) CHAR *pszEventName, __in size_t cchEventName);
- void __stdcall AtlTraceGetUpdateEventNameU_s(__out_ecount_z(cchEventName) WCHAR *pszEventName, __in size_t cchEventName);
- void __cdecl AtlTraceVA(DWORD_PTR dwModule, const char *pszFileName, int nLineNo,
- DWORD_PTR dwCategory, UINT nLevel, const CHAR *pszFormat, va_list ptr);
- void __cdecl AtlTraceVU(DWORD_PTR dwModule,const char *pszFileName, int nLineNo,
- DWORD_PTR dwCategory, UINT nLevel, const WCHAR *pszFormat, va_list ptr);
- BOOL __stdcall AtlTraceLoadSettingsA(const CHAR *pszFileName, DWORD_PTR dwProcess = 0);
- BOOL __stdcall AtlTraceLoadSettingsU(const WCHAR *pszFileName, DWORD_PTR dwProcess = 0);
- BOOL __stdcall AtlTraceSaveSettingsA(const CHAR *pszFileName, DWORD_PTR dwProcess = 0);
- BOOL __stdcall AtlTraceSaveSettingsU(const WCHAR *pszFileName, DWORD_PTR dwProcess = 0);
- typedef struct ATLTRACESETTINGS
- {
- UINT nLevel;
- ATLTRACESTATUS eStatus;
- } ATLTRACESETTINGS;
- typedef struct ATLTRACEPROCESSSETTINGS
- {
- UINT nLevel;
- BOOL bEnabled, bFuncAndCategoryNames, bFileNameAndLineNo;
- } ATLTRACEPROCESSSETTINGS;
- typedef struct ATLTRACEPROCESSINFO
- {
- WCHAR szName[ATL_TRACE_MAX_NAME_SIZE], szPath[MAX_PATH];
- DWORD dwId;
- ATLTRACEPROCESSSETTINGS settings;
- int nModules;
- } ATLTRACEPROCESSINFO;
- typedef struct ATLTRACEMODULEINFO
- {
- WCHAR szName[ATL_TRACE_MAX_NAME_SIZE], szPath[MAX_PATH];
- ATLTRACESETTINGS settings;
- DWORD_PTR dwModule;
- int nCategories;
- } ATLTRACEMODULEINFO;
- typedef struct ATLTRACECATEGORYINFO
- {
- WCHAR szName[ATL_TRACE_MAX_NAME_SIZE];
- ATLTRACESETTINGS settings;
- DWORD_PTR dwCategory;
- } ATLTRACECATEGORYINFO;
- BOOL __stdcall AtlTraceGetProcessInfo(DWORD_PTR dwProcess, ATLTRACEPROCESSINFO* pProcessInfo);
- void __stdcall AtlTraceGetModuleInfo(DWORD_PTR dwProcess, int iModule, ATLTRACEMODULEINFO* pModuleInfo);
- void __stdcall AtlTraceGetCategoryInfo(DWORD_PTR dwProcess, DWORD_PTR dwModule, int iCategory, ATLTRACECATEGORYINFO* pAtlTraceCategoryInfo);
- #ifdef UNICODE
- #define AtlTraceRegisterCategory AtlTraceRegisterCategoryU
- #define AtlTraceGetUpdateEventName AtlTraceGetUpdateEventNameU
- #define AtlTraceGetUpdateEventName_s AtlTraceGetUpdateEventNameU_s
- #define AtlTrace AtlTraceU
- #define AtlTraceV AtlTraceVU
- #define AtlTraceLoadSettings AtlTraceLoadSettingsU
- #define AtlTraceSaveSettings AtlTraceSaveSettingsU
- #else
- #define AtlTraceRegisterCategory AtlTraceRegisterCategoryA
- #define AtlTraceGetUpdateEventName AtlTraceGetUpdateEventNameA
- #define AtlTraceGetUpdateEventName_s AtlTraceGetUpdateEventNameA_s
- #define AtlTrace AtlTraceA
- #define AtlTraceV AtlTraceVA
- #define AtlTraceLoadSettings AtlTraceLoadSettingsA
- #define AtlTraceSaveSettings AtlTraceSaveSettingsA
- #endif
- #ifdef __cplusplus
- };
- }; // namespace ATL
- #pragma pack(pop)
- #endif
- #endif // __ATLDEBUGAPI_H__