win32gui.GetObjectType

int = GetObjectType(h)

Returns the type (OBJ_* constant) of a GDI handle

Parameters

h : PyHANDLE

A handle to a GDI object