windows-nt/Source/XPSP1/NT/net/mmc/remrras/server/ncutil.cpp
2020-09-26 16:20:57 +08:00

51 lines
1,011 B
C++

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997 - 1999
// Copyright (C) Microsoft Corporation, 1997 - 1999
// File: S T E E L H E A D . C P P
//
// Contents: Implementation of Steelhead configuration object.
//
// Notes:
//
// Author: shaunco 15 Jun 1997
//
//----------------------------------------------------------------------------
#include "stdafx.h"
#pragma hdrstop
#include "ncutil.h"
extern DWORD g_dwTraceHandle;
void TraceError(LPCSTR pszString, HRESULT hr)
{
if (!SUCCEEDED(hr))
{
TraceResult(pszString, hr);
}
}
void TraceResult(LPCSTR pszString, HRESULT hr)
{
if (SUCCEEDED(hr))
TracePrintf(g_dwTraceHandle,
_T("%hs succeeded : hr = %08lx"),
pszString, hr);
else
TracePrintf(g_dwTraceHandle,
_T("%hs failed : hr = %08lx"),
pszString, hr);
}
void TraceSz(LPCSTR pszString)
{
TracePrintf(g_dwTraceHandle,
_T("%hs"),
pszString);
}