>I receive 'Cannot find entry point SHOWWINDOW in the DLL.' Has it been removed by any chance in XP? Same thing happens with the SETFOCUS declaration...
Nope, as was mentioned the declarations are case sensitive. Further, because SetFocus is a VFP method, you've got to give the API function an alias, hence the use of SetKeybdFocus.
While keybd_event has been superseded by SendInput in NT and above, it still works.
George
Ubi caritas et amor, deus ibi est