HOBJECT hObject; /* Object handle */ BOOL bSuccess; /* Success flag */ bSuccess = WinDestroyObject(hObject); /* Destroy object */