fix(deps): update module github.com/containers/libhvee to v0.2.0

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This commit is contained in:
renovate[bot]
2023-06-30 00:28:26 +00:00
committed by GitHub
parent fca3c2ef84
commit fe0de8b9f6
4 changed files with 11 additions and 5 deletions

View File

@ -62,6 +62,7 @@ func connectService(namespace string) (*Service, error) {
var err error
var res uintptr
var strResource *uint16
var strLocale *uint16
var service *ole.IUnknown
loc := fmt.Sprintf(`\\.\%s`, namespace)
@ -70,6 +71,11 @@ func connectService(namespace string) (*Service, error) {
return nil, err
}
// Connect with en_US LCID since we do pattern matching against English key values
if strLocale, err = syscall.UTF16PtrFromString("MS_409"); err != nil {
return nil, err
}
myVTable := (*IWbemLocatorVtbl)(unsafe.Pointer(wmiWbemLocator.RawVTable))
res, _, _ = syscall.SyscallN(
myVTable.ConnectServer, // IWbemLocator::ConnectServer(
@ -77,7 +83,7 @@ func connectService(namespace string) (*Service, error) {
uintptr(unsafe.Pointer(strResource)), // [in] const BSTR strNetworkResource,
uintptr(0), // [in] const BSTR strUser,
uintptr(0), // [in] const BSTR strPassword,
uintptr(0), // [in] const BSTR strLocale,
uintptr(unsafe.Pointer(strLocale)), // [in] const BSTR strLocale,
uintptr(WBEM_FLAG_CONNECT_USE_MAX_WAIT), // [in] long lSecurityFlags,
uintptr(0), // [in] const BSTR strAuthority,
uintptr(0), // [in] IWbemContext *pCtx,