MCPcopy Create free account
hub / github.com/bobranten/Ext4Fsd / Ext2QuerySysConfig

Function Ext2QuerySysConfig

Ext2Mgr/enumDisk.cpp:1413–1430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1411}
1412
1413BOOL
1414Ext2QuerySysConfig()
1415{
1416 NT::NTSTATUS status;
1417 NT::_SYSTEM_CONFIGURATION_INFORMATION ConfigInfo;
1418
1419 status = NT::ZwQuerySystemInformation(
1420 NT::SystemConfigurationInformation,
1421 &ConfigInfo, sizeof(ConfigInfo), 0);
1422 if (NT_SUCCESS(status)) {
1423 g_nDisks = ConfigInfo.DiskCount;
1424 g_nFlps = ConfigInfo.FloppyCount;
1425 g_nCdroms = ConfigInfo.CdRomCount;
1426 return TRUE;
1427 }
1428
1429 return FALSE;
1430}
1431
1432BOOL
1433Ext2LoadDisks()

Callers 2

OnInitDialogMethod · 0.85
OnRefreshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected