1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Export guts for testing.
12 TestingWER
= &testingWER
14 TimeBeginPeriodRetValue
= &timeBeginPeriodRetValue
17 func NumberOfProcessors() int32 {
19 stdcall1(_GetSystemInfo
, uintptr(unsafe
.Pointer(&info
)))
20 return int32(info
.dwnumberofprocessors
)
23 func LoadLibraryExStatus() (useEx
, haveEx
, haveFlags
bool) {
24 return useLoadLibraryEx
, _LoadLibraryExW
!= nil, _AddDllDirectory
!= nil