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.
|
|
/*
* TSUtil.h * * General purpose utilities library. The entry points listed in this header * conform to the NT API style. */
#ifndef __TERMSRV_INC_TSUTILNT_H__
#define __TERMSRV_INC_TSUTILNT_H__
#ifdef __cplusplus
extern "C" { #endif
/*
* ACL Utilities */
#ifdef _NTSEAPI_
NTSTATUS NTAPI NtConvertAbsoluteToSelfRelative( OUT PSECURITY_DESCRIPTOR *ppSelfRelativeSd, IN PSECURITY_DESCRIPTOR pAbsoluteSd, IN PULONG pcbSelfRelativeSd OPTIONAL );
NTSTATUS NTAPI NtConvertSelfRelativeToAbsolute( OUT PSECURITY_DESCRIPTOR *ppAbsoluteSd, IN PSECURITY_DESCRIPTOR pSelfRelativeSd );
NTSTATUS NTAPI NtDestroySecurityDescriptor( IN OUT PSECURITY_DESCRIPTOR *ppSd );
NTSTATUS NTAPI NtIsSecurityDescriptorAbsolute( IN PSECURITY_DESCRIPTOR pSd, OUT PBOOLEAN pfAbsolute );
#endif
/*
* String Utilities */
NTSTATUS NTAPI NtAllocateAndCopyStringA( PSTR *ppDestination, PCSTR pString );
NTSTATUS NTAPI NtAllocateAndCopyStringW( PWSTR *ppDestination, PCWSTR pString );
NTSTATUS NTAPI NtConvertAnsiToUnicode( PWSTR *ppUnicodeString, PCSTR pAnsiString );
NTSTATUS NTAPI NtConvertUnicodeToAnsi( PSTR *ppAnsiString, PCWSTR pUnicodeString );
/*
* User Utilities */
#ifdef _NTSEAPI_
NTSTATUS NTAPI NtCreateAdminSid( OUT PSID *ppAdminSid );
NTSTATUS NTAPI NtCreateSystemSid( OUT PSID *ppSystemSid );
#endif
/*
* LSA Utilities */
#ifdef _NTLSA_
VOID NTAPI InitLsaString( IN PLSA_UNICODE_STRING pLsaString, IN PCWSTR pString );
#endif
/*
* Miscellaneous Utilities */
#ifndef __TERMSRV_INC_TSUTIL_H__
#define GetCurrentConsoleId() (USER_SHARED_DATA->ActiveConsoleId)
#define GetCurrentLogonId() (NtCurrentPeb()->LogonId)
#endif
#ifdef __cplusplus
} #endif
#endif // __TERMSRV_INC_TSUTILNT_H__
|