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
P

pacchij

@pacchij
About
Posts
6
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit?
    P pacchij

    HI Aseem, Good to know that you solved your issue. alternatively you can elevate run prompt from Task Manager. Go to TaskManager click on Processes Tab Click on Show process from All users Go to File Menu->New Task This allows the execute command in admin mode. Thanks Prashanth

    ATL / WTL / STL c++ help question com tools

  • Problem in registering a 32 bit C++ COM/ATL Service on Windows7 64 bit?
    P pacchij

    Did you install your service first? How was your service is installed in XP 32? Service is installed with CreateSerice() API. Check out how this was handled in XP 32 case. You can have your own logs during CreateService() API and see what went wrong in Win7 x64. I am not sure why you need to copy the MyService.exe in SysWow64 folder. Your service Dll\EXE can be anywhere.

    -Prashanth Jaligama

    ATL / WTL / STL c++ help question com tools

  • How to check the memory leak
    P pacchij

    Generally I prefer UMDH. Its free from microsoft and works great. We can customize memory leak detections to some UI operations, a DLL.

    C / C++ / MFC performance tutorial question

  • How to get PNP Device Id
    P pacchij

    HI David, thanks for all your pointers. I am able to successfully enumerate volumes and their corresponding Device information using SetupDI functions. 1. SetupDI functions will list all devices for given class guid, such as disks, cdroms, volumes. We can also query for its device number using IOCTL_STORAGE_GET_DEVICE_NUMBER. 2. Separately, all volumes can be retrieved using windows APIs, such as GetLogicalDrives, and then we can also query its device number using same IOCTL_STORAGE_DEVICE_NUMBER on drive letter (ex: \\\\?\\c:). Now I mapped device number in setupDI with the device number retrieved using volumes functions, which allows me to get both volume information and also its corresponding device information. Of course, device number does not persist across boots, but my little software will keep refresh to map volume drives and its corresponding device info. thanks- Prashanth Jaligama

    C / C++ / MFC question c++ sysadmin windows-admin json

  • How to get PNP Device Id
    P pacchij

    Thanks david for quick reply. I was able to enumerate all the device ID's with the above calls. Definitely this is good progress for what I am looking. However, none of the API's are actually refering the device id to the respective volume drives. For example, if I could enumerate CDRom drives device id's, there is no way to know their volume drive letters. In other way, volume information and corresponding device info are not related with these API's. If you open "Device Manager" and select any disc drive, open properties and then volumes tab, this will not list all the volumes by default. However when you select "Populate", it is displaying all the volumes in the respective drive. This is what exactly I am looking. Either I should know volumes mounted on particular "Device ID" (or) get the device id for a given volume letter. I dont know how "device manager" is populating drives with the device id? Any thoughts or pointers? Thanks- Prashanth Jaligama

    C / C++ / MFC question c++ sysadmin windows-admin json

  • How to get PNP Device Id
    P pacchij

    Thanks david for quick answer. I was looking for PNP functions and references you pointed. Definitely these API's looks promising to find PNP device Id. However, how I can map my volume (drive letter) to its PNP device Id. neither of functions actually refer for volume drive letter. thanks- Prashanth

    C / C++ / MFC question c++ sysadmin windows-admin json
  • Login

  • Don't have an account? Register

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