Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1000 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1993.
  5. //
  6. // File: getif.hxx
  7. //
  8. // Contents: Declaration APIs used to get an interface from a window
  9. //
  10. // History: 29-Dec-93 Ricksa Crated
  11. //
  12. //--------------------------------------------------------------------------
  13. #ifndef __GETIF_HXX__
  14. #define __GETIF_HXX__
  15. // Assign an endpoint property to a window so interfaces can be returned
  16. // from properties on the window.
  17. extern "C" HRESULT AssignEndpointProperty(HWND hWnd);
  18. // Remove the end point property from the window
  19. extern "C" HRESULT UnAssignEndpointProperty(HWND hWnd,DWORD* dwAssignAptID);
  20. #define ENDPOINT_PROP_NAME L"OleEndPointID"
  21. // Get an interface from the property listed on the window
  22. extern "C" GetInterfaceFromWindowProp(
  23. HWND hWnd,
  24. REFIID riid,
  25. IUnknown **ppunk,
  26. LPOLESTR pwszPropertyName);
  27. #endif // __GETIF_HXX__