PRB: IsGDIObject() Enhanced and Renamed to GetObjectType() (91072)
The information in this article applies to:
- Microsoft Win32 Application Programming Interface (API), when used with:
- Microsoft Windows NT Server 3.5
- Microsoft Windows NT Server 3.51
- Microsoft Windows NT Server 4.0
- Microsoft Windows NT Workstation 3.5
- Microsoft Windows NT Workstation 3.51
- Microsoft Windows NT Workstation 4.0
This article was previously published under Q91072
4.00 | 3.10 3.50 3.51 4.00
WINDOWS | WINDOWS NT
kbgraphic kbprb
SYMPTOMS
In the original version of Win32, there is no IsGdiObject() function in the Win32 API. However, the new function GetObjectType can be used as a replacement for IsGDIObject.
The changes apply to Windows 95 and Windows NT 4.0.
CAUSE
The Windows 3.1 IsGDIObject function has been enhanced and renamed to GetObjectType. In addition to verifying that an object handle refers to a GDI object, GetObjectType also returns a value that describes what kind of object the handle represents.
RESOLUTION
You can use the following macro to aid in porting your programs that were
originally designed for Windows 3.1:
#define IsGDIObject(hobj) ((BOOL)GetObjectType(hobj))
STATUS
This behavior is by design.
Modification Type: | Minor | Last Reviewed: | 2/11/2005 |
---|
Keywords: | kbprb KB91072 |
---|
|