In OS/2, this function fails if called against a window not created through Open32, because it returns class information specific to Open32 window classes.