windows-nt/Source/XPSP1/NT/shell/ext/hnw/wizard/netutil.h
2020-09-26 16:20:57 +08:00

33 lines
934 B
C

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997 - 2000
//
// File: N E T U T I L . H
//
// Contents:
//
// Notes:
//
// Author:
//
// History: billi 07 03 2001 Added HrFromWin32Error and HrFromLastWin32Error
//
//----------------------------------------------------------------------------
#pragma once
BOOL IsComputerNameValid(LPCTSTR pszName);
BOOL GetWorkgroupName(LPTSTR pszBuffer, int cchBuffer);
BOOL SetWorkgroupName(LPCTSTR pszWorkgroup);
BOOL DoComputerNamesMatch(LPCTSTR pszName1, LPCTSTR pszName2);
void MakeComputerNamePretty(LPCTSTR pszUgly, LPTSTR pszPretty, int cchPretty);
LPTSTR FormatShareNameAlloc(LPCTSTR pszComputerName, LPCTSTR pszShareName);
LPTSTR FormatShareNameAlloc(LPCTSTR pszComputerAndShare);
#define MAX_WORKGROUPNAME_LENGTH MAX_COMPUTERNAME_LENGTH