Windows uses a HANDLE, which is simply a 32 bit number that refers to an object. Which amongst the following are windows HANDLES ?
(1) HDC
(2) HBRUSH
(3) HMENU
(4) HWND
MH SET - 2018, SET Exam - 2018,
Answer: D
All four are Windows handles: (1), (2), (3) and (4).
In the Windows API a handle is an opaque value that identifies an object managed by the system. HDC is a handle to a device context, HBRUSH to a GDI brush, HMENU to a menu and HWND to a window. All four are handle types defined in the Windows headers.
Any option that leaves out HBRUSH or HMENU (options A, B and C) is incomplete.
Please log in or register to report this question.
