Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem to run sharp minidump #2

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Kevin0936
Copy link

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);
        
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants