Source file
src/runtime/export_windows_test.go
1
2
3
4
5
6
7 package runtime
8
9 import "unsafe"
10
11 const MaxArgs = maxArgs
12
13 var (
14 TestingWER = &testingWER
15 OsYield = osyield
16 TimeBeginPeriodRetValue = &timeBeginPeriodRetValue
17 )
18
19 func NumberOfProcessors() int32 {
20 var info systeminfo
21 stdcall1(_GetSystemInfo, uintptr(unsafe.Pointer(&info)))
22 return int32(info.dwnumberofprocessors)
23 }
24
25 func LoadLibraryExStatus() (useEx, haveEx, haveFlags bool) {
26 return useLoadLibraryEx, _LoadLibraryExW != nil, _AddDllDirectory != nil
27 }
28
View as plain text