Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EventTracing.c « winapi « peloader - github.com/taviso/loadlibrary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aa4140651c76e0b2718c199ad9670be77641454f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <stdbool.h>
#include <search.h>
#include <assert.h>

#include "winnt_types.h"
#include "pe_linker.h"
#include "ntoskernel.h"
#include "log.h"
#include "winexports.h"
#include "util.h"

STATIC ULONG WINAPI RegisterTraceGuidsW(PVOID RequestAddress,
                                 PVOID RequestContext,
                                 PVOID ControlGuid,
                                 ULONG GuidCount,
                                 PVOID TraceGuidReg,
                                 PVOID MofImagePath,
                                 PVOID MofResourceName,
                                 PVOID RegistrationHandle)
{
    DebugLog("%p, %p, %p, %u, %p, %p, %p, %p",
             RequestAddress,
             RequestContext,
             ControlGuid,
             GuidCount,
             TraceGuidReg,
             MofImagePath,
             MofResourceName,
             RegistrationHandle);

    return STATUS_SUCCESS;
}

STATIC ULONG WINAPI UnregisterTraceGuids(HANDLE RegistrationHandle)
{
    DebugLog("%p", RegistrationHandle);
    return STATUS_SUCCESS;
}

DECLARE_CRT_EXPORT("RegisterTraceGuidsW", RegisterTraceGuidsW);
DECLARE_CRT_EXPORT("UnregisterTraceGuids", UnregisterTraceGuids);