topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 3:49 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: micro Tool contribution that list all connected Drives  (Read 16076 times)

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
micro Tool contribution that list all connected Drives
« on: June 13, 2018, 02: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.JPGmicro Tool contribution that list all connected Drives

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, 04:07 AM by KodeZwerg »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #1 on: June 13, 2018, 02: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
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #2 on: June 13, 2018, 02: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
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #3 on: June 14, 2018, 06: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
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #4 on: June 14, 2018, 07:04 PM »
an updated Version is avail in Post #1,
Thanks  :Thmbsup:

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #5 on: June 15, 2018, 04: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,959
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #6 on: June 15, 2018, 04: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
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #7 on: June 15, 2018, 09:57 AM »
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, 10:22 AM by KodeZwerg »

Tuxman

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,466
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #8 on: June 16, 2018, 06:17 PM »
you have a few months to wait until its open.

Ha!

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #9 on: June 17, 2018, 03:29 AM »
Requiring admin rights can be requested by including the proper manifest setting, without admin rights it now just throws an errormessage.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,612
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #10 on: June 17, 2018, 03:48 AM »
Additional info: Here is a S.O. link on how to add the UAC prompt to you Delphi application: https://stackoverflo...admin-rights-request

KodeZwerg

  • Honorary Member
  • Joined in 2018
  • **
  • Posts: 718
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #11 on: June 17, 2018, 04:24 AM »
On request added UAC Manifest with requestedExecutionLevel level="requireAdministrator".
Fresh Version in Post #1 avail. Thanks for suggestion!

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,286
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #12 on: December 31, 2018, 11:44 AM »
@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:

System Error.  Code: 5.
Access is denied.

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #13 on: December 31, 2018, 05:27 PM »
FYI

Kaspersky says

The requested URL cannot be provided

Object URL:

https://www.donation...5728.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

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,641
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #14 on: December 31, 2018, 05: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).

wraith808

  • Supporting Member
  • Joined in 2006
  • **
  • default avatar
  • Posts: 11,186
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #15 on: January 01, 2019, 12: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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,641
    • View Profile
    • Donate to Member
Re: micro Tool contribution that list all connected Drives
« Reply #16 on: January 01, 2019, 10:51 PM »
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.