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.
83 lines
2.2 KiB
83 lines
2.2 KiB
/*++
|
|
|
|
Copyright (c) 1998 - 1998 Microsoft Corporation
|
|
|
|
Module Name: utils.h
|
|
Abstract: This Module implements the utility routines for dsacls
|
|
Author: hitesh raigandhi (hiteshr )
|
|
Environment:User Mode
|
|
Revision History:
|
|
|
|
--*/
|
|
#ifndef _DSACLS_UTIL_H
|
|
#define _DSACLS_UTIL_H
|
|
#include "accctrl.h"
|
|
|
|
DWORD GetAccountNameFromSid( LPWSTR pszServerName,
|
|
PSID pSid,
|
|
LPWSTR *pszName );
|
|
DWORD GetSidFromAccountName( LPWSTR pszServerName,
|
|
PSID *ppSid,
|
|
LPWSTR pszName );
|
|
|
|
|
|
DWORD GetGlobalNamingContexts( LPWSTR szObjectPath,
|
|
LPWSTR * pszSchemaNamingContext ,
|
|
LPWSTR * pszConfigurationNamingContext );
|
|
|
|
|
|
BOOL FormatStringGUID( LPWSTR lpszBuf,
|
|
UINT nBufSize,
|
|
const GUID* pGuid);
|
|
|
|
PSID GetAceSid(PACE_HEADER pAce);
|
|
|
|
|
|
|
|
BOOL GuidFromString( GUID* pGuid,
|
|
LPCWSTR lpszGuidString);
|
|
|
|
DWORD GetServerName( IN LPWSTR pszObjectName,
|
|
OUT LPWSTR *pszServerName );
|
|
|
|
DWORD LoadMessage( IN DWORD MessageId,
|
|
LPWSTR *ppszLoadString,
|
|
... );
|
|
DWORD BuildLdapPath( LPWSTR * ppszLdapPath,
|
|
LPWSTR pszServerName,
|
|
LPWSTR pszPath );
|
|
|
|
|
|
void StringWithNSpace( UINT n,
|
|
LPWSTR szSpace );
|
|
|
|
|
|
VOID DisplayString( UINT nIdent,
|
|
LPWSTR pszDisplay );
|
|
|
|
|
|
VOID DisplayStringWithNewLine( UINT nIdent,
|
|
LPWSTR pszDisplay );
|
|
VOID DisplayNewLine();
|
|
|
|
|
|
DWORD DisplayMessageEx( IN DWORD Indent,
|
|
IN DWORD MessageId,
|
|
... );
|
|
|
|
VOID DisplayMessage( IN DWORD Indent,
|
|
IN DWORD MessageId,
|
|
... );
|
|
|
|
VOID DisplayErrorMessage( IN DWORD Error );
|
|
|
|
DWORD ConvertStringAToStringW ( IN PSTR AString,
|
|
OUT PWSTR *WString );
|
|
|
|
DWORD CopyUnicodeString( LPWSTR * strDst,
|
|
LPWSTR strSrc );
|
|
DWORD GetProtection( PSECURITY_DESCRIPTOR pSD,
|
|
SECURITY_INFORMATION * pSI );
|
|
|
|
|
|
#endif
|