Esempio n. 1
0
 public static extern NtStatus NtSetInformationSymbolicLink(
     SafeKernelObjectHandle LinkHandle,
     SymbolicLinkInformationClass LinkInformationClass,
     SafeBuffer LinkInformation,
     int LinkInformationLength);
 public static extern NtStatus NtQueryDirectoryObject(SafeKernelObjectHandle DirectoryHandle,
                                                      SafeBuffer Buffer, int Length, bool ReturnSingleEntry, bool RestartScan, ref int Context, out int ReturnLength);
 public static extern NtStatus NtDeletePrivateNamespace(
     [In] SafeKernelObjectHandle NamespaceHandle
     );
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="object_id">An object ID.</param>
 /// <param name="attributes">The object attribute flags.</param>
 /// <param name="root">An optional root handle, can be SafeKernelObjectHandle.Null. Will duplicate the handle.</param>
 /// <param name="sqos">An optional security quality of service.</param>
 /// <param name="security_descriptor">An optional security descriptor.</param>
 public ObjectAttributes(long object_id, AttributeFlags attributes, SafeKernelObjectHandle root,
                         SecurityQualityOfService sqos, SecurityDescriptor security_descriptor)
     : this(BitConverter.GetBytes(object_id),
            attributes, root, sqos, security_descriptor)
 {
 }
 public static extern NtStatus NtCreateDirectoryObjectEx(out SafeKernelObjectHandle Handle,
                                                         DirectoryAccessRights DesiredAccess, ObjectAttributes ObjectAttributes, SafeKernelObjectHandle ShadowDirectory, DirectoryCreateFlags Flags);
Esempio n. 6
0
 public static extern NtStatus NtOpenProcess(
     out SafeKernelObjectHandle ProcessHandle,
     ProcessAccessRights DesiredAccess,
     [In] ObjectAttributes ObjectAttributes,
     [In] ClientId ClientId
     );
Esempio n. 7
0
 public static extern NtStatus NtResumeProcess(SafeKernelObjectHandle ProcessHandle);
Esempio n. 8
0
 public static extern NtStatus NtExtendSection(
     SafeKernelObjectHandle SectionHandle,
     [In, Out] LargeInteger SectionSize
     );
Esempio n. 9
0
 public static extern NtStatus NtRecoverEnlistment(
     SafeKernelObjectHandle EnlistmentHandle,
     LargeInteger TmVirtualClock
     );
Esempio n. 10
0
 public static extern NtStatus NtQuerySection(SafeKernelObjectHandle SectionHandle,
                                              SectionInformationClass SectionInformationClass,
                                              SafeBuffer SectionInformation,
                                              int SectionInformationLength,
                                              out int ResultLength);
Esempio n. 11
0
 public static extern NtStatus NtUnmapViewOfSectionEx(
     SafeKernelObjectHandle ProcessHandle,
     IntPtr BaseAddress,
     MemUnmapFlags Flags
     );
Esempio n. 12
0
 public static extern NtStatus NtOpenSection(out SafeKernelObjectHandle SectionHandle,
                                             SectionAccessRights DesiredAccess,
                                             [In] ObjectAttributes ObjectAttributes);
Esempio n. 13
0
 public static extern NtStatus NtCreateSectionEx(out SafeKernelObjectHandle SectionHandle,
                                                 SectionAccessRights DesiredAccess,
                                                 [In] ObjectAttributes ObjectAttributes, [In] LargeInteger SectionSize,
                                                 MemoryAllocationProtect Protect, SectionAttributes Attributes,
                                                 SafeHandle FileHandle,
                                                 MemSectionExtendedParameter[] ExtendedParameters, int ExtendedParameterCount);
Esempio n. 14
0
 public static extern NtStatus NtCreateSection(out SafeKernelObjectHandle SectionHandle,
                                               SectionAccessRights DesiredAccess,
                                               [In] ObjectAttributes ObjectAttributes, [In] LargeInteger SectionSize,
                                               MemoryAllocationProtect Protect, SectionAttributes Attributes,
                                               SafeHandle FileHandle);
Esempio n. 15
0
 public static extern NtStatus NtCreateProcess(out SafeKernelObjectHandle ProcessHandle, ProcessAccessRights DesiredAccess,
                                               ObjectAttributes ObjectAttributes, IntPtr InheritFromProcessHandle, [MarshalAs(UnmanagedType.U1)] bool InheritHandles,
                                               IntPtr SectionHandle, IntPtr DebugPort, IntPtr ExceptionPort);
Esempio n. 16
0
 public static extern NtStatus NtSinglePhaseReject(
     SafeKernelObjectHandle EnlistmentHandle,
     LargeInteger TmVirtualClock
     );
Esempio n. 17
0
 public static extern NtStatus NtCreateProcessEx(out SafeKernelObjectHandle ProcessHandle, ProcessAccessRights DesiredAccess,
                                                 ObjectAttributes ObjectAttributes, SafeHandle InheritFromProcessHandle, ProcessCreateFlags Flags, SafeHandle SectionHandle,
                                                 SafeHandle DebugPort, SafeHandle ExceptionPort, int Unused);
Esempio n. 18
0
 public static extern NtStatus NtSetInformationEnlistment(
     SafeKernelObjectHandle EnlistmentHandle,
     EnlistmentInformationClass EnlistmentInformationClass,
     SafeBuffer EnlistmentInformation,
     int EnlistmentInformationLength
     );
Esempio n. 19
0
 public static extern NtStatus NtSuspendProcess(SafeKernelObjectHandle ProcessHandle);
Esempio n. 20
0
 internal NtEnlistment(SafeKernelObjectHandle handle) : base(handle)
 {
 }
 private ObjectAttributes(byte[] object_name, AttributeFlags attributes, SafeKernelObjectHandle root,
                          SecurityQualityOfService sqos, SecurityDescriptor security_descriptor)
     : this(new UnicodeStringBytesSafeBuffer(object_name), attributes, root, sqos, security_descriptor)
 {
 }
Esempio n. 22
0
 public static extern NtStatus NtCommitComplete(
     SafeKernelObjectHandle EnlistmentHandle,
     LargeInteger TmVirtualClock
     );
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="object_name">The object name, can be null.</param>
 /// <param name="attributes">The object attribute flags.</param>
 /// <param name="root">An optional root handle, can be SafeKernelObjectHandle.Null. Will duplicate the handle.</param>
 /// <param name="sqos">An optional security quality of service.</param>
 /// <param name="security_descriptor">An optional security descriptor.</param>
 public ObjectAttributes(string object_name, AttributeFlags attributes, SafeKernelObjectHandle root,
                         SecurityQualityOfService sqos, SecurityDescriptor security_descriptor)
     : this(object_name != null ? new UnicodeString(object_name).ToBuffer() : SafeHGlobalBuffer.Null,
            attributes, root, sqos, security_descriptor)
 {
 }
Esempio n. 24
0
 internal NtTransactionManager(SafeKernelObjectHandle handle)
     : base(handle)
 {
 }
 public static extern NtStatus NtOpenDirectoryObject(out SafeKernelObjectHandle Handle, DirectoryAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes);
Esempio n. 26
0
 public static extern NtStatus NtSetInformationProcess(
     SafeKernelObjectHandle ProcessHandle,
     ProcessInformationClass ProcessInformationClass,
     SafeBuffer ProcessInformation,
     int ProcessInformationLength);
 public static extern NtStatus NtOpenPrivateNamespace(
     out SafeKernelObjectHandle NamespaceHandle,
     DirectoryAccessRights DesiredAccess,
     [In] ObjectAttributes ObjectAttributes,
     IntPtr BoundaryDescriptor);
Esempio n. 28
0
 public static extern NtStatus NtTerminateProcess(SafeKernelObjectHandle ProcessHandle, NtStatus ExitCode);
 internal NtDirectory(SafeKernelObjectHandle handle) : base(handle)
 {
 }
Esempio n. 30
0
 public static extern NtStatus NtOpenSymbolicLinkObject(
     out SafeKernelObjectHandle LinkHandle,
     SymbolicLinkAccessRights DesiredAccess,
     ObjectAttributes ObjectAttributes
     );