Returns an approriate window handle for operations that require a window handle.
It takes care that a null handle is returned to prevent error messages if ShowErrorMEssages is set to false.
- p_HandleRequired (Boolean)
- True, if a handle is required.
IntPtr for the window handle or IntPtr.Zero.