topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • August 17, 2018, 06:24 PM
  • Proudly celebrating 13 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 694 times)

KodeZwerg

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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: 38,792
    • 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

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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,642
    • 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

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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,290
    • 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

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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,041
    • 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,217
    • 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,217
    • 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

  • Member
  • Joined in 2018
  • **
  • Posts: 129
    • 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!