IRadialControllerInterop::CreateForWindow method (radialcontrollerinterop.h)

Instantiates a RadialController object and binds it to the active application.

Syntax

HRESULT CreateForWindow(
  HWND   hwnd,
  REFIID riid,
  void   **ppv
);

Parameters

hwnd

Handle to the window of the active application.

riid

The GUID for the resource interface.

The REFIID, or GUID, of the interface to the resource can be obtained by using the __uuidof() macro. For example, __uuidof(IRadialController) will get the GUID of the interface to a buffer resource.

ppv

Address of a pointer to a RadialController object.

Return value

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

Requirements

   
Minimum supported client Windows 10, version 1607 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header radialcontrollerinterop.h

See also

Developer and UX guidance

IRadialControllerInterop

Samples

Surface Dial interactions

Universal Windows Platform samples (C# and C++)

Windows classic desktop sample