GetObjectType function
Applies to: desktop apps only
The GetObjectType retrieves the type of the specified object.
Syntax
DWORD GetObjectType( __in HGDIOBJ h );
Parameters
- h [in]
-
A handle to the graphics object.
Return value
If the function succeeds, the return value identifies the object. This value can be one of the following.
| Value | Meaning |
|---|---|
| OBJ_BITMAP | Bitmap |
| OBJ_BRUSH | Brush |
| OBJ_COLORSPACE | Color space |
| OBJ_DC | Device context |
| OBJ_ENHMETADC | Enhanced metafile DC |
| OBJ_ENHMETAFILE | Enhanced metafile |
| OBJ_EXTPEN | Extended pen |
| OBJ_FONT | Font |
| OBJ_MEMDC | Memory DC |
| OBJ_METAFILE | Metafile |
| OBJ_METADC | Metafile DC |
| OBJ_PAL | Palette |
| OBJ_PEN | Pen |
| OBJ_REGION | Region |
If the function fails, the return value is zero.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012