mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 22:02:14 +00:00
* Create a branch for USB experiments.
svn path=/branches/usb-experiments/; revision=72629
This commit is contained in:
parent
28d8ba0d3e
commit
0ee830d7a4
23049 changed files with 0 additions and 1313991 deletions
12
drivers/wmi/CMakeLists.txt
Normal file
12
drivers/wmi/CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
|
||||
spec2def(wmilib.sys wmilib.spec ADD_IMPORTLIB)
|
||||
|
||||
list(APPEND SOURCE
|
||||
wmilib.c
|
||||
wmilib.rc
|
||||
${CMAKE_CURRENT_BINARY_DIR}/wmilib.def)
|
||||
|
||||
add_library(wmilib SHARED ${SOURCE})
|
||||
set_module_type(wmilib kernelmodedriver ENTRYPOINT 0)
|
||||
add_importlibs(wmilib ntoskrnl)
|
||||
add_cd_file(TARGET wmilib DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
60
drivers/wmi/wmilib.c
Normal file
60
drivers/wmi/wmilib.c
Normal file
|
@ -0,0 +1,60 @@
|
|||
/*
|
||||
* PROJECT: ReactOS WMI driver
|
||||
* COPYRIGHT: GPL - See COPYING in the top level directory
|
||||
* FILE: drivers/wmi/wmilib.c
|
||||
* PURPOSE: Windows Management Intstrumentation
|
||||
* PROGRAMMERS: Aleksey Bragin (aleksey@reactos.org)
|
||||
*
|
||||
*/
|
||||
|
||||
/* INCLUDES *****************************************************************/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <ntddk.h>
|
||||
#include <wmilib.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
WmiCompleteRequest(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp,
|
||||
IN NTSTATUS Status,
|
||||
IN ULONG BufferUsed,
|
||||
IN CCHAR PriorityBoost)
|
||||
{
|
||||
DPRINT1("WmiLib: WmiCompleteRequest() unimplemented\n");
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
WmiFireEvent(IN PDEVICE_OBJECT DeviceObject,
|
||||
IN LPCGUID Guid,
|
||||
IN ULONG InstanceIndex,
|
||||
IN ULONG EventDataSize,
|
||||
IN PVOID EventData)
|
||||
{
|
||||
DPRINT1("WmiLib: WmiFireEvent() unimplemented\n");
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS
|
||||
NTAPI
|
||||
WmiSystemControl(IN PWMILIB_CONTEXT WmiLibInfo,
|
||||
IN PDEVICE_OBJECT DeviceObject,
|
||||
IN PIRP Irp,
|
||||
OUT PSYSCTL_IRP_DISPOSITION IrpDisposition)
|
||||
{
|
||||
DPRINT1("WmiLib: WmiSystemControl() unimplemented\n");
|
||||
|
||||
/* Return info that Irp is not completed */
|
||||
if (IrpDisposition)
|
||||
*IrpDisposition = IrpNotCompleted;
|
||||
|
||||
return STATUS_SUCCESS;
|
||||
}
|
5
drivers/wmi/wmilib.rc
Normal file
5
drivers/wmi/wmilib.rc
Normal file
|
@ -0,0 +1,5 @@
|
|||
#define REACTOS_VERSION_DLL
|
||||
#define REACTOS_STR_FILE_DESCRIPTION "WmiLib"
|
||||
#define REACTOS_STR_INTERNAL_NAME "WmiLib"
|
||||
#define REACTOS_STR_ORIGINAL_FILENAME "wmilib.sys"
|
||||
#include <reactos/version.rc>
|
6
drivers/wmi/wmilib.spec
Normal file
6
drivers/wmi/wmilib.spec
Normal file
|
@ -0,0 +1,6 @@
|
|||
;
|
||||
; wmilib.def - export definition file for ReactOS
|
||||
;
|
||||
@ stdcall WmiCompleteRequest(ptr ptr long long long)
|
||||
@ stdcall WmiFireEvent(ptr ptr long long ptr)
|
||||
@ stdcall WmiSystemControl(ptr ptr ptr ptr)
|
Loading…
Add table
Add a link
Reference in a new issue