SlySoft Forum   SlySoft Home

Go Back   SlySoft Forum > Software Talk (english) > Virtual CloneDrive

Reply
 
Thread Tools Display Modes
  #1  
Old 20th September 2012, 07:25
Wurzel Wurzel is offline
Junior Member
 
Join Date: Sep 2012
Location: Newcastle
Posts: 3
Default Is there an API for VCD?

Hi,

I am writing a WPF program that will use VCD to mount ISO's. While I can get the basic's working I would like to add some slightly more advanced functionality including drive checks and error handling.

Thanks
Reply With Quote
  #2  
Old 20th September 2012, 18:59
James James is offline
SlySoft Development Team
 
Join Date: Oct 2005
Posts: 15,675
Default

Quote:
Originally Posted by Wurzel View Post
Hi,

I am writing a WPF program that will use VCD to mount ISO's. While I can get the basic's working I would like to add some slightly more advanced functionality including drive checks and error handling.

Thanks
There is the "vcdmount.exe" utility, which lets you mount / unmount / eject / open & close the drive door (of every drive, not only vcd).

type "start vcdmount" from a command prompt for a brief help.
__________________
My responses tend to represent myself only and do not necessarily represent the views of SlySoft, Inc. PLEASE POST ALL TECHNICAL PROBLEMS ON THE FORUMS. Thank you.
Reply With Quote
  #3  
Old 24th September 2012, 04:52
Wurzel Wurzel is offline
Junior Member
 
Join Date: Sep 2012
Location: Newcastle
Posts: 3
Default

Quote:
Originally Posted by James View Post
There is the "vcdmount.exe" utility, which lets you mount / unmount / eject / open & close the drive door (of every drive, not only vcd).

type "start vcdmount" from a command prompt for a brief help.
Hi

Thanks for your reply.

This is what I am using at the moment. While it does do the things I want it to do I do run into a few problems.

For example.

The first thing my program does is issue an unmount command regardless of anything being mounted (its easier than trying to work out if something is already mounted). Then it mounts the ISO I am interested in and runs a program on that drive. The trouble is if there is an ISO mounted it unmounts, mounts but shows an error when running the program (Drive not ready, or words to that effect). This only happens if an ISO is already mounted. My program does wait for each of the command to complete before moving on so I assume there is a delay in the drive being ready when I have to do an unmount then mount. I have tried to put a sleep in my program so it waits a while but I still get the same problem. When the error is displayed I get a few buttons. Continue, Retry, Cancel, Abort. If I hit retry it continues as expected.

An API with the right functions would let me query the drives state to see if it is ready for me to move on to the next stage.

Wurz
Reply With Quote
  #4  
Old 24th September 2012, 07:10
James James is offline
SlySoft Development Team
 
Join Date: Oct 2005
Posts: 15,675
Default

Quote:
Originally Posted by Wurzel View Post
Hi

Thanks for your reply.

This is what I am using at the moment. While it does do the things I want it to do I do run into a few problems.

For example.

The first thing my program does is issue an unmount command regardless of anything being mounted (its easier than trying to work out if something is already mounted). Then it mounts the ISO I am interested in and runs a program on that drive. The trouble is if there is an ISO mounted it unmounts, mounts but shows an error when running the program (Drive not ready, or words to that effect). This only happens if an ISO is already mounted. My program does wait for each of the command to complete before moving on so I assume there is a delay in the drive being ready when I have to do an unmount then mount. I have tried to put a sleep in my program so it waits a while but I still get the same problem. When the error is displayed I get a few buttons. Continue, Retry, Cancel, Abort. If I hit retry it continues as expected.

An API with the right functions would let me query the drives state to see if it is ready for me to move on to the next stage.

Wurz
Windows offers you an API to detect, if a disc has arrived or has been removed. You'll receive a WM_DEVICECHANGE message, this should be easy to process.
__________________
My responses tend to represent myself only and do not necessarily represent the views of SlySoft, Inc. PLEASE POST ALL TECHNICAL PROBLEMS ON THE FORUMS. Thank you.
Reply With Quote
  #5  
Old 24th September 2012, 11:01
Wurzel Wurzel is offline
Junior Member
 
Join Date: Sep 2012
Location: Newcastle
Posts: 3
Default

Quote:
Originally Posted by James View Post
Windows offers you an API to detect, if a disc has arrived or has been removed. You'll receive a WM_DEVICECHANGE message, this should be easy to process.
This was the first thing I tried. Unfortunately this gives me a device ready but the error still appears. It is as if there is a slight delay in the OS thinking everything is ready and the drive actually being ready.

I have now got a bit of a work around, its not pretty but it works!
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

Forum Jump


All times are GMT -4. The time now is 15:42.


All trademarks are the property of their respective owners.
© 2007–2013 SlySoft Inc.