Damjan Jovanovic : ntoskrnl.exe: Stub out IoGetDeviceProperty.
Alexandre Julliard
julliard at winehq.org
Thu Apr 15 11:37:35 CDT 2010
Module: wine
Branch: master
Commit: 6aeffb53eeed0573a4c971097ffe39c6c1b537c0
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6aeffb53eeed0573a4c971097ffe39c6c1b537c0
Author: Damjan Jovanovic <damjan.jov at gmail.com>
Date: Wed Apr 14 21:28:59 2010 +0200
ntoskrnl.exe: Stub out IoGetDeviceProperty.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 12 ++++++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
include/ddk/wdm.h | 24 ++++++++++++++++++++++++
3 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 793a699..c22b81a 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -632,6 +632,18 @@ NTSTATUS WINAPI IoGetDeviceObjectPointer( UNICODE_STRING *name, ACCESS_MASK acc
/***********************************************************************
+ * IoGetDeviceProperty (NTOSKRNL.EXE.@)
+ */
+NTSTATUS WINAPI IoGetDeviceProperty( DEVICE_OBJECT *device, DEVICE_REGISTRY_PROPERTY device_property,
+ ULONG buffer_length, PVOID property_buffer, PULONG result_length )
+{
+ FIXME( "%p %d %u %p %p: stub\n", device, device_property, buffer_length,
+ property_buffer, result_length );
+ return STATUS_NOT_IMPLEMENTED;
+}
+
+
+/***********************************************************************
* IoCallDriver (NTOSKRNL.EXE.@)
*/
NTSTATUS WINAPI IoCallDriver( DEVICE_OBJECT *device, IRP *irp )
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index bb98dc2..e6db4f7 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -383,7 +383,7 @@
@ stub IoGetDeviceInterfaceAlias
@ stub IoGetDeviceInterfaces
@ stdcall IoGetDeviceObjectPointer(ptr long ptr ptr)
-@ stub IoGetDeviceProperty
+@ stdcall IoGetDeviceProperty(ptr long long ptr ptr)
@ stub IoGetDeviceToVerify
@ stub IoGetDiskDeviceObject
@ stub IoGetDmaAdapter
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index da673a5..baede35 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -689,6 +689,29 @@ typedef enum _BUS_QUERY_ID_TYPE {
BusQueryDeviceSerialNumber
} BUS_QUERY_ID_TYPE, *PBUS_QUERY_ID_TYPE;
+typedef enum {
+ DevicePropertyDeviceDescription,
+ DevicePropertyHardwareID,
+ DevicePropertyCompatibleIDs,
+ DevicePropertyBootConfiguration,
+ DevicePropertyBootConfigurationTranslated,
+ DevicePropertyClassName,
+ DevicePropertyClassGuid,
+ DevicePropertyDriverKeyName,
+ DevicePropertyManufacturer,
+ DevicePropertyFriendlyName,
+ DevicePropertyLocationInformation,
+ DevicePropertyPhysicalDeviceObjectName,
+ DevicePropertyBusTypeGuid,
+ DevicePropertyLegacyBusType,
+ DevicePropertyBusNumber,
+ DevicePropertyEnumeratorName,
+ DevicePropertyAddress,
+ DevicePropertyUINumber,
+ DevicePropertyInstallState,
+ DevicePropertyRemovalPolicy
+} DEVICE_REGISTRY_PROPERTY;
+
typedef enum _DEVICE_TEXT_TYPE {
DeviceTextDescription,
DeviceTextLocationInformation
@@ -1074,6 +1097,7 @@ NTSTATUS WINAPI IoDeleteSymbolicLink(UNICODE_STRING*);
void WINAPI IoFreeIrp(IRP*);
PEPROCESS WINAPI IoGetCurrentProcess(void);
NTSTATUS WINAPI IoGetDeviceObjectPointer(UNICODE_STRING*,ACCESS_MASK,PFILE_OBJECT*,PDEVICE_OBJECT*);
+NTSTATUS WINAPI IoGetDeviceProperty(PDEVICE_OBJECT,DEVICE_REGISTRY_PROPERTY,ULONG,PVOID,PULONG);
PVOID WINAPI IoGetDriverObjectExtension(PDRIVER_OBJECT,PVOID);
PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject(PFILE_OBJECT);
void WINAPI IoInitializeIrp(IRP*,USHORT,CCHAR);
More information about the wine-cvs
mailing list