Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9db1bbf2
Commit
9db1bbf2
authored
Nov 03, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use proper dllimports for eventlog functions.
parent
17588774
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
27 deletions
+41
-27
eventlog.c
dlls/advapi32/eventlog.c
+1
-0
trace.c
dlls/sechost/trace.c
+1
-0
evntprov.h
include/evntprov.h
+12
-8
evntrace.h
include/evntrace.h
+27
-19
No files found.
dlls/advapi32/eventlog.c
View file @
9db1bbf2
...
...
@@ -27,6 +27,7 @@
#include "winerror.h"
#include "winternl.h"
#include "wmistr.h"
#define _WMI_SOURCE_
#include "evntrace.h"
#include "evntprov.h"
...
...
dlls/sechost/trace.c
View file @
9db1bbf2
...
...
@@ -24,6 +24,7 @@
#include "windef.h"
#include "winbase.h"
#include "wmistr.h"
#define _WMI_SOURCE_
#include "evntrace.h"
#include "wine/debug.h"
...
...
include/evntprov.h
View file @
9db1bbf2
...
...
@@ -23,6 +23,10 @@
extern
"C"
{
#endif
#ifndef EVNTAPI
#define EVNTAPI DECLSPEC_IMPORT WINAPI
#endif
#define EVENT_LEVEL_MIN 0x00
#define EVENT_LEVEL_MAX 0xff
...
...
@@ -67,14 +71,14 @@ typedef enum _EVENT_INFO_CLASS
MaxEventInfo
}
EVENT_INFO_CLASS
;
BOOLEAN
WIN
API
EventEnabled
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
);
BOOLEAN
WIN
API
EventProviderEnabled
(
REGHANDLE
,
UCHAR
,
ULONGLONG
);
ULONG
WIN
API
EventRegister
(
LPCGUID
,
PENABLECALLBACK
,
PVOID
,
PREGHANDLE
);
ULONG
WIN
API
EventSetInformation
(
REGHANDLE
,
EVENT_INFO_CLASS
,
PVOID
,
ULONG
);
ULONG
WIN
API
EventUnregister
(
REGHANDLE
);
ULONG
WIN
API
EventWrite
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
,
ULONG
,
PEVENT_DATA_DESCRIPTOR
);
ULONG
WIN
API
EventWriteString
(
REGHANDLE
,
UCHAR
,
ULONGLONG
,
const
WCHAR
*
);
ULONG
WIN
API
EventWriteTransfer
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
,
LPCGUID
,
LPCGUID
,
ULONG
,
PEVENT_DATA_DESCRIPTOR
);
BOOLEAN
EVNT
API
EventEnabled
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
);
BOOLEAN
EVNT
API
EventProviderEnabled
(
REGHANDLE
,
UCHAR
,
ULONGLONG
);
ULONG
EVNT
API
EventRegister
(
LPCGUID
,
PENABLECALLBACK
,
PVOID
,
PREGHANDLE
);
ULONG
EVNT
API
EventSetInformation
(
REGHANDLE
,
EVENT_INFO_CLASS
,
PVOID
,
ULONG
);
ULONG
EVNT
API
EventUnregister
(
REGHANDLE
);
ULONG
EVNT
API
EventWrite
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
,
ULONG
,
PEVENT_DATA_DESCRIPTOR
);
ULONG
EVNT
API
EventWriteString
(
REGHANDLE
,
UCHAR
,
ULONGLONG
,
const
WCHAR
*
);
ULONG
EVNT
API
EventWriteTransfer
(
REGHANDLE
,
PCEVENT_DESCRIPTOR
,
LPCGUID
,
LPCGUID
,
ULONG
,
PEVENT_DATA_DESCRIPTOR
);
#ifdef __cplusplus
}
...
...
include/evntrace.h
View file @
9db1bbf2
...
...
@@ -25,6 +25,14 @@
extern
"C"
{
#endif
#ifndef WMIAPI
#ifdef _WMI_SOURCE_
#define WMIAPI WINAPI
#else
#define WMIAPI DECLSPEC_IMPORT WINAPI
#endif
#endif
#define EVENT_TRACE_CONTROL_QUERY 0
#define EVENT_TRACE_CONTROL_STOP 1
#define EVENT_TRACE_CONTROL_UPDATE 2
...
...
@@ -286,33 +294,33 @@ typedef enum _TRACE_QUERY_INFO_CLASS
#define INVALID_PROCESSTRACE_HANDLE ((TRACEHANDLE)~(ULONG_PTR)0)
ULONG
W
IN
API
CloseTrace
(
TRACEHANDLE
);
ULONG
W
IN
API
ControlTraceA
(
TRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
,
ULONG
);
ULONG
W
IN
API
ControlTraceW
(
TRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
,
ULONG
);
ULONG
W
MI
API
CloseTrace
(
TRACEHANDLE
);
ULONG
W
MI
API
ControlTraceA
(
TRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
,
ULONG
);
ULONG
W
MI
API
ControlTraceW
(
TRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
,
ULONG
);
#define ControlTrace WINELIB_NAME_AW(ControlTrace)
ULONG
W
IN
API
EnableTrace
(
ULONG
,
ULONG
,
ULONG
,
LPCGUID
,
TRACEHANDLE
);
ULONG
W
IN
API
EnableTraceEx2
(
TRACEHANDLE
,
LPCGUID
,
ULONG
,
UCHAR
,
ULONGLONG
,
ULONGLONG
,
ULONG
,
PENABLE_TRACE_PARAMETERS
);
ULONG
W
IN
API
FlushTraceA
(
TRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
IN
API
FlushTraceW
(
TRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
MI
API
EnableTrace
(
ULONG
,
ULONG
,
ULONG
,
LPCGUID
,
TRACEHANDLE
);
ULONG
W
MI
API
EnableTraceEx2
(
TRACEHANDLE
,
LPCGUID
,
ULONG
,
UCHAR
,
ULONGLONG
,
ULONGLONG
,
ULONG
,
PENABLE_TRACE_PARAMETERS
);
ULONG
W
MI
API
FlushTraceA
(
TRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
MI
API
FlushTraceW
(
TRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
);
#define FlushTrace WINELIB_NAME_AW(FlushTrace)
ULONG
W
IN
API
GetTraceEnableFlags
(
TRACEHANDLE
);
UCHAR
W
IN
API
GetTraceEnableLevel
(
TRACEHANDLE
);
TRACEHANDLE
W
IN
API
GetTraceLoggerHandle
(
PVOID
);
ULONG
W
IN
API
QueryAllTracesA
(
PEVENT_TRACE_PROPERTIES
*
,
ULONG
,
PULONG
);
ULONG
W
IN
API
QueryAllTracesW
(
PEVENT_TRACE_PROPERTIES
*
,
ULONG
,
PULONG
);
ULONG
W
MI
API
GetTraceEnableFlags
(
TRACEHANDLE
);
UCHAR
W
MI
API
GetTraceEnableLevel
(
TRACEHANDLE
);
TRACEHANDLE
W
MI
API
GetTraceLoggerHandle
(
PVOID
);
ULONG
W
MI
API
QueryAllTracesA
(
PEVENT_TRACE_PROPERTIES
*
,
ULONG
,
PULONG
);
ULONG
W
MI
API
QueryAllTracesW
(
PEVENT_TRACE_PROPERTIES
*
,
ULONG
,
PULONG
);
#define QueryAllTraces WINELIB_NAME_AW(QueryAllTraces)
ULONG
W
IN
API
RegisterTraceGuidsA
(
WMIDPREQUEST
,
PVOID
,
LPCGUID
,
ULONG
,
PTRACE_GUID_REGISTRATION
,
LPCSTR
,
LPCSTR
,
PTRACEHANDLE
);
ULONG
W
IN
API
RegisterTraceGuidsW
(
WMIDPREQUEST
,
PVOID
,
LPCGUID
,
ULONG
,
PTRACE_GUID_REGISTRATION
,
LPCWSTR
,
LPCWSTR
,
PTRACEHANDLE
);
ULONG
W
MI
API
RegisterTraceGuidsA
(
WMIDPREQUEST
,
PVOID
,
LPCGUID
,
ULONG
,
PTRACE_GUID_REGISTRATION
,
LPCSTR
,
LPCSTR
,
PTRACEHANDLE
);
ULONG
W
MI
API
RegisterTraceGuidsW
(
WMIDPREQUEST
,
PVOID
,
LPCGUID
,
ULONG
,
PTRACE_GUID_REGISTRATION
,
LPCWSTR
,
LPCWSTR
,
PTRACEHANDLE
);
#define RegisterTraceGuids WINELIB_NAME_AW(RegisterTraceGuids)
ULONG
W
IN
API
StartTraceA
(
PTRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
IN
API
StartTraceW
(
PTRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
MI
API
StartTraceA
(
PTRACEHANDLE
,
LPCSTR
,
PEVENT_TRACE_PROPERTIES
);
ULONG
W
MI
API
StartTraceW
(
PTRACEHANDLE
,
LPCWSTR
,
PEVENT_TRACE_PROPERTIES
);
#define StartTrace WINELIB_NAME_AW(StartTrace)
ULONG
W
IN
API
TraceEvent
(
TRACEHANDLE
,
PEVENT_TRACE_HEADER
);
ULONG
W
MI
API
TraceEvent
(
TRACEHANDLE
,
PEVENT_TRACE_HEADER
);
ULONG
WINAPIV
TraceMessage
(
TRACEHANDLE
,
ULONG
,
LPGUID
,
USHORT
,...);
#ifdef __ms_va_list
ULONG
W
IN
API
TraceMessageVa
(
TRACEHANDLE
,
ULONG
,
LPGUID
,
USHORT
,
__ms_va_list
);
ULONG
W
MI
API
TraceMessageVa
(
TRACEHANDLE
,
ULONG
,
LPGUID
,
USHORT
,
__ms_va_list
);
#endif
ULONG
W
IN
API
UnregisterTraceGuids
(
TRACEHANDLE
);
ULONG
W
MI
API
UnregisterTraceGuids
(
TRACEHANDLE
);
#ifdef __cplusplus
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment