Retriving System Device Icons
-
Hi, I am having problem retriving system device icons, i know there is a function in ddk that allows you to do just that, however i am not sure if i am using it correctly. Can anyone check what is wrong with the function below thanks... or can anyone suggest any other ways of retriving system device icons.. thanks.... int DeviceView::GetClassImage(HIMAGELIST& imagelist) { _SP_CLASSIMAGELIST_DATA *classlist = new _SP_CLASSIMAGELIST_DATA; classlist->cbSize = (BYTE)sizeof(PSP_CLASSIMAGELIST_DATA); if (!SetupDiGetClassImageList(classlist)) { return false; } imagelist = classlist->ImageList; delete classlist; return true; } :-D
-
Hi, I am having problem retriving system device icons, i know there is a function in ddk that allows you to do just that, however i am not sure if i am using it correctly. Can anyone check what is wrong with the function below thanks... or can anyone suggest any other ways of retriving system device icons.. thanks.... int DeviceView::GetClassImage(HIMAGELIST& imagelist) { _SP_CLASSIMAGELIST_DATA *classlist = new _SP_CLASSIMAGELIST_DATA; classlist->cbSize = (BYTE)sizeof(PSP_CLASSIMAGELIST_DATA); if (!SetupDiGetClassImageList(classlist)) { return false; } imagelist = classlist->ImageList; delete classlist; return true; } :-D
classlist->cbSize = sizeof(_SP_CLASSIMAGELIST_DATA);
Five birds are sitting on a fence. Three of them decide to fly off. How many are left?