chore: move exporter binary to cmd package (#1768)

Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2024-11-24 15:53:56 +01:00
committed by GitHub
parent 1badb34506
commit eff124250f
12 changed files with 395 additions and 114 deletions

View File

@@ -28,7 +28,7 @@ const (
// NeLogOemCode is a generic error log entry for OEMs to use to
// elog errors from OEM value added services.
// See: https://github.com/microsoft/win32metadata/blob/2f3c5282ce1024a712aeccd90d3aa50bf7a49e27/generation/WinSDK/RecompiledIdlHeaders/um/LMErrlog.h#L824-L845
neLogOemCode = uint32(3299)
NeLogOemCode = uint32(3299)
)
// Interface guard.
@@ -62,5 +62,5 @@ func (w *Writer) Write(p []byte) (int, error) {
ss := []*uint16{msg, nil, nil, nil, nil, nil, nil, nil, nil}
return len(p), windows.ReportEvent(w.handle, eType, 0, neLogOemCode, 0, 9, 0, &ss[0], nil)
return len(p), windows.ReportEvent(w.handle, eType, 0, NeLogOemCode, 0, 9, 0, &ss[0], nil)
}