Find Jobs
Hire Freelancers

C++ Function: List Drive Letters

$30-100 USD

Cancelled
Posted almost 17 years ago

$30-100 USD

Paid on delivery
Write a C++ DLL function to list all the drive letters that are mounted to the same removable device. **Hints:** Everything you need to complete this project is in this Code Project sample: <[login to view URL]> **int GetSameDeviceLetters(WCHAR drv_letter, PWCHAR result_letters);** **Description: **Find all drive letters that are mounted to the same removable device as drv_letter. Save the result in result_letters. Return the number of drive letters saved in the result_letters parameter. result_letters is guaranteed to be at least 52 bytes (26 WCHARs). **Hints: **The Code Project sample above has everything you need to complete this project. The [login to view URL] values are the same for volumes that belong to the same removable device. Here's how to get the InstanceHandle in the Code Project sample. <[login to view URL]> **Example: **As shown in the "Safely Remove Hardware" window below, G: & F: belong to the same USB Mass Storage Device. I: & H: belong to another USB Mass Storage Device. ![][1] Example 1: WCHAR result_letters[26]; int num = GetSameDeviceLetters(L'G', result_letters); After run: num = 2, result_letters = "GF" Example 2: int num = GetSameDeviceLetters(L'F', result_letters); After run: num = 2, result_letters = "GF" Example 3: int num = GetSameDeviceLetters(L'I', result_letters); After run: num = 2, result_letters = "HI" Example 4: int num = GetSameDeviceLetters(L'H', result_letters); After run: num = 2, result_letters = "HI" ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables): a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform Windows 2000 or above C++ VS2005 a test program shoould be provided to show the dll works as specified
Project ID: 2952946

About the project

4 proposals
Remote project
Active 17 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $31 USD for this job
User Avatar
See private message.
$42.50 USD in 3 days
4.9 (119 reviews)
6.5
6.5
User Avatar
See private message.
$34 USD in 3 days
5.0 (1 review)
1.9
1.9
User Avatar
See private message.
$25.50 USD in 3 days
5.0 (8 reviews)
1.6
1.6
User Avatar
See private message.
$21.25 USD in 3 days
0.0 (1 review)
0.0
0.0

About the client

Flag of HONG KONG
Hong Kong
5.0
23
Member since Nov 20, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.