Предмет:
Тип роботи:
Курсова робота
К-сть сторінок:
44
Мова:
Українська
0L);
if (dwAddr & CM_DEVCAP_LOCKSUPPORTED)
ShowDevPropertyInfo(hListView, 0L, "LockSupported");
if (dwAddr & CM_DEVCAP_EJECTSUPPORTED)
ShowDevPropertyInfo(hListView, 0L, "EjectSupported");
if (dwAddr & CM_DEVCAP_REMOVABLE)
ShowDevPropertyInfo(hListView, 0L, "Removable");
if (dwAddr & CM_DEVCAP_DOCKDEVICE)
ShowDevPropertyInfo(hListView, 0L, "DockDevice");
if (dwAddr & CM_DEVCAP_UNIQUEID)
ShowDevPropertyInfo(hListView, 0L, "UniqueID");
if (dwAddr & CM_DEVCAP_SILENTINSTALL)
ShowDevPropertyInfo(hListView, 0L, "SilentInstall");
if (dwAddr & CM_DEVCAP_RAWDEVICEOK)
ShowDevPropertyInfo(hListView, 0L, "RawDeviceOK");
if (dwAddr & CM_DEVCAP_SURPRISEREMOVALOK)
ShowDevPropertyInfo(hListView, 0L, "SurpriseRemovalOK");
if (dwAddr & CM_DEVCAP_HARDWAREDISABLED)
ShowDevPropertyInfo(hListView, 0L, "HardwareDisabled");
if (dwAddr & CM_DEVCAP_NONDYNAMIC)
ShowDevPropertyInfo(hListView, 0L, "NonDynamic");
};
};
if (SetupDiGetDeviceRegistryProperty(hDevInfo,
&spDevInfoData,
SPDRP_CHARACTERISTICS,
0L,
(PBYTE)&dwAddr, //szName,
63,
0))
{
if (dwAddr)
{
ShowDevPropertyInfo(hListView, "Ознака", 0L);
if (dwAddr & FILE_DEVICE_SECURE_OPEN)
ShowDevPropertyInfo(hListView, 0L, "DEVICE_SECURE_OPEN");
if (dwAddr & FILE_FLOPPY_DISKETTE)
ShowDevPropertyInfo(hListView, 0L, "FLOPPY_DISKETTE");
if (dwAddr & FILE_READ_ONLY_DEVICE)
ShowDevPropertyInfo(hListView, 0L, "READ_ONLY_DEVICE");
if (dwAddr & FILE_REMOVABLE_MEDIA)
ShowDevPropertyInfo(hListView, 0L, "REMOVABLE_MEDIA");
if (dwAddr & FILE_WRITE_ONCE_MEDIA)
ShowDevPropertyInfo(hListView, 0L, "WRITE_ONCE_MEDIA");
if (dwAddr & FILE_REMOTE_DEVICE)
ShowDevPropertyInfo(hListView, 0L, "REMOTE_DEVICE");
if (dwAddr & FILE_DEVICE_IS_MOUNTED)
ShowDevPropertyInfo(hListView, 0L, "DEVICE_IS_MOUNTED");
if (dwAddr & FILE_VIRTUAL_VOLUME)
ShowDevPropertyInfo(hListView, 0L, "VIRTUAL_VOLUME");
if (dwAddr & FILE_AUTOGENERATED_DEVICE_NAME)
ShowDevPropertyInfo(hListView, 0L, "AUTOGENERATED_DEVICE_NAME");
};
};
if (SetupDiGetDeviceRegistryProperty(hDevInfo,
&spDevInfoData,
SPDRP_DEVTYPE,
0L,
(PBYTE)&dwAddr, //szName,
63,
0))
{
if (dwAddr)
{
ShowDevPropertyInfo(hListView, "Тип пристрою", 0L);
if (dwAddr & FILE_DEVICE_BEEP)
ShowDevPropertyInfo(hListView, 0L, "DEVICE_BEEP");
if (dwAddr & FILE_DEVICE_CD_ROM)