1 | /* $Id: tsmfhook.h 48944 2013-10-07 21:32:37Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBoxMMR - Multimedia Redirection
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012 Oracle Corporation
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | * available from http://www.virtualbox.org. This file is free software;
|
---|
11 | * you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | * General Public License (GPL) as published by the Free Software
|
---|
13 | * Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | */
|
---|
17 |
|
---|
18 | #pragma once
|
---|
19 |
|
---|
20 | // The following ifdef block is the standard way of creating macros which make exporting
|
---|
21 | // from a DLL simpler. All files within this DLL are compiled with the TSMFHOOK_EXPORTS
|
---|
22 | // symbol defined on the command line. This symbol should not be defined on any project
|
---|
23 | // that uses this DLL. This way any other project whose source files include this file see
|
---|
24 | // TSMFHOOK_API functions as being imported from a DLL, whereas this DLL sees symbols
|
---|
25 | // defined with this macro as being exported.
|
---|
26 | #ifdef TSMFHOOK_EXPORTS
|
---|
27 | #define TSMFHOOK_API __declspec(dllexport)
|
---|
28 | #else
|
---|
29 | #define TSMFHOOK_API __declspec(dllimport)
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | extern "C" TSMFHOOK_API LRESULT CALLBACK CBTProc(int nCode, WPARAM wParam, LPARAM lParam);
|
---|
33 |
|
---|
34 | void Shutdown();
|
---|
35 |
|
---|
36 | // {56E95534-F42E-4C79-8EED-B121B4823163}
|
---|
37 | static const GUID ProviderId =
|
---|
38 | { 0x56e95534, 0xf42e, 0x4c79, { 0x8e, 0xed, 0xb1, 0x21, 0xb4, 0x82, 0x31, 0x63 } };
|
---|
39 |
|
---|
40 | // {06797744-5A74-4782-B2AB-B86D9F6C7B4A}
|
---|
41 | static const GUID ChannelOpenCategoryId =
|
---|
42 | { 0x6797744, 0x5a74, 0x4782, { 0xb2, 0xab, 0xb8, 0x6d, 0x9f, 0x6c, 0x7b, 0x4a } };
|
---|
43 |
|
---|
44 | // {BF94ED39-9585-4822-B69E-DF19549A664C}
|
---|
45 | static const GUID ChannelWriteCategoryId =
|
---|
46 | { 0xbf94ed39, 0x9585, 0x4822, { 0xb6, 0x9e, 0xdf, 0x19, 0x54, 0x9a, 0x66, 0x4c } };
|
---|
47 |
|
---|
48 | // {95375270-AE5F-423E-A4EB-5AE7FC649CF6}
|
---|
49 | static const GUID ChannelReadCategoryId =
|
---|
50 | { 0x95375270, 0xae5f, 0x423e, { 0xa4, 0xeb, 0x5a, 0xe7, 0xfc, 0x64, 0x9c, 0xf6 } };
|
---|
51 |
|
---|
52 | // {01F2A23A-4144-45E6-9933-4668915A1758}
|
---|
53 | static const GUID ChannelCloseCategoryId =
|
---|
54 | { 0x1f2a23a, 0x4144, 0x45e6, { 0x99, 0x33, 0x46, 0x68, 0x91, 0x5a, 0x17, 0x58 } };
|
---|
55 |
|
---|
56 | #pragma pack(push, 1)
|
---|
57 |
|
---|
58 | struct TraceEventDataChannelOpen
|
---|
59 | {
|
---|
60 | HANDLE Channel;
|
---|
61 | };
|
---|
62 |
|
---|
63 | struct TraceEventDataChannelReadEnd
|
---|
64 | {
|
---|
65 | DWORD ErrorCode;
|
---|
66 | CHAR Data[64];
|
---|
67 | };
|
---|
68 |
|
---|
69 | struct TraceEventDataChannelWriteStart : TraceEventDataChannelOpen
|
---|
70 | {
|
---|
71 | CHAR Data[64];
|
---|
72 | };
|
---|
73 |
|
---|
74 | typedef TraceEventDataChannelOpen TraceEventDataChannelClose;
|
---|
75 | typedef TraceEventDataChannelOpen TraceEventDataChannelReadStart;
|
---|
76 |
|
---|
77 | struct TraceEventData
|
---|
78 | {
|
---|
79 | EVENT_TRACE_HEADER Header;
|
---|
80 | union
|
---|
81 | {
|
---|
82 | TraceEventDataChannelOpen Open;
|
---|
83 | TraceEventDataChannelClose Close;
|
---|
84 | TraceEventDataChannelReadStart ReadStart;
|
---|
85 | TraceEventDataChannelReadEnd ReadEnd;
|
---|
86 | TraceEventDataChannelWriteStart WriteStart;
|
---|
87 | };
|
---|
88 | };
|
---|
89 |
|
---|
90 |
|
---|
91 | #pragma pack(pop)
|
---|
92 |
|
---|