utils.h

来自「再贡献一份基于osip 协议栈的用户代理」· C头文件 代码 · 共 48 行

H
48
字号
/******************************************************>
 * Copyright (c) 2001 Microsoft Corporation. 
 * All rights reserved.
 *
 * Copyright (c) 2005 enum.at
 * All rights reserved.
 *
 * @Abstract: Utils.h
 * ---------- [ Header Definition File]
 * 
 *
 * @Description:
 * -------------
 * Utilities for logging Error Messages in the debugger  
 * or in a Popup message box
 *
 *
 ******************************************************/

#ifndef __RTCOUTGOINGUTILS__H__
#define __RTCOUTGOINGUTILS__H__


#define FREE_BSTR_IF(bstrVal) \
	{ if (NULL != bstrVal) { SysFreeString(bstrVal); bstrVal = NULL ;}  else bstrVal = NULL; }

HRESULT RegistryGet(WCHAR * szValueName, WCHAR * szData);
HRESULT RegistrySet(WCHAR * szValueName, WCHAR * szData);

#ifdef __cplusplus
//
// for C Var length parameters
//
extern "C" {
#endif 

int  DBLOGGER(TCHAR *str, ...) ;
void LOGMSGERROR(TCHAR *str, ...);
void LOGMSG(TCHAR *str, ...);

#ifdef __cplusplus
}
#endif 



#endif

⌨️ 快捷键说明

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