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:
01222270
Vues:
20
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!
By two common phrases in his vocabulary, we know Hercule Poirot was a great Developer: his use of "the little grey cells" and "order and method".
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform