We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ee597c commit 9f77d48Copy full SHA for 9f77d48
hook/src/syscall/windows.rs
@@ -161,11 +161,11 @@ unsafe fn attach() -> std::io::Result<()> {
161
// addresssize: usize,
162
// dwmilliseconds: c_uint
163
// ) -> BOOL);
164
- // impl_hook!("ws2_32.dll", CONNECT, connect(
165
- // fd: SOCKET,
166
- // address: *const SOCKADDR,
167
- // len: c_int
168
- // ) -> c_int);
+ impl_hook!("ws2_32.dll", CONNECT, connect(
+ fd: SOCKET,
+ address: *const SOCKADDR,
+ len: c_int
+ ) -> c_int);
169
// Enable the hook
170
minhook::MinHook::enable_all_hooks()
171
.map_err(|_| Error::new(ErrorKind::Other, "init all hooks failed !"))
0 commit comments