Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Función/rutina para abrir y cerrar unidad de CD
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01222165
Message ID:
01222272
Vues:
15
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform