Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

CD or DVD Drive access on Desktop

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2010, 11:17 AM
Basic4ppc Veteran
 
Join Date: May 2008
Location: Newcastle Upon Tyne - England
Posts: 271
Awards Showcase
Beta Tester 
Total Awards: 1
Default CD or DVD Drive access on Desktop

I would like to be able to send an 'Eject Media' command to an optical drive (although there are also open & close commands too) and also lock the drive; so pressing the eject button is ignored.

I thought having a file open for writing would acomplish the latter, however pressing the button opens the drive and then I get a 'delayed write failure'

Many Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-12-2010, 03:49 PM
ExcludeReality's Avatar
Senior Member
 
Join Date: Nov 2008
Location: Greenville, South Carolina
Posts: 166
Default

You can make a simple VBScript to eject the CD drive, and then run it from your application.
There's a small delay and it doesn't give you full control, but it was all I could think of.

The forum wouldn't let me post a .vbs file so you'll have to rename this text file to *.vbs
Attached Files
File Type: txt Access CD Drive.txt (190 Bytes, 8 views)
__________________
Codito, ergo sum
"I code, therefore I am"
Reply With Quote
  #3 (permalink)  
Old 04-16-2010, 06:06 PM
mhc mhc is offline
Junior Member
 
Join Date: Jan 2009
Location: Austria
Posts: 41
Awards Showcase
Beta Tester 
Total Awards: 1
Default

You are looking for something like this (attached file)?
It was written in Delphi.
I'm not sure whether B4PPC can handle mciSendString commands.
And what's about WM_ messages and API commands?

Please note that right clicking on the icon in the tray will show a small popup.
You can select locking the CD-Caddy. But this will only prevent to open the caddy via the icon in the tray. Not openning the caddy with the hardware button.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Device with USB hard drive link dan kabestan Questions (Windows Mobile) 3 08-11-2008 11:47 PM
Drive Detection RandomCoder Questions (Windows Mobile) 9 07-04-2008 11:59 AM
drive, file list boxes scott93727 Basic4ppc Wishlist 0 06-22-2008 01:35 AM
int 13 drive 0 bad sector problems scott93727 Questions (Windows Mobile) 1 04-11-2008 09:26 AM
Outlook Access on Desktop too, please csandman Basic4ppc Wishlist 1 10-02-2007 10:42 AM


All times are GMT. The time now is 10:48 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0