source: code/trunk/vendor/golang.org/x/sys/windows/eventlog.go@ 69

Last change on this file since 69 was 67, checked in by Izuru Yakumo, 23 months ago

Use vendored modules

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 843 bytes
Line 
1// Copyright 2012 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5//go:build windows
6// +build windows
7
8package windows
9
10const (
11 EVENTLOG_SUCCESS = 0
12 EVENTLOG_ERROR_TYPE = 1
13 EVENTLOG_WARNING_TYPE = 2
14 EVENTLOG_INFORMATION_TYPE = 4
15 EVENTLOG_AUDIT_SUCCESS = 8
16 EVENTLOG_AUDIT_FAILURE = 16
17)
18
19//sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW
20//sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource
21//sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW
Note: See TracBrowser for help on using the repository browser.