Machine-translated by Google. Questions are authored in English.
Top

Discussion

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

  • A.(1), (2) and (4)
  • B.(1), (3) and (4)
  • C.(1) and (4)
  • D.(1), (2), (3) and (4)

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.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.