summaryrefslogtreecommitdiffstats
path: root/private/ole32/ih/getif.hxx
blob: 3694ec701ff39324e594ab0990a37ffaee75b35e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//+-------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1992 - 1993.
//
//  File:	getif.hxx
//
//  Contents:	Declaration APIs used to get an interface from a window
//
//  History:	29-Dec-93 Ricksa    Crated
//
//--------------------------------------------------------------------------
#ifndef __GETIF_HXX__
#define __GETIF_HXX__

// Assign an endpoint property to a window so interfaces can be returned
// from properties on the window.
extern "C" HRESULT AssignEndpointProperty(HWND hWnd);

// Remove the end point property from the window
extern "C" HRESULT UnAssignEndpointProperty(HWND hWnd,DWORD* dwAssignAptID);

#define ENDPOINT_PROP_NAME      L"OleEndPointID"

// Get an interface from the property listed on the window
extern "C" GetInterfaceFromWindowProp(
    HWND hWnd,
    REFIID riid,
    IUnknown **ppunk,
    LPOLESTR pwszPropertyName);

#endif // __GETIF_HXX__