public static extern NtStatus RtlConvertToAutoInheritSecurityObject(
     SafeBuffer ParentDescriptor,
     SafeBuffer CurrentSecurityDescriptor,
     out SafeProcessHeapBuffer NewSecurityDescriptor,
     OptionalGuid ObjectType,
     bool IsDirectoryObject,
     ref GenericMapping GenericMapping);
 public static extern NtStatus NtOpenResourceManager(
     out SafeKernelObjectHandle ResourceManagerHandle,
     ResourceManagerAccessRights DesiredAccess,
     SafeKernelObjectHandle TmHandle,
     OptionalGuid ResourceManagerGuid,
     ObjectAttributes ObjectAttributes
     );
Beispiel #3
0
 public static extern NtStatus NtOpenEnlistment(
     out SafeKernelObjectHandle EnlistmentHandle,
     EnlistmentAccessRights DesiredAccess,
     SafeKernelObjectHandle ResourceManagerHandle,
     OptionalGuid EnlistmentGuid,
     ObjectAttributes ObjectAttributes
     );
Beispiel #4
0
 public static extern NtStatus NtCreateTransaction(out SafeKernelObjectHandle TransactionHandle,
                                                   TransactionAccessRights DesiredAccess, ObjectAttributes ObjectAttributes,
                                                   OptionalGuid Uow, SafeKernelObjectHandle TmHandle,
                                                   TransactionCreateFlags CreateOptions,
                                                   int IsolationLevel,
                                                   TransactionIsolationFlags IsolationFlags,
                                                   LargeInteger Timeout,
                                                   UnicodeString Description);
 public static extern NtStatus NtOpenTransactionManager(
     out SafeKernelObjectHandle TmHandle,
     TransactionManagerAccessRights DesiredAccess,
     ObjectAttributes ObjectAttributes,
     UnicodeString LogFileName,
     OptionalGuid TmIdentity,
     TransactionManagerOpenOptions OpenOptions
     );
 public static extern NtStatus RtlQueryPackageClaims(
     SafeKernelObjectHandle TokenHandle,
     [In, Out] byte[] PackageFullName,
     [In, Out] OptionalLength PackageSize, // Size in bytes.
     [In, Out] byte[] AppId,
     [In, Out] OptionalLength AppIdSize,   // Size in bytes.
     [Out] OptionalGuid DynamicId,
     [Out] PsPkgClaim PkgClaim,
     OptionalInt64 AttributesPresent);
 public static extern NtStatus RtlNewSecurityObjectEx(
     SafeBuffer ParentDescriptor,
     SafeBuffer CreatorDescriptor,
     out SafeProcessHeapBuffer NewDescriptor,
     OptionalGuid ObjectType,
     [MarshalAs(UnmanagedType.U1)] bool IsDirectoryObject,
     SecurityAutoInheritFlags AutoInheritFlags,
     SafeKernelObjectHandle Token,
     ref GenericMapping GenericMapping);
 internal SystemEnvironmentValue(string name, byte[] value, OptionalInt32 attributes, OptionalGuid vendor_guid)
 {
     Name       = name;
     Value      = value;
     Attributes = (SystemEnvironmentValueAttribute)attributes.Value;
     VendorGuid = vendor_guid.Value;
 }
 public static extern NtStatus NtRenameTransactionManager(
     UnicodeString LogFileName,
     OptionalGuid ExistingTransactionManagerGuid
     );
Beispiel #10
0
 public static extern NtStatus NtOpenTransaction(out SafeKernelObjectHandle TransactionHandle, TransactionAccessRights DesiredAccess,
                                                 ObjectAttributes ObjectAttributes, OptionalGuid Uow, SafeKernelObjectHandle TmHandle);