Sorry for not including the API declaration and the constants but i haven't written code in VB for a month.I am using VC++ right now and in VC++ these things don't have to be declared.