Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

119 lines
2.1 KiB

//////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999-2002 Microsoft Corporation
//
// Module Name:
// Log.h
//
// Description:
// Log file functions.
//
// Maintained By:
// David Potter (DavidP) 27-MAR-2002
//
//////////////////////////////////////////////////////////////////////////////
#pragma once
//
// Log entry types for displaying text at the beginning of each line.
//
#define LOGTYPE_NONE ( (DWORD) -1 )
#define LOGTYPE_DEBUG ( (DWORD) -2 )
#define LOGTYPE_INFO ( (DWORD) -3 )
#define LOGTYPE_WARNING ( (DWORD) -4 )
#define LOGTYPE_ERROR ( (DWORD) -5 )
HRESULT
HrLogOpen( void );
HRESULT
HrLogClose( void );
HRESULT
HrLogRelease( void );
HRESULT
HrGetLogFilePath(
const WCHAR * pszPathIn
, WCHAR * pszFilePathOut
, size_t * pcchFilePathInout
, HINSTANCE hInstanceIn
);
LPCWSTR
PszLogFilePath( void );
void
__cdecl
LogMsg(
DWORD nLogEntryTypeIn
, LPCSTR paszFormatIn
, ...
);
void
__cdecl
LogMsg(
DWORD nLogEntryTypeIn
, LPCWSTR pszFormatIn
, ...
);
void
__cdecl
LogMsg(
LPCSTR paszFormatIn,
...
);
void
__cdecl
LogMsg(
LPCWSTR pszFormatIn,
...
);
void
__cdecl
LogMsgNoNewline(
DWORD nLogEntryTypeIn
, LPCSTR paszFormatIn
, ...
);
void
__cdecl
LogMsgNoNewline(
DWORD nLogEntryTypeIn
, LPCWSTR pszFormatIn
, ...
);
void
__cdecl
LogMsgNoNewline(
LPCSTR paszFormatIn,
...
);
void
__cdecl
LogMsgNoNewline(
LPCWSTR pszFormatIn,
...
);
void
LogStatusReport(
SYSTEMTIME * pstTimeIn
, const WCHAR * pcszNodeNameIn
, CLSID clsidTaskMajorIn
, CLSID clsidTaskMinorIn
, ULONG ulMinIn
, ULONG ulMaxIn
, ULONG ulCurrentIn
, HRESULT hrStatusIn
, const WCHAR * pcszDescriptionIn
, const WCHAR * pcszUrlIn
);