We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried hooking a Read call which does work:
//export detourReadFile func DetourReadFile(hFile C.HANDLE, lpBuffer C.LPVOID, nNumberOfBytesToRead C.DWORD, lpNumberOfBytesRead C.LPDWORD, lpOverlapped C.LPOVERLAPPED) C.BOOL { result, _, lastErr := syscall.SyscallN( uintptr(unsafe.Pointer(readTrampoline)), uintptr(unsafe.Pointer(hFile)), uintptr(unsafe.Pointer(lpBuffer)), uintptr(C.DWORD(uint(nNumberOfBytesToRead))), uintptr(unsafe.Pointer(lpNumberOfBytesRead)), uintptr(unsafe.Pointer(lpOverlapped)), ) if result == 0 { fmt.Println("Error reading file: ", lastErr) return C.BOOL(0) } return C.BOOL(result) }
The hooking most of the time works but sometimes I get an error: Error reading file: The pipe has been ended
Error reading file: The pipe has been ended
Also the program freezes and refuses to continue (If I remove the read hooking, It is not freezing anymore), Am I doing something wrong here?
I don't know if this the error related to the freezing.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried hooking a Read call which does work:
The hooking most of the time works but sometimes I get an error:
Error reading file: The pipe has been ended
Also the program freezes and refuses to continue (If I remove the read hooking, It is not freezing anymore), Am I doing something wrong here?
I don't know if this the error related to the freezing.
The text was updated successfully, but these errors were encountered: