Click to See Complete Forum and Search --> : SHFormatDrive API Question??
pacman429
Nov 2nd, 2001, 12:25 PM
Does anyone out there know of any other way of accessing the format dialog box beside using the SHFormatDrive API. Of what I can see and find this API is only limited to opening the dialog box and not able to control it at all.
Could someone please shed some light on the subject
Thanks in advance
Pacman
Hack
Nov 2nd, 2001, 12:54 PM
I don't know of anyother way, but using the API has always worked for me. I've used this in a couple of applications to give my customers the ability to format diskettes, and it has worked flawlessly. What is it doing, or not doing, when you call it?
pacman429
Nov 2nd, 2001, 01:01 PM
The API call works fine, but I need to be able to control the dialog box a little more, in effect, not requiring user input.
Hack
Nov 2nd, 2001, 01:29 PM
I don't know about that. All the API is doing is the same thing you would do if you used Windows Explorer to call it up. Once its up, then it is its own standalone utility program.
Xa0z
Nov 4th, 2001, 03:22 AM
If it is a standard window you could find the coordinates of the OK button and then send a key_click to the button with the API function Mouse_Event. You could subclass the windows too and then send messages yourself.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.