CreateControlInput function (corewindow.h)
Creates a ICoreInputSourceBase object in the caller’s UI thread.
Syntax
HRESULT CreateControlInput(
[in] REFIID riid,
[out] void **ppv
);
Parameters
[in] riid
Interface ID of the object. Must to be set to the UUID for ICoreInputSourceBase, which is 9F488807-4580-4BE8-BE68-92A9311713BB.
[out] ppv
Pointer to receive the ICoreInputSourceBase object.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This API must be called from the UI thread to create ICoreInputSourceBase object. The object created using this API can be used only in that thread in which it was created.
If the call is successful, the caller can call QueryInterface on the returned ICoreInputSourceBase object to obtain the ICoreInputInterop object that created it.
Requirements
Requirement | Value |
---|---|
Target Platform | Windows |
Header | corewindow.h |
DLL | Windows.UI.Core.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for