ICameraUIControl::Show method (camerauicontrol.h)

Displays the user interface control for the camera.

Syntax

HRESULT Show(
  [in] IUnknown                           *pWindow,
  [in] CameraUIControlMode                mode,
       CameraUIControlLinearSelectionMode selectionMode,
  [in] CameraUIControlCaptureMode         captureMode,
  [in] CameraUIControlPhotoFormat         photoFormat,
  [in] CameraUIControlVideoFormat         videoFormat,
  [in] BOOL                               bHasCloseButton,
  [in] ICameraUIControlEventCallback      *pEventCallback
);

Parameters

[in] pWindow

Pointer to the user interface window.

[in] mode

Specifies whether the user interface will be presented in a browseable or linear manner.

selectionMode

Specifies the selection mode.

[in] captureMode

Specifies whether the user interface that will be shown allows the user to capture a photo, capture a video, or either.

[in] photoFormat

Provides the format for capturing photos. The available formats include JPEG, PNG, and JPEG XR.

[in] videoFormat

Provides the format for capturing videos. The available formats include MP4 and WMV.

[in] bHasCloseButton

TRUE if the user interface has a close button, otherwise, FALSE.

[in] pEventCallback

Pointer to an event callback for the dialog. The callback is invoked if an item is captured or deleted, and when the dialog starts, or is closed or suspended.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps | UWP apps]
Minimum supported server None supported
Target Platform Windows
Header camerauicontrol.h

See also

ICameraUIControl