logger.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 78 行

H
78
字号
/*++

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.

Copyright (c) 2000 Microsoft Corporation

Module Name:   logger.h

Abstract:

Notes: 

History:

	coscor 7/3/2000 Created.

--*/


//Warning! This pragma is specific to Visual C++!

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef LOGGER_H
#define LOGGER_H

#define DUMP_EVENT_NAME		TEXT("LogDumpEvent")
#define RECORD_EVENT_NAME	TEXT("LogRecordEvent")


#ifdef __cplusplus
extern "C" 
{
#endif 

#ifdef DO_LOG

void DumpLog();		// dumps logged info
//void DumpRecord();
void StartRecording();
void StopRecording();

void InitializeLog();
void Log(TCHAR c, DWORD dw1, DWORD dw2);
void Record(/* [in] */ void *pAudio1,
    /* [in] */ DWORD dwAudioBytes1,
    /* [in] */ void *pAudio2,
    /* [in] */ DWORD dwAudioBytes2);


#else

#define DumpLog()	0
//#define DumpRecord() 0
#define StartRecording() 0
#define StopRecording() 0

#define InitializeLog() 0
#define Log(c, dw1, dw2) 0
#define Record(a, b, c, d) 0

#endif	// DO_LOG

#ifdef __cplusplus
}
#endif 


#define LOG(x, y, z)	Log(TEXT(x), y, z)

#endif	// LOGGER_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?