DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: micro Tool contribution that list all connected Drives  (Read 27,442 times)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
micro Tool contribution that list all connected Drives
« on: June 13, 2018, 07:28 AM »
Hi there,
heres a small Tool that will List all connected Drives/Partitions with its proper Drivenumber.
My goal was to achive "On wich Drive is a Partition hosted".

Screenshot: Preview_DiskDrive.JPG

Full Delphi Source included, have fun!

*updated the DriveType, sorry i used outdated function, now correct Winapi used.
*corrected integer <> cardinal type issue
*corrected CDDrive to Drive #255 (<- this feature needs inserted media to properly work)
*added Bustype to seperate Usb-Drives and Internal (both are of kind "Fixed")
*corrected Display formatting

Download with Full Delphi Source is up again, sorry for earlier Release!

Forgot to mention, this tool need admin-rights to properly work!
*added UAC Manifest with requestedExecutionLevel level="requireAdministrator"

I am more than sorry, another Integer<>Cardinal issue fixed and upgraded Bustypes to all current possibilities (Sd, Mmc, Virtual etc)

Included Binary compiled with Delphi 2009.
« Last Edit: June 19, 2018, 09:07 AM by KodeZwerg »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: micro Tool contribution that list all connected Drives
« Reply #1 on: June 13, 2018, 07:31 AM »
Hi KodeZwerg -- I'm happy to see you are going to contribute to NANY event.

But you've posted in the NANY 2018 section -- but the NANY 2018 event is over.  What you want to do is wait until NANY 2019, which will probably be opened up around september or so.

Not an uncommon mistake, it can be confusing how we call these things.  Bottom line, NANY 2019 is our next event and you have a few months to wait until its open.

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #2 on: June 13, 2018, 07:43 AM »
Ohhh... than sorry me and the other Post by me, you can keep files, its free for all :)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #3 on: June 14, 2018, 11:02 PM »
If anyone interested, an updated Version is avail in Post #1, should be final i hope :-)

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: micro Tool contribution that list all connected Drives
« Reply #4 on: June 15, 2018, 12:04 AM »
an updated Version is avail in Post #1,
Thanks  :Thmbsup:
Chris

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #5 on: June 15, 2018, 09:30 AM »
Sorry, needed another Post #1 update, last time i hope :-[

*fixed another Integer<>Cardinal issue :'(
*removed 700kb Icon-Data :o
*added all missing Bustypes :(

tomos

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 11,970
    • Gathering Badge
    • Participated in NANY Challenge Once
Re: micro Tool contribution that list all connected Drives
« Reply #6 on: June 15, 2018, 09:33 AM »
Sorry, needed another Post #1 update, last time i hope :-[

it's very good to see something being updated :Thmbsup:
look at mouser's software, he never stops updating the stuff :)
Tom

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #7 on: June 15, 2018, 02:57 PM »
Aslong its useful to anyone i try "to give working code", for myself its just educational.
Feel free to use code in your own projects, you are welcome! (Delphi or compatible required)
One little fix needs to be done, if CDDRIVE has no Disc, the Display is wrong, rest should be final.
I dont know yet if i'll update it, seems unneccessary.
btw. if anyone find anything could be done better or a bug, i am open for such, just tell  :D
« Last Edit: June 15, 2018, 03:22 PM by KodeZwerg »

Tuxman

  • OMG not him again!
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,522
    • Participated in NANY Challenge Seven Times
Re: micro Tool contribution that list all connected Drives
« Reply #8 on: June 16, 2018, 11:17 PM »
you have a few months to wait until its open.

Ha!
I bet when Cheetahs race and one of them cheats, the other one goes "Man, you're such a Cheetah!" and they laugh & eat a zebra or whatever.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: micro Tool contribution that list all connected Drives
« Reply #9 on: June 17, 2018, 08:29 AM »
Requiring admin rights can be requested by including the proper manifest setting, without admin rights it now just throws an errormessage.
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: micro Tool contribution that list all connected Drives
« Reply #10 on: June 17, 2018, 08:48 AM »
Additional info: Here is a S.O. link on how to add the UAC prompt to you Delphi application: https://stackoverflow.com/questions/14703013/adding-manifest-for-admin-rights-request
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • Participated in NANY Challenge Four Times
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #11 on: June 17, 2018, 09:24 AM »
On request added UAC Manifest with requestedExecutionLevel level="requireAdministrator".
Fresh Version in Post #1 avail. Thanks for suggestion!

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Re: micro Tool contribution that list all connected Drives
« Reply #12 on: December 31, 2018, 05:44 PM »
@KodeZwerg: Thank you for the contribution to this year's NANY!

Unfortunately, when I run the file, I get the following error after clicking the "Collect connected Devices" button:

Code
System Error.  Code: 5.
Access is denied.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: micro Tool contribution that list all connected Drives
« Reply #13 on: December 31, 2018, 11:27 PM »
FYI

Kaspersky says

The requested URL cannot be provided

Object URL:

https://www.donationcoder.com/forum/index.php?action=dlattach;topic=45728.0;attach=105269

contains legitimate software that can be used by criminals to damage your computer or personal data

not-a-virus:HEUR:AdWare.Win32.DealPly.gen
Chris

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #14 on: December 31, 2018, 11:49 PM »
2019-01-01 10_41_27-DriveLetter Enumeration.png

Bit of everything there: 3 x SATA SSD (C,G,V,P,X), 3 x SATA HDD (D,Q,Z), NVMe SSD on PCIe adapter (T), Cloud sync (E), and RAM drive (K).
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 11,205
    • Participated in NANY Challenge Fourteen Times
    • Coding Snacks
    • Writer
    • Hardware Hacker
Re: micro Tool contribution that list all connected Drives
« Reply #15 on: January 01, 2019, 06:20 AM »
I thought I'd posted this, but KodeZwerg seems not to have been on since he announced he was going on vacation back on the 7th.  I hope everything is ok.

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: micro Tool contribution that list all connected Drives
« Reply #16 on: January 02, 2019, 04:51 AM »
Interestingly, a manual MBAM scan on the archive yesterday said it was fine, today the scheduled scan marked it as:

MachineLearning/Anomalous.94%

ie. They don't know what it's doing other than retrieving some info.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Original address: https://www.donationcoder.com/forum/index.php?topic=45728.0