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

Function Ext2InsertDisk

Ext2Mgr/enumDisk.cpp:4009–4032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4007}
4008
4009VOID
4010Ext2InsertDisk(
4011 CListCtrl *List,
4012 PEXT2_DISK Disk
4013 )
4014{
4015 UCHAR i;
4016 CHAR devName[64];
4017 int nItem = 0, nImage = 0;
4018
4019 sprintf(devName, "DISK %d", Disk->OrderNo);
4020 nItem = List->GetItemCount();
4021 nItem = List->InsertItem( LVIF_PARAM|LVIF_IMAGE, nItem, NULL,
4022 0, 0, nImage, (LPARAM)Disk);
4023 List->SetItem( nItem, 0, LVIF_TEXT, (LPCSTR)devName, 0, 0, 0,0);
4024
4025 if (Disk->NumParts > 0) {
4026 for (i=0; i < Disk->NumParts; i++) {
4027 Ext2InsertPartition(List, Disk, &Disk->DataParts[i]);
4028 }
4029 } else {
4030 Ext2InsertPartition(List, Disk, NULL);
4031 }
4032}
4033
4034
4035VOID

Callers 1

Ext2RefreshDiskListFunction · 0.85

Calls 1

Ext2InsertPartitionFunction · 0.85

Tested by

no test coverage detected