mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-09-01 22:57:35 -04:00
The ETW registration handle is defined to be 64-bits on all platforms. The Go type previously used a uintptr which created problems on 32-bit systems. This change adds a new wrapper file which receives a 64-bit handle for the functions defined in it, and correctly passes it to the native ETW functions either as-is (on 64-bit) or as two 32-bit values (on 32-bit). This required a minor change in mksyscall_windows.go, to allow multiple syscalls that map to the same underlying function without causing a duplicate definition error in the generated file.
13 lines
281 B
Go
13 lines
281 B
Go
// +build arm
|
|
|
|
package etw
|
|
|
|
import (
|
|
"github.com/Microsoft/go-winio/pkg/guid"
|
|
)
|
|
|
|
// NewProviderWithID returns a nil provider on unsupported platforms.
|
|
func NewProviderWithID(name string, id *guid.GUID, callback EnableCallback) (provider *Provider, err error) {
|
|
return nil, nil
|
|
}
|