Results 1 to 5 of 5

Thread: SHFormatDrive API Question??

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2000
    Posts
    51

    SHFormatDrive API Question??

    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
    Everyone!!! Can I have your attention please?

    Sit back, Relax and watch the world unfold before your very eyes.

    Mystical isn't it, oh well I tried!!!

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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?

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2000
    Posts
    51
    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.
    Everyone!!! Can I have your attention please?

    Sit back, Relax and watch the world unfold before your very eyes.

    Mystical isn't it, oh well I tried!!!

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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.

  5. #5
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    The Netherlands
    Posts
    403
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width