Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retriving System Device Icons

Retriving System Device Icons

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 404410
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • U User 404410

      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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      classlist->cbSize = sizeof(_SP_CLASSIMAGELIST_DATA);


      Five birds are sitting on a fence. Three of them decide to fly off. How many are left?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups