- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 15 for NewProc (0.37 sec)
-
src/runtime/race/race_windows_test.go
// Also do a sanity correctness check: under race detector atomic operations // are implemented inside of race runtime. kernel32 := syscall.NewLazyDLL("kernel32.dll") VirtualAlloc := kernel32.NewProc("VirtualAlloc") VirtualFree := kernel32.NewProc("VirtualFree") const ( MEM_COMMIT = 0x00001000 MEM_RESERVE = 0x00002000 MEM_RELEASE = 0x8000 PAGE_READWRITE = 0x04 )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 18:17:57 UTC 2021 - 1.3K bytes - Viewed (0) -
src/internal/syscall/windows/registry/zsyscall_windows.go
procRegCreateKeyExW = modadvapi32.NewProc("RegCreateKeyExW") procRegDeleteKeyW = modadvapi32.NewProc("RegDeleteKeyW") procRegDeleteValueW = modadvapi32.NewProc("RegDeleteValueW") procRegEnumValueW = modadvapi32.NewProc("RegEnumValueW") procRegLoadMUIStringW = modadvapi32.NewProc("RegLoadMUIStringW") procRegSetValueExW = modadvapi32.NewProc("RegSetValueExW")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 02 15:41:00 UTC 2020 - 4K bytes - Viewed (0) -
src/runtime/testdata/testwinsignal/main.go
kernel32 := syscall.NewLazyDLL("kernel32.dll") getConsoleWindow := kernel32.NewProc("GetConsoleWindow") hwnd, _, err := getConsoleWindow.Call() if hwnd == 0 { log.Fatal("no associated console: ", err) } // Send message to close the console window. const _WM_CLOSE = 0x0010 user32 := syscall.NewLazyDLL("user32.dll") postMessage := user32.NewProc("PostMessageW") ok, _, err := postMessage.Call(hwnd, _WM_CLOSE, 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 18 07:37:53 UTC 2022 - 1.3K bytes - Viewed (0) -
internal/disk/stat_windows.go
GetDiskFreeSpaceEx = kernel32.NewProc("GetDiskFreeSpaceExW") // GetDiskFreeSpace - https://msdn.microsoft.com/en-us/library/windows/desktop/aa364935(v=vs.85).aspx // Retrieves information about the specified disk, including the amount of free space on the disk. GetDiskFreeSpace = kernel32.NewProc("GetDiskFreeSpaceW") )
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 26 19:34:50 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/dist/sys_windows.go
// license that can be found in the LICENSE file. package main import ( "syscall" "unsafe" ) var ( modkernel32 = syscall.NewLazyDLL("kernel32.dll") procGetSystemInfo = modkernel32.NewProc("GetSystemInfo") ) // see https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/ns-sysinfoapi-system_info type systeminfo struct { wProcessorArchitecture uint16 wReserved uint16
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 16:42:41 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/compile/internal/ir/symtab.go
Growslice *obj.LSym InterfaceSwitch *obj.LSym Memmove *obj.LSym Msanread *obj.LSym Msanwrite *obj.LSym Msanmove *obj.LSym Newobject *obj.LSym Newproc *obj.LSym Panicdivide *obj.LSym Panicshift *obj.LSym PanicdottypeE *obj.LSym PanicdottypeI *obj.LSym Panicnildottype *obj.LSym Panicoverflow *obj.LSym
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 17:02:26 UTC 2023 - 2K bytes - Viewed (0) -
internal/disk/type_windows.go
package disk import ( "path/filepath" "syscall" "unsafe" ) // GetVolumeInformation provides windows drive volume information. var GetVolumeInformation = kernel32.NewProc("GetVolumeInformationW") // getFSType returns the filesystem type of the underlying mounted filesystem func getFSType(path string) string { volumeNameSize, nFileSystemNameSize := uint32(260), uint32(260)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sun Jan 02 17:15:06 UTC 2022 - 2.2K bytes - Viewed (0) -
pkg/kubelet/util/util_windows.go
serverPart := `\\.` pipePart := "pipe" pipeName := "kubelet-" + podResourcesDir return npipeProtocol + "://" + filepath.Join(serverPart, pipePart, pipeName), nil } var tickCount = syscall.NewLazyDLL("kernel32.dll").NewProc("GetTickCount64") // GetBootTime returns the time at which the machine was started, truncated to the nearest second func GetBootTime() (time.Time, error) { currentTime := time.Now() output, _, err := tickCount.Call()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 08:58:18 UTC 2024 - 3K bytes - Viewed (0) -
pkg/volume/util/fs/fs_windows.go
import ( "os" "path/filepath" "syscall" "unsafe" "golang.org/x/sys/windows" ) var ( modkernel32 = windows.NewLazySystemDLL("kernel32.dll") procGetDiskFreeSpaceEx = modkernel32.NewProc("GetDiskFreeSpaceExW") ) type UsageInfo struct { Bytes int64 Inodes int64 } // Info returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 21 16:25:48 UTC 2022 - 2.8K bytes - Viewed (0) -
pkg/kubelet/winstats/perfcounter_nodestats.go
AvailVirtual uint64 AvailExtendedVirtual uint64 } var ( modkernel32 = windows.NewLazySystemDLL("kernel32.dll") procGlobalMemoryStatusEx = modkernel32.NewProc("GlobalMemoryStatusEx") procGetActiveProcessorCount = modkernel32.NewProc("GetActiveProcessorCount") ) const allProcessorGroups = 0xFFFF // NewPerfCounterClient creates a client using perf counters func NewPerfCounterClient() (Client, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jan 26 18:37:21 UTC 2024 - 9.2K bytes - Viewed (0)