SharpMiniDump icon indicating copy to clipboard operation
SharpMiniDump copied to clipboard

problem to run sharp minidump

Open Kevin0936 opened this issue 3 years ago • 0 comments

Hi In this blow code "fileHandle" doesn't fill and I face with this error: [x] Error MiniDumpWriteDump Can you help me Thank you this is my email: [email protected]

public static NTSTATUS NtCreateFile10(out IntPtr fileHandle, Int32 desiredAccess, ref OBJECT_ATTRIBUTES objectAttributes, out IO_STATUS_BLOCK ioStatusBlock, ref Int64 allocationSize, UInt32 fileAttributes, System.IO.FileShare shareAccess, UInt32 createDisposition, UInt32 createOptions, IntPtr eaBuffer, UInt32 eaLength) { byte[] syscall = bNtCreateFile10;

        IntPtr memoryAddress = msil.getAdrressWithMSIL(syscall);

        Delegates.NtCreateFile myAssemblyFunction = (Delegates.NtCreateFile)Marshal.GetDelegateForFunctionPointer(memoryAddress, typeof(Delegates.NtCreateFile));

        return (NTSTATUS)myAssemblyFunction(out fileHandle, desiredAccess,ref objectAttributes,out ioStatusBlock,ref allocationSize, fileAttributes, shareAccess, createDisposition, createOptions, eaBuffer, eaLength);
        
    }

Kevin0936 avatar Nov 02 '22 15:11 Kevin0936