Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Función/rutina para abrir y cerrar unidad de CD
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01222165
Message ID:
01222272
Views:
18
>No recuerdo de donde lo bajé, pero el siguiente código te sirve para ambas cosas:
>
>
>*!* Automatically open and close the default CD drawer.
>Declare Long mciSendString in winmm as mciSendStringA string lpstrCommand, ;
long lpstrReturnStr, Long wReturnLenLong, Long hCallBack
>local intReturn, nfilehandle
>=mciSendStringA( "Set CDAudio Door Open Wait", 0, 0, 0)
>intReturn = messagebox("Please insert a the CD and click OK", 0, ;
"Unable to locate CD...")
>=mciSendStringA( "Set CDAudio Door Closed Wait", 0, 0, 0)
>
>
>Saludos!

Cool! Gracios <g>
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform