func SetLogger(l Logger) {
	globalLoggerLock.Lock()
	defer globalLoggerLock.Unlock()
	globalLogger.Store(logWrapper{logger: l})
}
SetLogger sets the logger to be used by the win32 api package
for errors and warnings
package win32
import (
	"sync"
	"sync/atomic"
)
type Logger interface {
	Error(err error, msg string)
	Logln(v ...interface{})
	Logf(format string, args ...interface{})
}
var globalLoggerLock sync.Mutex
var globalLogger atomic.Value