mirror of https://github.com/tongzx/nt5src
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.
50 lines
1011 B
50 lines
1011 B
//+---------------------------------------------------------------------------
|
|
//
|
|
// 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);
|
|
}
|
|
|
|
|