mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 11:51:58 +00:00
- Tree cleanups proposed on the mailing list. Move all non-Core OS modules to rosapps. Tests were already moved by Fireball to rostests.
svn path=/trunk/; revision=26033
This commit is contained in:
parent
ad07a1e58f
commit
1e3d5d70e9
420 changed files with 78215 additions and 0 deletions
8
rosapps/avtest/avtest.rbuild
Executable file
8
rosapps/avtest/avtest.rbuild
Executable file
|
@ -0,0 +1,8 @@
|
|||
<module name="avtest" type="kernelmodedriver" installbase="system32/drivers" installname="avtest.sys" warnings="true">
|
||||
<include base="avtest">.</include>
|
||||
<include base="avtest">..</include>
|
||||
<define name="__USE_W32API" />
|
||||
<library>ks</library>
|
||||
<library>ntoskrnl</library>
|
||||
<file>entry.c</file>
|
||||
</module>
|
83
rosapps/avtest/entry.c
Executable file
83
rosapps/avtest/entry.c
Executable file
|
@ -0,0 +1,83 @@
|
|||
#include <debug.h>
|
||||
#include <ks.h>
|
||||
|
||||
/* Where do we go? */
|
||||
#ifndef SIZEOF_ARRAY
|
||||
#define SIZEOF_ARRAY(array) \
|
||||
(sizeof(array) / sizeof(array[0]))
|
||||
#endif
|
||||
|
||||
/* Not in the DDK but hey! */
|
||||
#define DEFINE_KSFILTER_DISPATCH(name) \
|
||||
const KSFILTER_DISPATCH name =
|
||||
|
||||
/* To be put in KS.H */
|
||||
#define DEFINE_KSFILTER_DESCRIPTOR(name) \
|
||||
const KSFILTER_DESCRIPTOR name =
|
||||
|
||||
#define DEFINE_KSFILTER_DESCRIPTOR_TABLE(name) \
|
||||
const KSFILTER_DESCRIPTOR* const name[] =
|
||||
|
||||
|
||||
|
||||
NTSTATUS FilterCreate(
|
||||
IN OUT PKSFILTER Filter,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS FilterClose(
|
||||
IN OUT PKSFILTER Filter,
|
||||
IN PIRP Irp)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS Process(
|
||||
IN PKSFILTER Filter,
|
||||
IN PKSPROCESSPIN_INDEXENTRY ProcessPinsIndex)
|
||||
{
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
DEFINE_KSFILTER_DISPATCH(FilterDispatch)
|
||||
{
|
||||
FilterCreate,
|
||||
FilterClose,
|
||||
Process,
|
||||
NULL // Reset
|
||||
};
|
||||
|
||||
DEFINE_KSFILTER_DESCRIPTOR(FilterDesc)
|
||||
{
|
||||
};
|
||||
|
||||
DEFINE_KSFILTER_DESCRIPTOR_TABLE(FilterDescs)
|
||||
{
|
||||
&FilterDesc
|
||||
};
|
||||
|
||||
|
||||
|
||||
const KSDEVICE_DESCRIPTOR DeviceDescriptor =
|
||||
{
|
||||
NULL,
|
||||
SIZEOF_ARRAY(FilterDescs),
|
||||
FilterDescs
|
||||
};
|
||||
|
||||
|
||||
/* Funcs */
|
||||
|
||||
NTSTATUS STDCALL
|
||||
DriverEntry(
|
||||
IN PDRIVER_OBJECT DriverObject,
|
||||
IN PUNICODE_STRING RegistryPathName)
|
||||
{
|
||||
DPRINT1("AVStream test component loaded!\n");
|
||||
|
||||
return KsInitializeDriver(DriverObject, RegistryPathName,
|
||||
&DeviceDescriptor);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue