Hi!
I had wrapped MCI with ctypes.
Here, begin of my source :
from ctypes import windll, c_buffer
class mci:
def __init__(self):
self.w32mci = windll.winmm.mciSendStringA
self.w32mcierror = windll.winmm.mciGetErrorStringA
def send(self,commande):
buffer = c_buffer(255)
errorcode = self.w32mci(str(commande),buffer,254,0)
if errorcode: # il y a une erreur
return errorcode, self.w32mcierror(errorcode,buffer,254)
else: # commande Ok retourne 0
return errorcode,buffer.value
@-salutation
MCI (Michel Claveau Informatique)
_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32