IDragDropManagerInterop::GetForWindow method (dragdropinterop.h)
Gets a CoreDragDropManager object for the window of the active application.
Syntax
HRESULT GetForWindow(
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(CoreDragDropManager)
ppv
Address of a pointer to a CoreDragDropManager object.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Build 22000 |
Minimum supported server | Windows Build 22000 |
Header | dragdropinterop.h |