ntoskrnl: Implement partial stub for IoGetConfigurationInformation().

This commit is contained in:
Peter Dons Tychsen 2008-09-08 01:01:55 +02:00 committed by Alexandre Julliard
parent 6f7c2b94d4
commit 6e7c73cacf
3 changed files with 28 additions and 1 deletions

View File

@ -469,6 +469,18 @@ PDEVICE_OBJECT WINAPI IoGetRelatedDeviceObject( PFILE_OBJECT obj )
return NULL;
}
static CONFIGURATION_INFORMATION configuration_information;
/***********************************************************************
* IoGetConfigurationInformation (NTOSKRNL.EXE.@)
*/
PCONFIGURATION_INFORMATION WINAPI IoGetConfigurationInformation(void)
{
FIXME( "partial stub\n" );
/* FIXME: return actual devices on system */
return &configuration_information;
}
/***********************************************************************
* IoRegisterDriverReinitialization (NTOSKRNL.EXE.@)

View File

@ -377,7 +377,7 @@
@ stub IoGetAttachedDeviceReference
@ stub IoGetBaseFileSystemDeviceObject
@ stub IoGetBootDiskInformation
@ stub IoGetConfigurationInformation
@ stdcall IoGetConfigurationInformation()
@ stub IoGetCurrentProcess
@ stub IoGetDeviceAttachmentBaseRef
@ stub IoGetDeviceInterfaceAlias

View File

@ -46,6 +46,21 @@ typedef enum _BUS_DATA_TYPE
MaximumBusDataType
} BUS_DATA_TYPE, *PBUS_DATA_TYPE;
typedef struct _CONFIGURATION_INFORMATION
{
ULONG DiskCount;
ULONG FloppyCount;
ULONG CdRomCount;
ULONG TapeCount;
ULONG ScsiPortCount;
ULONG SerialCount;
ULONG ParallelCount;
BOOLEAN AtDiskPrimaryAddressClaimed;
BOOLEAN AtDiskSecondaryAddressClaimed;
ULONG Version;
ULONG MediumChangerCount;
} CONFIGURATION_INFORMATION, *PCONFIGURATION_INFORMATION;
typedef VOID (WINAPI *PDRIVER_REINITIALIZE)(PDRIVER_OBJECT,PVOID,ULONG);
void WINAPI IoRegisterDriverReinitialization(PDRIVER_OBJECT,PDRIVER_REINITIALIZE,PVOID);