Skip to content

Commit

Permalink
remove few unused pub fn windows ffi (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
klensy authored Dec 3, 2023
1 parent b760f44 commit 7b7c103
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,23 +403,8 @@ ffi! {
pub fn RtlCaptureContext(ContextRecord: PCONTEXT) -> ();
pub fn LoadLibraryA(a: *const i8) -> HMODULE;
pub fn GetProcAddress(h: HMODULE, name: *const i8) -> FARPROC;
pub fn GetModuleHandleA(name: *const i8) -> HMODULE;
pub fn OpenProcess(
dwDesiredAccess: DWORD,
bInheitHandle: BOOL,
dwProcessId: DWORD,
) -> HANDLE;
pub fn GetCurrentProcessId() -> DWORD;
pub fn CloseHandle(h: HANDLE) -> BOOL;
pub fn CreateFileA(
lpFileName: LPCSTR,
dwDesiredAccess: DWORD,
dwShareMode: DWORD,
lpSecurityAttributes: LPSECURITY_ATTRIBUTES,
dwCreationDisposition: DWORD,
dwFlagsAndAttributes: DWORD,
hTemplateFile: HANDLE,
) -> HANDLE;
pub fn CreateMutexA(
attrs: LPSECURITY_ATTRIBUTES,
initial: BOOL,
Expand Down Expand Up @@ -460,16 +445,6 @@ ffi! {
lpme: LPMODULEENTRY32W,
) -> BOOL;
}

#[link(name = "ntdll")]
extern "system" {
pub fn RtlCaptureStackBackTrace(
FramesToSkip: ULONG,
FramesToCapture: ULONG,
BackTrace: *mut PVOID,
BackTraceHash: PULONG,
) -> USHORT;
}
}

#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
Expand Down

0 comments on commit 7b7c103

Please sign in to comment.