Create this branch to work on loading of different Kernel-Debugger DLL providers...
[reactos.git] / drivers / ksfilter / ks / priv.h
1 #define _KSDDK_
2
3 #include <stdio.h>
4
5 #include <ntifs.h>
6 #define NDEBUG
7 //#define YDEBUG
8 #include <debug.h>
9 #include <portcls.h>
10 #include <kcom.h>
11 #include <pseh/pseh2.h>
12
13 #include <ntimage.h>
14 #include <ndk/ldrfuncs.h>
15
16 #include "ksfunc.h"
17 #include "bdamedia.h"
18 #include <swenum.h>
19
20 #define TAG_DEVICE_HEADER 'KSDH'
21 #define REG_PINFLAG_B_MANY 0x4 /* strmif.h */
22 #define MERIT_DO_NOT_USE 0x200000 /* dshow.h */
23
24 #define DEFINE_KSPROPERTY_PINPROPOSEDATAFORMAT(PinSet,\
25 PropGeneral, PropInstances, PropIntersection)\
26 DEFINE_KSPROPERTY_TABLE(PinSet) {\
27 DEFINE_KSPROPERTY_ITEM_PIN_CINSTANCES(PropInstances),\
28 DEFINE_KSPROPERTY_ITEM_PIN_CTYPES(PropGeneral),\
29 DEFINE_KSPROPERTY_ITEM_PIN_DATAFLOW(PropGeneral),\
30 DEFINE_KSPROPERTY_ITEM_PIN_DATARANGES(PropGeneral),\
31 DEFINE_KSPROPERTY_ITEM_PIN_DATAINTERSECTION(PropIntersection),\
32 DEFINE_KSPROPERTY_ITEM_PIN_INTERFACES(PropGeneral),\
33 DEFINE_KSPROPERTY_ITEM_PIN_MEDIUMS(PropGeneral),\
34 DEFINE_KSPROPERTY_ITEM_PIN_COMMUNICATION(PropGeneral),\
35 DEFINE_KSPROPERTY_ITEM_PIN_CATEGORY(PropGeneral),\
36 DEFINE_KSPROPERTY_ITEM_PIN_NAME(PropGeneral),\
37 DEFINE_KSPROPERTY_ITEM_PIN_CONSTRAINEDDATARANGES(PropGeneral),\
38 DEFINE_KSPROPERTY_ITEM_PIN_PROPOSEDATAFORMAT(PropGeneral)\
39 }
40
41 #define DEFINE_KSPROPERTY_CONNECTIONSET(PinSet,\
42 PropStateHandler, PropDataFormatHandler, PropAllocatorFraming)\
43 DEFINE_KSPROPERTY_TABLE(PinSet) {\
44 DEFINE_KSPROPERTY_ITEM_CONNECTION_STATE(PropStateHandler, PropStateHandler),\
45 DEFINE_KSPROPERTY_ITEM_CONNECTION_DATAFORMAT(PropDataFormatHandler, PropDataFormatHandler),\
46 DEFINE_KSPROPERTY_ITEM_CONNECTION_ALLOCATORFRAMING_EX(PropAllocatorFraming)\
47 }
48
49 #define DEFINE_KSPROPERTY_STREAMSET(PinSet,\
50 PropStreamAllocator, PropMasterClock, PropPipeId)\
51 DEFINE_KSPROPERTY_TABLE(PinSet) {\
52 DEFINE_KSPROPERTY_ITEM_STREAM_ALLOCATOR(PropStreamAllocator, PropStreamAllocator),\
53 DEFINE_KSPROPERTY_ITEM_STREAM_MASTERCLOCK(PropMasterClock, PropMasterClock),\
54 DEFINE_KSPROPERTY_ITEM_STREAM_PIPE_ID(PropPipeId, PropPipeId)\
55 }