Exemple #1
0
        /// <summary>
        /// Create a debug object
        /// </summary>
        /// <param name="desired_access">Desired access for the debug object</param>
        /// <param name="object_attributes">Object attributes for debug object</param>
        /// <returns>The debug object</returns>
        public static NtDebug Create(ObjectAttributes object_attributes, DebugAccessRights desired_access)
        {
            SafeKernelObjectHandle handle;

            NtSystemCalls.NtCreateDebugObject(out handle, desired_access, object_attributes, 0).ToNtException();
            return(new NtDebug(handle));
        }
Exemple #2
0
 protected override sealed NtResult <NtDebug> OpenInternal(ObjectAttributes obj_attributes,
                                                           DebugAccessRights desired_access, bool throw_on_error)
 {
     return(NtDebug.Open(obj_attributes, desired_access, throw_on_error));
 }
 public static extern NtStatus NtCreateDebugObject(out SafeKernelObjectHandle DebugObjectHandle,
                                                   DebugAccessRights DesiredAccess, [In] ObjectAttributes ObjectAttributes, DebugObjectFlags Flags);