Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > Help with USB driver

Reply
Thread Tools Display Modes

Help with USB driver

 
 
sam
Guest
Posts: n/a

 
      06-24-2009

Hi

I am a C/C++ programmer and am trying to do windows driver development for
the first time
What I am trying to achieve is the following..
I have a USB mass storage device with two partions on it (one read
only and other read-write).. I want to write a C++ (or C) utility that
can run in user mode and provide me the following information

The drive letters assigned to the two partitions of the USB
Some sort of functionality to change the read-only partition to read-
write and vice versa. ( Not sure if it is do-able in user-mode..)

PS: I want this to work on windows xp sp2 and up..

Any help with this would be greatly appreciated

thanks

 
Reply With Quote
 
 
 
 
Pavel A.
Guest
Posts: n/a

 
      06-24-2009

sam wrote:
> Hi
>
> I am a C/C++ programmer and am trying to do windows driver development for
> the first time
> What I am trying to achieve is the following..
> I have a USB mass storage device with two partions on it (one read
> only and other read-write).. I want to write a C++ (or C) utility that
> can run in user mode and provide me the following information
>
> The drive letters assigned to the two partitions of the USB


A lot of information on this can be found here:
http://www.uwe-sieber.de/usbstick_e.html

> Some sort of functionality to change the read-only partition to read-
> write and vice versa. ( Not sure if it is do-able in user-mode..)


For this, you need a configuration utility from the device manufacturer.


Regards,
--pa
 
Reply With Quote
 
sam
Guest
Posts: n/a

 
      06-24-2009


Hi Pavel
thanks a lot for your reply..
I am still looking for specific windows API's or example code that can
identify the various partitions on the USB and the disk letters associated
with each partition
Also I dont want to use the vendor configuration utility and use only
windows APIs to change the read-only partition to be read-writable.. I want
this functionality to be independent of the vendor. The usb i have is a
general purpose mass storage device..

thanks
Sameer

"Pavel A." wrote:

> sam wrote:
> > Hi
> >
> > I am a C/C++ programmer and am trying to do windows driver development for
> > the first time
> > What I am trying to achieve is the following..
> > I have a USB mass storage device with two partions on it (one read
> > only and other read-write).. I want to write a C++ (or C) utility that
> > can run in user mode and provide me the following information
> >
> > The drive letters assigned to the two partitions of the USB

>
> A lot of information on this can be found here:
> http://www.uwe-sieber.de/usbstick_e.html
>
> > Some sort of functionality to change the read-only partition to read-
> > write and vice versa. ( Not sure if it is do-able in user-mode..)

>
> For this, you need a configuration utility from the device manufacturer.
>
>
> Regards,
> --pa
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hooking video driver functions / communicating between driver and user mode application spujia Windows Vista Drivers 4 10-18-2008 08:03 AM
Not woking Driver Code Signing authenticode but working fine TestCertificate Driver prashantmz@gmail.com Windows Vista Drivers 1 08-29-2008 05:27 AM
asio driver , driver updates for M-Audio Delta rpc1 card Plop Windows Vista Music, Pictures and Video 0 09-26-2006 09:54 PM
Converting Win2k monolithic printer driver to a Longhorn driver - Installation problems Rudy Windows Vista Drivers 0 10-07-2005 11:02 PM
I am developing a virtual sound driver (WDM). My driver will be used as default audio device and I would like to redirect some requests to a real sound card. For this purpose I've planned to use direct irtual sound driver (direct calls to another dr Alexander Windows Vista Drivers 1 05-18-2004 07:37 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59