Find Jobs
Hire Freelancers

C++ Function: List Drive Letters(repost)

$30-100 USD

Cancelado
Publicado hace alrededor de 17 años

$30-100 USD

Pagado a la entrega
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 (case-insensitive). 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. You do NOT need to research new methods. Just use the method in the sample which is proven to work and save you time! In the sample, the [login to view URL] values are the same for volumes that belong to the same parent removable device. You can take advantage of this information to determine if 2 drive letters belong to the same parent device. Here's how to get the InstanceHandle in the Code Project sample: <[login to view URL]> ## Deliverables **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" **Test program **A simple command line test program should be delivered. The program should call the C++ function and print out the results. For example, in the above examples, the output would look like this (assuming the test program is called [login to view URL]): C:\>test g GF C:\>test G GF C:\>test f GF C:\>test i HI C:\>test h HI ==== 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
ID del proyecto: 2958347

Información sobre el proyecto

3 propuestas
Proyecto remoto
Activo hace 17 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
3 freelancers están ofertando un promedio de $37 USD por este trabajo
Avatar del usuario
See private message.
$42,50 USD en 1 día
5,0 (571 comentarios)
7,2
7,2
Avatar del usuario
See private message.
$42,50 USD en 1 día
4,9 (119 comentarios)
6,5
6,5
Avatar del usuario
See private message.
$25,49 USD en 1 día
5,0 (15 comentarios)
4,0
4,0

Sobre este cliente

Bandera de HONG KONG
Hong Kong
5,0
23
Miembro desde nov 20, 2003

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.