Mercurial > yakumo_izuru > aya
comparison vendor/golang.org/x/sys/windows/eventlog.go @ 66:787b5ee0289d draft
Use vendored modules
Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
author | yakumo.izuru |
---|---|
date | Sun, 23 Jul 2023 13:18:53 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
65:6d985efa0f7a | 66:787b5ee0289d |
---|---|
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 | |
8 package windows | |
9 | |
10 const ( | |
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 |