Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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