Source code of Windows XP (NT5)
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.
|
|
//+---------------------------------------------------------------------------
//
// 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
|