windows-nt/Source/XPSP1/NT/net/config/upgrade/netupgrd/nuutils.h
2020-09-26 16:20:57 +08:00

49 lines
2 KiB
C

#pragma once
HRESULT HrGetNetupgrdDir(OUT tstring* pstrNetupgrdDir);
HRESULT HrCopyFiles(IN PCWSTR pszSrcDir, IN PCWSTR pszDstDir);
HRESULT HrDeleteDirectory(IN PCWSTR pszDir,
IN BOOL fContinueOnError);
HRESULT HrSetupGetLineText(PINFCONTEXT Context,
HINF hinf,
PCWSTR pszSection,
PCWSTR pszKey,
tstring* pstrReturnedText);
HRESULT HrRegOpenServiceSubKey(IN PCWSTR pszServiceName,
IN PCWSTR pszSubKeyName,
REGSAM samDesired,
OUT HKEY* phKey);
HRESULT HrGetPreNT5InfIdAndDesc(IN HKEY hkeyCurrentVersion,
OUT tstring* pstrInfId,
OUT tstring* pstrDescription,
OUT tstring* pstrServiceName);
void GetUnsupportedMessage(IN PCWSTR pszComponentType,
IN PCWSTR pszPreNT5InfId,
IN PCWSTR pszDescription,
OUT tstring* pstrMsg);
void GetUnsupportedMessageBool(IN BOOL fIsHardwareComponent,
IN PCWSTR pszPreNT5InfId,
IN PCWSTR pszDescription,
OUT tstring* pstrMsg);
void ConvertMultiSzToDelimitedList(IN PCWSTR mszList,
IN WCHAR chDelimeter,
OUT tstring* pstrList);
#ifdef ENABLETRACE
void TraceStringList(IN TraceTagId ttid,
IN PCWSTR pszMsgPrefix,
IN TStringList& sl);
void TraceMultiSz(IN TraceTagId ttid,
IN PCWSTR pszMsgPrefix,
IN PCWSTR msz);
#else
#define TraceStringList(ttid,szMsgPrefix,sl) (void) 0
#define TraceMultiSz(ttid,szMsgPrefix,msz) (void) 0
#endif
HRESULT HrGetWindowsDir(OUT tstring* pstrWinDir);
HRESULT HrDirectoryExists(IN PCWSTR pszDir);
BOOL FIsPreNT5NetworkingInstalled();