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.
93 lines
1.6 KiB
93 lines
1.6 KiB
/*++
|
|
|
|
Copyright (c) 1991-1993 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Names.h
|
|
|
|
Abstract:
|
|
|
|
This module contains routines for dealing with network-related names.
|
|
|
|
Author:
|
|
|
|
John Rogers (JohnRo) 15-Feb-1991
|
|
|
|
Revision History:
|
|
|
|
19-Aug-1991 JohnRo
|
|
Allow UNICODE use.
|
|
Got rid of tabs in source file.
|
|
20-Oct-1992 JohnRo
|
|
RAID 9020: setup: PortUas fails ("prompt on conflicts" version).
|
|
26-Jan-1993 JohnRo
|
|
RAID 8683: PortUAS should set primary group from Mac parms.
|
|
15-Apr-1993 JohnRo
|
|
RAID 6167: avoid access violation or assert with WFW print server.
|
|
|
|
--*/
|
|
|
|
#ifndef _NAMES_
|
|
#define _NAMES_
|
|
|
|
|
|
#include <windef.h> // BOOL, IN, LPTSTR, OUT, etc.
|
|
|
|
|
|
NET_API_STATUS
|
|
NetpGetPrimaryGroupFromMacField(
|
|
IN LPCTSTR MacPrimaryField, // name in "mGroup:" format.
|
|
OUT LPCTSTR * GroupNamePtr // alloc and set ptr.
|
|
);
|
|
|
|
// This checks for "server" format (not "\\server").
|
|
BOOL
|
|
NetpIsComputerNameValid(
|
|
IN LPTSTR ComputerName
|
|
);
|
|
|
|
BOOL
|
|
NetpIsDomainNameValid(
|
|
IN LPWSTR DomainName
|
|
);
|
|
|
|
BOOL
|
|
NetpIsShareNameValid(
|
|
IN LPTSTR ShareName
|
|
);
|
|
|
|
BOOL
|
|
NetpIsGroupNameValid(
|
|
IN LPTSTR GroupName
|
|
);
|
|
|
|
// This checks for "mGroup:" format.
|
|
BOOL
|
|
NetpIsMacPrimaryGroupFieldValid(
|
|
IN LPCTSTR MacPrimaryField
|
|
);
|
|
|
|
BOOL
|
|
NetpIsPrintQueueNameValid(
|
|
IN LPCTSTR QueueName
|
|
);
|
|
|
|
// This checks for "\\server\share" format.
|
|
BOOL
|
|
NetpIsRemoteNameValid(
|
|
IN LPTSTR RemoteName
|
|
);
|
|
|
|
// This checks for "\\server" format.
|
|
BOOL
|
|
NetpIsUncComputerNameValid(
|
|
IN LPTSTR ComputerName
|
|
);
|
|
|
|
BOOL
|
|
NetpIsUserNameValid(
|
|
IN LPTSTR UserName
|
|
);
|
|
|
|
#endif // ndef _NAMES_
|