~quf/no-cutscene-kiseki

b6dce0db241515a25ae029ec76d4f45fbd098ccd — Lukas Himbert 1 year, 7 months ago 9de49cf
remove unused function
1 files changed, 0 insertions(+), 4 deletions(-)

M src/win.rs
M src/win.rs => src/win.rs +0 -4
@@ 26,10 26,6 @@ pub unsafe fn virtual_protect_ex(
    }
}

pub unsafe fn open_process(rights: windows::Win32::System::Threading::PROCESS_ACCESS_RIGHTS, inherit_handle: bool, process: u32) -> Result<windows::Win32::Foundation::HANDLE, windows::core::Error> {
    windows::Win32::System::Threading::OpenProcess(rights, inherit_handle, process)
}

pub unsafe fn read_process_memory(handle: windows::Win32::Foundation::HANDLE, source: *const core::ffi::c_void, target: &mut [u8]) -> std::io::Result<usize> {
    let mut number_of_bytes_read = 0;
    let ret = windows::Win32::System::Diagnostics::Debug::ReadProcessMemory(