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);
public static extern NtStatus NtOpenProcess( out SafeKernelObjectHandle ProcessHandle, ProcessAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes, [In] ClientId ClientId );
public static extern NtStatus NtResumeProcess(SafeKernelObjectHandle ProcessHandle);
public static extern NtStatus NtExtendSection( SafeKernelObjectHandle SectionHandle, [In, Out] LargeInteger SectionSize );
public static extern NtStatus NtRecoverEnlistment( SafeKernelObjectHandle EnlistmentHandle, LargeInteger TmVirtualClock );
public static extern NtStatus NtQuerySection(SafeKernelObjectHandle SectionHandle, SectionInformationClass SectionInformationClass, SafeBuffer SectionInformation, int SectionInformationLength, out int ResultLength);
public static extern NtStatus NtUnmapViewOfSectionEx( SafeKernelObjectHandle ProcessHandle, IntPtr BaseAddress, MemUnmapFlags Flags );
public static extern NtStatus NtOpenSection(out SafeKernelObjectHandle SectionHandle, SectionAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes);
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);
public static extern NtStatus NtCreateSection(out SafeKernelObjectHandle SectionHandle, SectionAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes, [In] LargeInteger SectionSize, MemoryAllocationProtect Protect, SectionAttributes Attributes, SafeHandle FileHandle);
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);
public static extern NtStatus NtSinglePhaseReject( SafeKernelObjectHandle EnlistmentHandle, LargeInteger TmVirtualClock );
public static extern NtStatus NtCreateProcessEx(out SafeKernelObjectHandle ProcessHandle, ProcessAccessRights DesiredAccess, ObjectAttributes ObjectAttributes, SafeHandle InheritFromProcessHandle, ProcessCreateFlags Flags, SafeHandle SectionHandle, SafeHandle DebugPort, SafeHandle ExceptionPort, int Unused);
public static extern NtStatus NtSetInformationEnlistment( SafeKernelObjectHandle EnlistmentHandle, EnlistmentInformationClass EnlistmentInformationClass, SafeBuffer EnlistmentInformation, int EnlistmentInformationLength );
public static extern NtStatus NtSuspendProcess(SafeKernelObjectHandle ProcessHandle);
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) { }
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) { }
internal NtTransactionManager(SafeKernelObjectHandle handle) : base(handle) { }
public static extern NtStatus NtOpenDirectoryObject(out SafeKernelObjectHandle Handle, DirectoryAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes);
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);
public static extern NtStatus NtTerminateProcess(SafeKernelObjectHandle ProcessHandle, NtStatus ExitCode);
internal NtDirectory(SafeKernelObjectHandle handle) : base(handle) { }
public static extern NtStatus NtOpenSymbolicLinkObject( out SafeKernelObjectHandle LinkHandle, SymbolicLinkAccessRights DesiredAccess, ObjectAttributes ObjectAttributes );