05ade19302
* dashboard: footer, deep state update * dashboard: resolve asset path * dashboard: prevent state update on every reconnection * dashboard: fix linter issue * dashboard, cmd: minor UI fix, include commit hash * dashboard: gitCommit renamed to commit * dashboard: move the geth version to the right, make commit optional * dashboard: memory, traffic and CPU on footer * dashboard: fix merge * dashboard: CPU, diskIO on footer * dashboard: rename variables, use group declaration * dashboard: docs
64 lines
1.0 KiB
Go
64 lines
1.0 KiB
Go
// +build windows
|
|
|
|
package ole
|
|
|
|
import (
|
|
"syscall"
|
|
"unsafe"
|
|
)
|
|
|
|
func (enum *IEnumVARIANT) Clone() (cloned *IEnumVARIANT, err error) {
|
|
hr, _, _ := syscall.Syscall(
|
|
enum.VTable().Clone,
|
|
2,
|
|
uintptr(unsafe.Pointer(enum)),
|
|
uintptr(unsafe.Pointer(&cloned)),
|
|
0)
|
|
if hr != 0 {
|
|
err = NewError(hr)
|
|
}
|
|
return
|
|
}
|
|
|
|
func (enum *IEnumVARIANT) Reset() (err error) {
|
|
hr, _, _ := syscall.Syscall(
|
|
enum.VTable().Reset,
|
|
1,
|
|
uintptr(unsafe.Pointer(enum)),
|
|
0,
|
|
0)
|
|
if hr != 0 {
|
|
err = NewError(hr)
|
|
}
|
|
return
|
|
}
|
|
|
|
func (enum *IEnumVARIANT) Skip(celt uint) (err error) {
|
|
hr, _, _ := syscall.Syscall(
|
|
enum.VTable().Skip,
|
|
2,
|
|
uintptr(unsafe.Pointer(enum)),
|
|
uintptr(celt),
|
|
0)
|
|
if hr != 0 {
|
|
err = NewError(hr)
|
|
}
|
|
return
|
|
}
|
|
|
|
func (enum *IEnumVARIANT) Next(celt uint) (array VARIANT, length uint, err error) {
|
|
hr, _, _ := syscall.Syscall6(
|
|
enum.VTable().Next,
|
|
4,
|
|
uintptr(unsafe.Pointer(enum)),
|
|
uintptr(celt),
|
|
uintptr(unsafe.Pointer(&array)),
|
|
uintptr(unsafe.Pointer(&length)),
|
|
0,
|
|
0)
|
|
if hr != 0 {
|
|
err = NewError(hr)
|
|
}
|
|
return
|
|
}
|