mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-10-23 04:59:04 +02:00
headers: fail Build on missing native exports and assert MI/COM layouts (#2739)
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -67,8 +67,13 @@ func (s *TaskService) Connect() error {
|
||||
domain := ole.NewEmptyVariant()
|
||||
password := ole.NewEmptyVariant()
|
||||
|
||||
fn, err := s.Method(taskServiceConnect)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
hr := ole.Call(
|
||||
s.Method(taskServiceConnect),
|
||||
fn,
|
||||
uintptr(unsafe.Pointer(s)),
|
||||
uintptr(unsafe.Pointer(server)),
|
||||
uintptr(unsafe.Pointer(user)),
|
||||
|
||||
Reference in New Issue
Block a user