Add adshlp.h to declare the ADs* functions. Fix the ADsOpenObject() prototype. Update win32.api to match.