- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for MustFindProc (0.21 sec)
-
src/runtime/testdata/testwinlibthrow/main.go
package main import ( "os" "syscall" ) func main() { dll := syscall.MustLoadDLL("veh.dll") RaiseNoExcept := dll.MustFindProc("RaiseNoExcept") ThreadRaiseNoExcept := dll.MustFindProc("ThreadRaiseNoExcept") thread := len(os.Args) > 1 && os.Args[1] == "thread" if !thread { RaiseNoExcept.Call() } else { ThreadRaiseNoExcept.Call() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 15:33:38 UTC 2023 - 348 bytes - Viewed (0) -
src/runtime/syscall_windows_test.go
} panic("not reached") } func resumeChildThread(kernel32 *syscall.DLL, childpid int) error { _OpenThread := kernel32.MustFindProc("OpenThread") _ResumeThread := kernel32.MustFindProc("ResumeThread") _Thread32First := kernel32.MustFindProc("Thread32First") _Thread32Next := kernel32.MustFindProc("Thread32Next") snapshot, err := syscall.CreateToolhelp32Snapshot(syscall.TH32CS_SNAPTHREAD, 0) if err != nil { return err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 31 16:31:35 UTC 2023 - 32.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/ws2_32.txt
go 1.21 -- utils.go -- package main import ( "fmt" "syscall" "unsafe" ) func hasModuleHandle() { const ws2_32 = "ws2_32.dll" getModuleHandle := syscall.MustLoadDLL("kernel32.dll").MustFindProc("GetModuleHandleW") mod, _, _ := getModuleHandle.Call(uintptr(unsafe.Pointer(syscall.StringToUTF16Ptr(ws2_32)))) if mod != 0 { fmt.Println(ws2_32+":", "found") } else { fmt.Println(ws2_32+":", "not found") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 23 18:57:32 UTC 2024 - 730 bytes - Viewed (0) -
src/runtime/testdata/testprog/syscall_windows.go
register("ZeroDivisionException", ZeroDivisionException) register("StackMemory", StackMemory) } func RaiseException() { const EXCEPTION_NONCONTINUABLE = 1 mod := syscall.MustLoadDLL("kernel32.dll") proc := mod.MustFindProc("RaiseException") proc.Call(0xbad, EXCEPTION_NONCONTINUABLE, 0, 0) println("RaiseException should not return") } func ZeroDivisionException() { x := 1 y := 0 z := x / y println(z) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 17:31:31 UTC 2023 - 1.5K bytes - Viewed (0) -
src/syscall/dll_windows.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"Uint64", Type, 19}, {"Uintptr", Type, 19}, {"Value", Type, 4}, }, "syscall": { {"(*Cmsghdr).SetLen", Method, 0}, {"(*DLL).FindProc", Method, 0}, {"(*DLL).MustFindProc", Method, 0}, {"(*DLL).Release", Method, 0}, {"(*DLLError).Error", Method, 0}, {"(*DLLError).Unwrap", Method, 16}, {"(*Filetime).Nanoseconds", Method, 0}, {"(*Iovec).SetLen", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)