Documentation
¶
Index ¶
- func BytePtrFromString(s string) (*byte, error)
- func CheckRemoteDebuggerPresent(hProcess uintptr, pbDebuggerPresent *bool) error
- func DirectCall(funcAddr uintptr, args ...uintptr) (uintptr, error)
- func DoIndirectSyscallExternal(ssn uint16, syscallAddr uintptr, nargs uint32, args ...uintptr) uintptr
- func DoSyscallExternal(ssn uint16, nargs uint32, args ...uintptr) uintptr
- func ExternalSyscall(syscallNumber uint16, args ...uintptr) (uintptr, error)
- func GetProcAddress(moduleHandle uintptr, proc unsafe.Pointer) uintptr
- func HashIndirectSyscall(functionHash uint32, args ...uintptr) (uintptr, error)
- func HashSyscall(functionHash uint32, args ...uintptr) (uintptr, error)
- func IndirectSyscall(syscallNum uint16, syscallAddr uintptr, args ...uintptr) (uintptr, error)
- func IsDebuggerPresent() bool
- func LoadLibraryW(name string) uintptr
- func Syscall(syscallNum uint16, args ...uintptr) (uintptr, error)
- func UTF16PtrFromString(s string) (*uint16, error)
- func UTF16ToString(ptr *uint16) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytePtrFromString ¶ added in v1.3.5
func CheckRemoteDebuggerPresent ¶ added in v1.3.5
func DirectCall ¶
DirectCall calls a Windows API function directly by address using the libcall structure
func DoIndirectSyscallExternal ¶
func DoIndirectSyscallExternal(ssn uint16, syscallAddr uintptr, nargs uint32, args ...uintptr) uintptr
DoIndirectSyscallExternal calls the assembly indirect function directly
func DoSyscallExternal ¶
DoSyscallExternal calls the assembly function directly
func ExternalSyscall ¶
ExternalSyscall is a wrapper that uses the assembly implementation
func GetProcAddress ¶ added in v1.3.5
func HashIndirectSyscall ¶
HashIndirectSyscall executes an indirect syscall using a function name hash
func HashSyscall ¶
HashSyscall executes a direct syscall using a function name hash This simplifies API calls by automatically resolving the syscall number
func IndirectSyscall ¶
IndirectSyscall executes an indirect syscall with the given number, syscall address, and arguments. This function acts as a wrapper around the assembly implementation with automatic trampoline resolution.
func IsDebuggerPresent ¶ added in v1.3.5
func IsDebuggerPresent() bool
func LoadLibraryW ¶ added in v1.3.5
func Syscall ¶ added in v1.3.4
Syscall executes a direct syscall with the given number and arguments. This function acts as a wrapper around the assembly implementation.
func UTF16PtrFromString ¶ added in v1.3.5
func UTF16ToString ¶ added in v1.3.5
UTF16ToString converts a UTF16 string to a Go string
Types ¶
This section is empty.