' ########################################################################################
' Microsoft Windows
' File: DocObj.inc
' Contents: Master include file for DAO 3.6
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_DocObj_PBI)
#DEFINE PBX_DocObj_PBI
%EQUATE `DOCOBJ_INC = 1
%EQUATE `DOCOBJ_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OCIdl.inc"
'//--------------------------------------------------------------------------
'// OLE Document Object Interfaces.
'////////////////////////////////////////////////////////////////////////////
'// Interface Definitions
' ########################################################################################
' IOleDocument interface
' IID = b722bcc5-4e68-101b-a2bc-00aa00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IOleDocument_INTERFACE_DEFINED)
 %IOleDocument_INTERFACE_DEFINED = 1
' DOCMISC enum
%EQUATE `DOCMISC_CANCREATEMULTIPLEVIEWS = 1
%EQUATE `DOCMISC_SUPPORTCOMPLEXRECTANGLES = 2
%EQUATE `DOCMISC_CANTOPENEDIT = 4
%EQUATE `DOCMISC_NOFILESUPPORT = 8
$IID_IOleDocument = GUID$("{B722BCC5-4E68-101B-A2BC-00AA00404770}")
$IID_IMsoDocument = $IID_IOleDocument
INTERFACE IOleDocument $IID_IOleDocument
 INHERIT IUnknown
 ' =====================================================================================
 METHOD CreateView ( ' VTable offset = 12
 BYVAL pIPSite AS IOleInPlaceSite
 , BYVAL pstm AS IStream
 , BYVAL dwReserved AS DWORD
 , BYREF ppView AS IOleDocumentView
 ) AS LONG
 ' =====================================================================================
 METHOD GetDocMiscStatus ( ' VTable offset = 16
 BYREF pdwStatus AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD EnumViews ( ' VTable offset = 20
 BYREF ppEnum AS IEnumOleDocumentViews
 , BYREF ppView AS IOleDocumentView
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IOleDocument_INTERFACE_DEFINED__ */
' ########################################################################################
' IOleDocumentSite interface
' IID = b722bcc7-4e68-101b-a2bc-00aa00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IOleDocumentSite_INTERFACE_DEFINED)
 %IOleDocumentSite_INTERFACE_DEFINED = 1
$IID_IOleDocumentSite = GUID$("{B722BCC7-4E68-101B-A2BC-00AA00404770}")
$IID_IMsoDocumentSite = $IID_IOleDocumentSite
INTERFACE IOleDocumentSite $IID_IOleDocumentSite
 INHERIT IUnknown
 ' =====================================================================================
 METHOD ActivateMe ( ' VTable offset = 12
 BYVAL pdwStatus AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IOleDocumentSite_INTERFACE_DEFINED__ */
' ########################################################################################
' IOleDocumentView interface
' IID = b722bcc6-4e68-101b-a2bc-00aa00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IOleDocumentView_INTERFACE_DEFINED)
 %IOleDocumentView_INTERFACE_DEFINED = 1
$IID_IOleDocumentView = GUID$("{B722BCC6-4E68-101B-A2BC-00AA00404770}")
$IID_IMsoView = $IID_IOleDocumentView
INTERFACE IOleDocumentView $IID_IOleDocumentView
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetInPlaceSite ( ' VTable offset = 12
 BYVAL pIPSite AS IOleInPlaceSite
 ) AS LONG
 ' =====================================================================================
 METHOD GetInPlaceSite ( ' VTable offset = 16
 BYREF ppIPSite AS IOleInPlaceSite
 ) AS LONG
 ' =====================================================================================
 METHOD GetDocument ( ' VTable offset = 20
 BYREF ppunk AS IUnknown
 ) AS LONG
 ' =====================================================================================
 METHOD SetRect ( ' VTable offset = 24
 BYREF prcView AS RECT
 ) AS LONG
 ' =====================================================================================
 METHOD GetRect ( ' VTable offset = 28
 BYREF prcView AS RECT
 ) AS LONG
 ' =====================================================================================
 METHOD SetRectComplex ( ' VTable offset = 32
 BYREF prcView AS RECT
 , BYREF prcHScroll AS RECT
 , BYREF prcVScroll AS RECT
 , BYREF prcSizeBox AS RECT
 ) AS LONG
 ' =====================================================================================
 METHOD Show ( ' VTable offset = 36
 BYVAL fShow AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD UIActivate ( ' VTable offset = 40
 BYVAL fUIActivate AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD Open ( ' VTable offset = 44
 ) AS LONG
 ' =====================================================================================
 METHOD CloseView ( ' VTable offset = 48
 BYVAL dwReserved AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD SaveViewState ( ' VTable offset = 52
 BYVAL pstm AS IStream
 ) AS LONG
 ' =====================================================================================
 METHOD ApplyViewState ( ' VTable offset = 56
 BYVAL pstm AS IStream
 ) AS LONG
 ' =====================================================================================
 METHOD Clone ( ' VTable offset = 60
 BYVAL pIPSiteNew AS IOleInPlaceSite
 , BYREF ppViewNew AS IOleDocumentView
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IOleDocumentView_INTERFACE_DEFINED__ */
' ########################################################################################
' IEnumOleDocumentViews interface
' IID = B722BCC8-4E68-101B-A2BC-00AA00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IEnumOleDocumentViews_INTERFACE_DEFINED)
 %IEnumOleDocumentViews_INTERFACE_DEFINED = 1
$IID_IEnumOleDocumentViews = GUID$("{B722BCC8-4E68-101B-A2BC-00AA00404770}")
$IID_IEnumMsoView = $IID_IEnumOleDocumentViews
INTERFACE IEnumOleDocumentViews $IID_IEnumOleDocumentViews
 INHERIT IUnknown
 ' =====================================================================================
 METHOD Next ( ' VTable offset = 12
 BYVAL cViews AS DWORD
 , BYREF rgelt AS IOleDocumentView
 , BYREF pcFetched AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD Skip ( ' VTable offset = 16
 BYVAL celt AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD Reset ( ' VTable offset = 20
 ) AS LONG
 ' =====================================================================================
 METHOD Clone ( ' VTable offset = 24
 BYREF ppenum AS IEnumOleDocumentViews
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IEnumOleDocumentViews_INTERFACE_DEFINED__ */
' ########################################################################################
' IContinueCallback interface
' IID = B722BCCA-4E68-101B-A2BC-00AA00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IContinueCallback_INTERFACE_DEFINED)
 %IContinueCallback_INTERFACE_DEFINED = 1
$IID_IContinueCallback = GUID$("{B722BCCA-4E68-101B-A2BC-00AA00404770}")
INTERFACE IContinueCallback $IID_IContinueCallback
 INHERIT IUnknown
 ' =====================================================================================
 METHOD FContinue ( ' VTable offset = 12
 ) AS LONG
 ' =====================================================================================
 METHOD FContinuePrinting ( ' VTable offset = 16
 BYVAL nCntPrinted AS LONG
 , BYVAL nCurPage AS LONG
 , BYREF pwszPrintStatus AS WSTRINGZ
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IContinueCallback_INTERFACE_DEFINED__ */
' ########################################################################################
' IPrint interface
' IID = b722bcc9-4e68-101b-a2bc-00aa00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IPrint_INTERFACE_DEFINED)
 %IPrint_INTERFACE_DEFINED = 1
' PRINTFLAG enum
%EQUATE `PRINTFLAG_MAYBOTHERUSER = 1
%EQUATE `PRINTFLAG_PROMPTUSER = 2
%EQUATE `PRINTFLAG_USERMAYCHANGEPRINTER = 4
%EQUATE `PRINTFLAG_RECOMPOSETODEVICE = 8
%EQUATE `PRINTFLAG_DONTACTUALLYPRINT = 16
%EQUATE `PRINTFLAG_FORCEPROPERTIES = 32
%EQUATE `PRINTFLAG_PRINTTOFILE = 64
' // Size = 8 bytes
TYPE PAGERANGE DWORD
 nFromPage AS LONG ' LONG nFromPage
 nToPage AS LONG ' LONG nToPage
END TYPE
' // Size = 24 bytes
TYPE PAGESET DWORD
 cbStruct AS DWORD ' ULONG cbStruct
 fOddPages AS LONG ' BOOL fOddPages
 fEvenPages AS LONG ' BOOL fEvenPages
 cPageRange AS DWORD ' ULONG cPageRange
 rgPages AS PAGERANGE PTR ' /* [size_is] */ PAGERANGE rgPages[ 1 ]
END TYPE
%EQUATE `PAGESET_TOLASTPAGE = &HFFFF ' ((WORD)(-1L))
$IID_IPrint = GUID$("{B722BCC9-4E68-101B-A2BC-00AA00404770}")
INTERFACE IPrint $IID_IPrint
 INHERIT IUnknown
 ' =====================================================================================
 METHOD SetInitialPageNum ( ' VTable offset = 12
 BYVAL nFirstPage AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD GetPageInfo ( ' VTable offset = 16
 BYREF pnFirstPage AS LONG
 , BYREF pcPages AS LONG
 ) AS LONG
 ' =====================================================================================
 METHOD Print ( ' VTable offset = 20
 BYVAL pnFirstPage AS DWORD
 , BYREF pptd AS DVTARGETDEVICE
 , BYREF ppPageSet AS PAGESET
 , BYREF pstgmOptions AS STGMEDIUM
 , BYVAL pcallback AS IContinueCallback
 , BYVAL nFirstPage AS LONG
 , BYREF pcPagesPrinted AS LONG
 , BYREF pnLastPage AS LONG
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IPrint_INTERFACE_DEFINED__ */
' ########################################################################################
' IOleCommandTarget interface
' IID = B722BCCB-4E68-101B-A2BC-00AA00404770
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IOleCommandTarget_INTERFACE_DEFINED)
 %IOleCommandTarget_INTERFACE_DEFINED = 1
' OLECMDF enum
%EQUATE `OLECMDF_SUPPORTED = &H1
%EQUATE `OLECMDF_ENABLED = &H2
%EQUATE `OLECMDF_LATCHED = &H4
%EQUATE `OLECMDF_NINCHED = &H8
%EQUATE `OLECMDF_INVISIBLE = &H10
%EQUATE `OLECMDF_DEFHIDEONCTXTMENU = &H20
%EQUATE `MSOCMDF_SUPPORTED = %OLECMDF_SUPPORTED
%EQUATE `MSOCMDF_ENABLED = %OLECMDF_ENABLED
%EQUATE `MSOCMDF_LATCHED = %OLECMDF_LATCHED
%EQUATE `MSOCMDF_NINCHED = %OLECMDF_NINCHED
' // Size = 8 bytes
TYPE OLECMD DWORD
 cmdID AS DWORD ' ULONG cmdID
 cmdf AS DWORD ' DWORD cmdf
END TYPE
' // Size = 8 bytes
TYPE MSOCMD DWORD
 cmdID AS DWORD ' ULONG cmdID
 cmdf AS DWORD ' DWORD cmdf
END TYPE
' // Size = 16 bytes
TYPE OLECMDTEXT DWORD
 cmdtextf AS DWORD ' DWORD cmdtextf
 cwActual AS DWORD ' ULONG cwActual
 cwBuf AS DWORD ' ULONG cwBuf
 rgwz AS WSTRINGZ PTR ' /* [size_is] */ wchar_t rgwz[ 1 ]
END TYPE
' // Size = 16 bytes
TYPE MSOCMDTEXT DWORD
 cmdtextf AS DWORD ' DWORD cmdtextf
 cwActual AS DWORD ' ULONG cwActual
 cwBuf AS DWORD ' ULONG cwBuf
 rgwz AS WSTRINGZ PTR ' /* [size_is] */ wchar_t rgwz[ 1 ]
END TYPE
' OLECMDTEXTF enum
%EQUATE `OLECMDTEXTF_NONE = 0
%EQUATE `OLECMDTEXTF_NAME = 1
%EQUATE `OLECMDTEXTF_STATUS = 2
%EQUATE `MSOCMDTEXTF_NONE = %OLECMDTEXTF_NONE
%EQUATE `MSOCMDTEXTF_NAME = %OLECMDTEXTF_NAME
%EQUATE `MSOCMDTEXTF_STATUS = %OLECMDTEXTF_STATUS
' OLECMDEXECOPT enum
%EQUATE `OLECMDEXECOPT_DODEFAULT = 0
%EQUATE `OLECMDEXECOPT_PROMPTUSER = 1
%EQUATE `OLECMDEXECOPT_DONTPROMPTUSER = 2
%EQUATE `OLECMDEXECOPT_SHOWHELP = 3
%EQUATE `MSOCMDEXECOPT_DODEFAULT = %OLECMDEXECOPT_DODEFAULT
%EQUATE `MSOCMDEXECOPT_PROMPTUSER = %OLECMDEXECOPT_PROMPTUSER
%EQUATE `MSOCMDEXECOPT_DONTPROMPTUSER = %OLECMDEXECOPT_DONTPROMPTUSER
%EQUATE `MSOCMDEXECOPT_SHOWHELP = %OLECMDEXECOPT_SHOWHELP
'/* OLECMDID_STOPDOWNLOAD and OLECMDID_ALLOWUILESSSAVEAS are supported for QueryStatus Only */
' OLECMDID enum
%EQUATE `OLECMDID_OPEN = 1
%EQUATE `OLECMDID_NEW = 2
%EQUATE `OLECMDID_SAVE = 3
%EQUATE `OLECMDID_SAVEAS = 4
%EQUATE `OLECMDID_SAVECOPYAS = 5
%EQUATE `OLECMDID_PRINT = 6
%EQUATE `OLECMDID_PRINTPREVIEW = 7
%EQUATE `OLECMDID_PAGESETUP = 8
%EQUATE `OLECMDID_SPELL = 9
%EQUATE `OLECMDID_PROPERTIES = 10
%EQUATE `OLECMDID_CUT = 11
%EQUATE `OLECMDID_COPY = 12
%EQUATE `OLECMDID_PASTE = 13
%EQUATE `OLECMDID_PASTESPECIAL = 14
%EQUATE `OLECMDID_UNDO = 15
%EQUATE `OLECMDID_REDO = 16
%EQUATE `OLECMDID_SELECTALL = 17
%EQUATE `OLECMDID_CLEARSELECTION = 18
%EQUATE `OLECMDID_ZOOM = 19
%EQUATE `OLECMDID_GETZOOMRANGE = 20
%EQUATE `OLECMDID_UPDATECOMMANDS = 21
%EQUATE `OLECMDID_REFRESH = 22
%EQUATE `OLECMDID_STOP = 23
%EQUATE `OLECMDID_HIDETOOLBARS = 24
%EQUATE `OLECMDID_SETPROGRESSMAX = 25
%EQUATE `OLECMDID_SETPROGRESSPOS = 26
%EQUATE `OLECMDID_SETPROGRESSTEXT = 27
%EQUATE `OLECMDID_SETTITLE = 28
%EQUATE `OLECMDID_SETDOWNLOADSTATE = 29
%EQUATE `OLECMDID_STOPDOWNLOAD = 30
%EQUATE `OLECMDID_ONTOOLBARACTIVATED = 31
%EQUATE `OLECMDID_FIND = 32
%EQUATE `OLECMDID_DELETE = 33
%EQUATE `OLECMDID_HTTPEQUIV = 34
%EQUATE `OLECMDID_HTTPEQUIV_DONE = 35
%EQUATE `OLECMDID_ENABLE_INTERACTION = 36
%EQUATE `OLECMDID_ONUNLOAD = 37
%EQUATE `OLECMDID_PROPERTYBAG2 = 38
%EQUATE `OLECMDID_PREREFRESH = 39
%EQUATE `OLECMDID_SHOWSCRIPTERROR = 40
%EQUATE `OLECMDID_SHOWMESSAGE = 41
%EQUATE `OLECMDID_SHOWFIND = 42
%EQUATE `OLECMDID_SHOWPAGESETUP = 43
%EQUATE `OLECMDID_SHOWPRINT = 44
%EQUATE `OLECMDID_CLOSE = 45
%EQUATE `OLECMDID_ALLOWUILESSSAVEAS = 46
%EQUATE `OLECMDID_DONTDOWNLOADCSS = 47
%EQUATE `OLECMDID_UPDATEPAGESTATUS = 48
%EQUATE `OLECMDID_PRINT2 = 49
%EQUATE `OLECMDID_PRINTPREVIEW2 = 50
%EQUATE `OLECMDID_SETPRINTTEMPLATE = 51
%EQUATE `OLECMDID_GETPRINTTEMPLATE = 52
%EQUATE `OLECMDID_PAGEACTIONBLOCKED = 55
%EQUATE `OLECMDID_PAGEACTIONUIQUERY = 56
%EQUATE `OLECMDID_FOCUSVIEWCONTROLS = 57
%EQUATE `OLECMDID_FOCUSVIEWCONTROLSQUERY = 58
%EQUATE `OLECMDID_SHOWPAGEACTIONMENU = 59
' Added for IE7
%EQUATE `OLECMDID_ADDTRAVELENTRY = 60
%EQUATE `OLECMDID_UPDATETRAVELENTRY = 61
%EQUATE `OLECMDID_UPDATEBACKFORWARDSTATE = 62
%EQUATE `OLECMDID_OPTICAL_ZOOM = 63
%EQUATE `OLECMDID_OPTICAL_GETZOOMRANGE = 64
%EQUATE `OLECMDID_WINDOWSTATECHANGED = 65
' Added for IE8
%EQUATE `OLECMDID_ACTIVEXINSTALLSCOPE = 66
%EQUATE `OLECMDID_UPDATETRAVELENTRY_DATARECOVERY = 67
%EQUATE `MSOCMDID_OPEN = %OLECMDID_OPEN
%EQUATE `MSOCMDID_NEW = %OLECMDID_NEW
%EQUATE `MSOCMDID_SAVE = %OLECMDID_SAVE
%EQUATE `MSOCMDID_SAVEAS = %OLECMDID_SAVEAS
%EQUATE `MSOCMDID_SAVECOPYAS = %OLECMDID_SAVECOPYAS
%EQUATE `MSOCMDID_PRINT = %OLECMDID_PRINT
%EQUATE `MSOCMDID_PRINTPREVIEW = %OLECMDID_PRINTPREVIEW
%EQUATE `MSOCMDID_PAGESETUP = %OLECMDID_PAGESETUP
%EQUATE `MSOCMDID_SPELL = %OLECMDID_SPELL
%EQUATE `MSOCMDID_PROPERTIES = %OLECMDID_PROPERTIES
%EQUATE `MSOCMDID_CUT = %OLECMDID_CUT
%EQUATE `MSOCMDID_COPY = %OLECMDID_COPY
%EQUATE `MSOCMDID_PASTE = %OLECMDID_PASTE
%EQUATE `MSOCMDID_PASTESPECIAL = %OLECMDID_PASTESPECIAL
%EQUATE `MSOCMDID_UNDO = %OLECMDID_UNDO
%EQUATE `MSOCMDID_REDO = %OLECMDID_REDO
%EQUATE `MSOCMDID_SELECTALL = %OLECMDID_SELECTALL
%EQUATE `MSOCMDID_CLEARSELECTION = %OLECMDID_CLEARSELECTION
%EQUATE `MSOCMDID_ZOOM = %OLECMDID_ZOOM
%EQUATE `MSOCMDID_GETZOOMRANGE = %OLECMDID_GETZOOMRANGE
%EQUATE `OLECMDERR_E_FIRST = %OLE_E_LAST + 1
%EQUATE `OLECMDERR_E_NOTSUPPORTED = %OLECMDERR_E_FIRST
%EQUATE `OLECMDERR_E_DISABLED = %OLECMDERR_E_FIRST + 1
%EQUATE `OLECMDERR_E_NOHELP = %OLECMDERR_E_FIRST + 2
%EQUATE `OLECMDERR_E_CANCELED = %OLECMDERR_E_FIRST + 3
%EQUATE `OLECMDERR_E_UNKNOWNGROUP = %OLECMDERR_E_FIRST + 4
%EQUATE `MSOCMDERR_E_FIRST = %OLECMDERR_E_FIRST
%EQUATE `MSOCMDERR_E_NOTSUPPORTED = %OLECMDERR_E_NOTSUPPORTED
%EQUATE `MSOCMDERR_E_DISABLED = %OLECMDERR_E_DISABLED
%EQUATE `MSOCMDERR_E_NOHELP = %OLECMDERR_E_NOHELP
%EQUATE `MSOCMDERR_E_CANCELED = %OLECMDERR_E_CANCELED
%EQUATE `MSOCMDERR_E_UNKNOWNGROUP = %OLECMDERR_E_UNKNOWNGROUP
'#if(NTDDI_VERSION >= NTDDI_WINXPSP2)
%EQUATE `OLECMDARGINDEX_SHOWPAGEACTIONMENU_HWND = 0
%EQUATE `OLECMDARGINDEX_SHOWPAGEACTIONMENU_X = 1
%EQUATE `OLECMDARGINDEX_SHOWPAGEACTIONMENU_Y = 2
%EQUATE `OLECMDARGINDEX_ACTIVEXINSTALL_PUBLISHER = 0
%EQUATE `OLECMDARGINDEX_ACTIVEXINSTALL_DISPLAYNAME = 1
%EQUATE `OLECMDARGINDEX_ACTIVEXINSTALL_CLSID = 2
%EQUATE `OLECMDARGINDEX_ACTIVEXINSTALL_INSTALLSCOPE = 3
%EQUATE `INSTALL_SCOPE_INVALID = 0
%EQUATE `INSTALL_SCOPE_MACHINE = 1
%EQUATE `INSTALL_SCOPE_USER = 2
' IGNOREMIME enum
%EQUATE `IGNOREMIME_PROMPT = &H1
%EQUATE `IGNOREMIME_TEXT = &H2
' WPCSETTING enum
%EQUATE `WPCSETTING_LOGGING_ENABLED = &H1
%EQUATE `WPCSETTING_FILEDOWNLOAD_BLOCKED = &H2
'#endif
$IID_IOleCommandTarget = GUID$("{B722BCCB-4E68-101B-A2BC-00AA00404770}")
$IID_IMsoCommandTarget = $IID_IOleCommandTarget
INTERFACE IOleCommandTarget $IID_IOleCommandTarget
 INHERIT IUnknown
 ' =====================================================================================
 METHOD QueryStatus ( ' VTable offset = 12
 BYREF pguidCmdGroup AS GUID
 , BYVAL cCmds AS DWORD
 , BYREF prgCmds AS OLECMD
 , BYREF pCmdText AS OLECMDTEXT
 ) AS LONG
 ' =====================================================================================
 METHOD Exec ( ' VTable offset = 16
 BYREF pguidCmdGroup AS GUID
 , BYVAL nCmdID AS DWORD
 , BYVAL nCmdExecOpt AS DWORD
 , BYREF pvaIn AS VARIANT
 , BYREF pvaOut AS VARIANT
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IOleCommandTarget_INTERFACE_DEFINED__ */
' OLECMDID_REFRESHFLAG enum
%EQUATE `OLECMDIDF_REFRESH_NORMAL = 0
%EQUATE `OLECMDIDF_REFRESH_IFEXPIRED = 1
%EQUATE `OLECMDIDF_REFRESH_CONTINUE = 2
%EQUATE `OLECMDIDF_REFRESH_COMPLETELY = 3
%EQUATE `OLECMDIDF_REFRESH_NO_CACHE = 4
%EQUATE `OLECMDIDF_REFRESH_RELOAD = 5
%EQUATE `OLECMDIDF_REFRESH_LEVELMASK = &H00FF
%EQUATE `OLECMDIDF_REFRESH_CLEARUSERINPUT = &H1000
'#if(NTDDI_VERSION >= NTDDI_WINXPSP2)
%EQUATE `OLECMDIDF_REFRESH_PROMPTIFOFFLINE = &H2000
%EQUATE `OLECMDIDF_REFRESH_THROUGHSCRIPT = &H4000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_ACTIVEXINSTALL = &H00010000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_FILEDOWNLOAD = &H00020000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_LOCALMACHINE = &H00040000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_POPUPWINDOW = &H00080000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = &H00100000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNTRUSTED = &H00200000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTRANET = &H00400000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNINTERNET = &H00800000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_PROTLOCKDOWNRESTRICTED = &H01000000
'#elif(NTDDI_VERSION >= NTDDI_WINXP)
' OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,
' OLECMDIDF_REFRESH_THROUGHSCRIPT = 0x4000,
'#else
' OLECMDIDF_REFRESH_PROMPTIFOFFLINE = 0x2000,
'#endif
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_MIXEDCONTENT = &H02000000
%EQUATE `OLECMDIDF_REFRESH_PAGEACTION_INVALID_CERT = &H04000000
' OLECMDID_PAGEACTIONFLAG enum
'#if(NTDDI_VERSION >= NTDDI_WINXPSP2)
%EQUATE `OLECMDIDF_PAGEACTION_FILEDOWNLOAD = &H00000001
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXINSTALL = &H00000002
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXTRUSTFAIL = &H00000004
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXUSERDISABLE = &H00000008
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXDISALLOW = &H00000010
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXUNSAFE = &H00000020
%EQUATE `OLECMDIDF_PAGEACTION_POPUPWINDOW = &H00000040
%EQUATE `OLECMDIDF_PAGEACTION_LOCALMACHINE = &H00000080
%EQUATE `OLECMDIDF_PAGEACTION_MIMETEXTPLAIN = &H00000100
%EQUATE `OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE = &H00000200
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNLOCALMACHINE = &H00000400
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNTRUSTED = &H00000800
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTRANET = &H00001000
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNINTERNET = &H00002000
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNRESTRICTED = &H00004000
%EQUATE `OLECMDIDF_PAGEACTION_PROTLOCKDOWNDENY = &H00008000
%EQUATE `OLECMDIDF_PAGEACTION_POPUPALLOWED = &H00010000
%EQUATE `OLECMDIDF_PAGEACTION_SCRIPTPROMPT = &H00020000
%EQUATE `OLECMDIDF_PAGEACTION_ACTIVEXUSERAPPROVAL = &H00040000
%EQUATE `OLECMDIDF_PAGEACTION_MIXEDCONTENT = &H00080000
%EQUATE `OLECMDIDF_PAGEACTION_INVALID_CERT = &H00100000
%EQUATE `OLECMDIDF_PAGEACTION_INTRANETZONEREQUEST = &H00200000
%EQUATE `OLECMDIDF_PAGEACTION_XSSFILTERED = &H00400000
%EQUATE `OLECMDIDF_PAGEACTION_SPOOFABLEIDNHOST = &H00800000
'%OLECMDIDF_PAGEACTION_LOWRIGHTSIE = &H01000000 ' // Removed in the Windows 7 SDK
%EQUATE `OLECMDIDF_PAGEACTION_SCRIPTNAVIGATE_ACTIVEXUSERAPPROVAL = &H02000000
%EQUATE `OLECMDIDF_PAGEACTION_WPCBLOCKED = &H04000000
%EQUATE `OLECMDIDF_PAGEACTION_WPCBLOCKED_ACTIVEX = &H08000000
%EQUATE `OLECMDIDF_PAGEACTION_EXTENSION_COMPAT_BLOCKED = &H10000000
%EQUATE `OLECMDIDF_PAGEACTION_NORESETACTIVEX = &H20000000
%EQUATE `OLECMDIDF_PAGEACTION_GENERIC_STATE = &H40000000
%EQUATE `OLECMDIDF_PAGEACTION_RESET = &H80000000& ' Internet Explorer 8. OLECMDIDF_PAGEACTION_RESET is cast to an int.
' OLECMDID_BROWSERSTATEFLAG enum
%EQUATE `OLECMDIDF_BROWSERSTATE_EXTENSIONSOFF = &H00000001
%EQUATE `OLECMDIDF_BROWSERSTATE_IESECURITY = &H00000002
%EQUATE `OLECMDIDF_BROWSERSTATE_PROTECTEDMODE_OFF = &H00000004
%EQUATE `OLECMDIDF_BROWSERSTATE_RESET = &H00000008
' enum OLECMDID_OPTICAL_ZOOMFLAG
%EQUATE `OLECMDIDF_OPTICAL_ZOOM_NOPERSIST = &H00000001
' PAGEACTION_UI enum
%EQUATE `PAGEACTION_UI_DEFAULT = 0
%EQUATE `PAGEACTION_UI_MODAL = 1
%EQUATE `PAGEACTION_UI_MODELESS = 2
%EQUATE `PAGEACTION_UI_SILENT = 3
'#endif
' OLECMDID_WINDOWSTATE_FLAG enum
%EQUATE `OLECMDIDF_WINDOWSTATE_USERVISIBLE = &H00000001
%EQUATE `OLECMDIDF_WINDOWSTATE_ENABLED = &H00000002
%EQUATE `OLECMDIDF_WINDOWSTATE_USERVISIBLE_VALID = &H00010000
%EQUATE `OLECMDIDF_WINDOWSTATE_ENABLED_VALID = &H00020000
$SID_SContainerDispatch = GUID$("{B722BE00-4E68-101B-A2BC-00AA00404770}")
' ########################################################################################
' IZoomEvents interface
' IID = 41B68150-904C-4E17-A0BA-A438182E359D
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IZoomEvents_INTERFACE_DEFINED)
 %IZoomEvents_INTERFACE_DEFINED = 1
$IID_IZoomEvents = GUID$("{41B68150-904C-4E17-A0BA-A438182E359D}")
INTERFACE IZoomEvents $IID_IZoomEvents
 INHERIT IUnknown
 ' =====================================================================================
 METHOD OnZoomPercentChanged ( ' VTable offset = 12
 BYVAL ulZoomPercent AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IZoomEvents_INTERFACE_DEFINED__ */
' ########################################################################################
' IProtectFocus interface
' IID = D81F90A3-8156-44F7-AD28-5ABB87003274
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IProtectFocus_INTERFACE_DEFINED)
 %IProtectFocus_INTERFACE_DEFINED = 1
$IID_IProtectFocus = GUID$("{D81F90A3-8156-44F7-AD28-5ABB87003274}")
$SID_SProtectFocus = $IID_IProtectFocus
INTERFACE IProtectFocus $IID_IProtectFocus
 INHERIT IUnknown
 ' =====================================================================================
 METHOD AllowFocusChange ( ' VTable offset = 12
 BYREF pfAllow AS LONG
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IProtectFocus_INTERFACE_DEFINED__ */
' ########################################################################################
' IProtectedModeMenuServices interface
' IID = 73C105EE-9DFF-4A07-B83C-7EFF290C266E
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%IProtectedModeMenuServices_INTERFACE_DEFINED)
 %IProtectedModeMenuServices_INTERFACE_DEFINED = 1
$IID_IProtectedModeMenuServices = GUID$("{73C105EE-9DFF-4A07-B83C-7EFF290C266E}")
INTERFACE IProtectedModeMenuServices $IID_IProtectedModeMenuServices
 INHERIT IUnknown
 ' =====================================================================================
 METHOD CreateMenu ( ' VTable offset = 12
 BYREF phMenu AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD LoadMenu ( ' VTable offset = 16
 BYREF pszModuleName AS WSTRINGZ
 , BYREF pszMenuName AS WSTRINGZ
 , BYREF phMenu AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD LoadMenuID ( ' VTable offset = 20
 BYREF pszModuleName AS WSTRINGZ
 , BYVAL wResourceID AS WORD
 , BYREF phMenu AS DWORD
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __IProtectedModeMenuServices_INTERFACE_DEFINED__ */
#ENDIF
