mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Implemented SystemDeviceInformation info class
svn path=/trunk/; revision=1528
This commit is contained in:
parent
0d8b4e3da6
commit
695a57cff6
1 changed files with 10 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: sysinfo.c,v 1.8 2000/11/04 13:51:03 ekohl Exp $
|
/* $Id: sysinfo.c,v 1.9 2001/01/17 02:02:39 ekohl Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -258,6 +258,7 @@ QSI_DEF(SystemDeviceInformation)
|
||||||
{
|
{
|
||||||
PSYSTEM_DEVICE_INFORMATION Sdi
|
PSYSTEM_DEVICE_INFORMATION Sdi
|
||||||
= (PSYSTEM_DEVICE_INFORMATION) Buffer;
|
= (PSYSTEM_DEVICE_INFORMATION) Buffer;
|
||||||
|
PCONFIGURATION_INFORMATION ConfigInfo;
|
||||||
|
|
||||||
*ReqSize = sizeof (SYSTEM_DEVICE_INFORMATION);
|
*ReqSize = sizeof (SYSTEM_DEVICE_INFORMATION);
|
||||||
/*
|
/*
|
||||||
|
@ -268,12 +269,14 @@ QSI_DEF(SystemDeviceInformation)
|
||||||
return (STATUS_INFO_LENGTH_MISMATCH);
|
return (STATUS_INFO_LENGTH_MISMATCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
Sdi->NumberOfDisks = 0; /* FIXME */
|
ConfigInfo = IoGetConfigurationInformation ();
|
||||||
Sdi->NumberOfFloppies = 0; /* FIXME */
|
|
||||||
Sdi->NumberOfCdRoms = 0; /* FIXME */
|
Sdi->NumberOfDisks = ConfigInfo->DiskCount;
|
||||||
Sdi->NumberOfTapes = 0; /* FIXME */
|
Sdi->NumberOfFloppies = ConfigInfo->FloppyCount;
|
||||||
Sdi->NumberOfSerialPorts = 0; /* FIXME */
|
Sdi->NumberOfCdRoms = ConfigInfo->CDRomCount;
|
||||||
Sdi->NumberOfParallelPorts = 0; /* FIXME */
|
Sdi->NumberOfTapes = ConfigInfo->TapeCount;
|
||||||
|
Sdi->NumberOfSerialPorts = ConfigInfo->SerialCount;
|
||||||
|
Sdi->NumberOfParallelPorts = ConfigInfo->ParallelCount;
|
||||||
|
|
||||||
return (STATUS_SUCCESS);
|
return (STATUS_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue