IDataTransferManagerInterop::GetForWindow method
Gets the DataTransferManager instance for the specified window.
Syntax
HRESULT GetForWindow( [in] HWND appWindow, [in] REFIID riid, [out, optional] void **dataTransferManager );
Parameters
- appWindow [in]
-
The window whose DataTransferManager instance is to be retrieved.
- riid [in]
-
The requested interface ID of the DataTransferManager instance.
- dataTransferManager [out, optional]
-
Receives the DataTransferManager instance.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
This method is equivalent to the DataTransferManager.GetForCurrentView method, except that you specify a window from a multi-window Windows Store app.
Requirements
|
Minimum supported client |
Windows 8 [Windows Store apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2012 [Windows Store apps only] |
|
Header |
|
|
IDL |
|
See also
Show: