Skip to content

Commit 7b7c103

Browse files
authored
remove few unused pub fn windows ffi (#576)
1 parent b760f44 commit 7b7c103

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

src/windows.rs

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -403,23 +403,8 @@ ffi! {
403403
pub fn RtlCaptureContext(ContextRecord: PCONTEXT) -> ();
404404
pub fn LoadLibraryA(a: *const i8) -> HMODULE;
405405
pub fn GetProcAddress(h: HMODULE, name: *const i8) -> FARPROC;
406-
pub fn GetModuleHandleA(name: *const i8) -> HMODULE;
407-
pub fn OpenProcess(
408-
dwDesiredAccess: DWORD,
409-
bInheitHandle: BOOL,
410-
dwProcessId: DWORD,
411-
) -> HANDLE;
412406
pub fn GetCurrentProcessId() -> DWORD;
413407
pub fn CloseHandle(h: HANDLE) -> BOOL;
414-
pub fn CreateFileA(
415-
lpFileName: LPCSTR,
416-
dwDesiredAccess: DWORD,
417-
dwShareMode: DWORD,
418-
lpSecurityAttributes: LPSECURITY_ATTRIBUTES,
419-
dwCreationDisposition: DWORD,
420-
dwFlagsAndAttributes: DWORD,
421-
hTemplateFile: HANDLE,
422-
) -> HANDLE;
423408
pub fn CreateMutexA(
424409
attrs: LPSECURITY_ATTRIBUTES,
425410
initial: BOOL,
@@ -460,16 +445,6 @@ ffi! {
460445
lpme: LPMODULEENTRY32W,
461446
) -> BOOL;
462447
}
463-
464-
#[link(name = "ntdll")]
465-
extern "system" {
466-
pub fn RtlCaptureStackBackTrace(
467-
FramesToSkip: ULONG,
468-
FramesToCapture: ULONG,
469-
BackTrace: *mut PVOID,
470-
BackTraceHash: PULONG,
471-
) -> USHORT;
472-
}
473448
}
474449

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

0 commit comments

Comments
 (0)