VirtualBox

source: vbox/trunk/src/VBox/Installer/win/AutoStartMenu/OleClientSite.h@ 31659

Last change on this file since 31659 was 31659, checked in by vboxsync, 14 years ago

export Windows installer to OSE

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1
2#ifndef __OLE_CLIENT_SIDE__
3#define __OLE_CLIENT_SIDE__
4
5#include <windows.h>
6#include <ExDisp.h>
7#include <mshtml.h>
8#include <mshtmhst.h>
9#include <oaidl.h>
10
11class OleClientSite : public IOleClientSite
12{
13
14 IOleInPlaceSite * in_place_ ;
15 IDocHostUIHandler * doc_host_ui_handler_ ;
16 DWebBrowserEvents2 * web_browser_events_ ;
17
18public:
19
20 OleClientSite (
21 IOleInPlaceSite* in_place,
22 IDocHostUIHandler* doc_host_ui_handler,
23 DWebBrowserEvents2* web_browser_events);
24
25
26 HRESULT STDMETHODCALLTYPE QueryInterface( REFIID riid, void ** ppvObject);
27
28 ULONG STDMETHODCALLTYPE AddRef()
29 {
30 return(1);
31 }
32
33 ULONG STDMETHODCALLTYPE Release()
34 {
35 return(1);
36 }
37
38 HRESULT STDMETHODCALLTYPE SaveObject()
39 {
40 MUST_BE_IMPLEMENTED("SaveObject")
41 }
42
43 HRESULT STDMETHODCALLTYPE GetMoniker( DWORD dwAssign, DWORD dwWhichMoniker, IMoniker ** ppmk)
44 {
45 MUST_BE_IMPLEMENTED("GetMoniker")
46 }
47
48 HRESULT STDMETHODCALLTYPE GetContainer( LPOLECONTAINER FAR* ppContainer)
49 {
50 // No container in sight....
51 *ppContainer = 0;
52
53 return(E_NOINTERFACE);
54 }
55
56 HRESULT STDMETHODCALLTYPE ShowObject()
57 {
58 return(NOERROR);
59 }
60
61 HRESULT STDMETHODCALLTYPE OnShowWindow( BOOL fShow)
62 {
63 MUST_BE_IMPLEMENTED("OnShowWindow")
64 }
65
66 HRESULT STDMETHODCALLTYPE RequestNewObjectLayout()
67 {
68 MUST_BE_IMPLEMENTED("RequestNewObjectLayout")
69 }
70};
71
72#endif
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette