Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleLoadLibrary (0.28 sec)

  1. src/syscall/syscall_windows_test.go

    	}
    
    	if x.got != want {
    		t.Fatalf("memory corruption: want=%d got=%d", want, x.got)
    	}
    }
    
    func abort(funcname string, err error) {
    	panic(funcname + " failed: " + err.Error())
    }
    
    func ExampleLoadLibrary() {
    	h, err := syscall.LoadLibrary("kernel32.dll")
    	if err != nil {
    		abort("LoadLibrary", err)
    	}
    	defer syscall.FreeLibrary(h)
    	proc, err := syscall.GetProcAddress(h, "GetVersion")
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 17 16:33:09 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top