??? ????? ?????? API ?? 2007 ??????? Office

???? ???????: 926453 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

?????

???? ?????? ?? ??????? Microsoft Office 2007 API ???? ???? ?????? ???? ?????? ?? 2007 ??????? Office ??? ????? API ?????? ?? ???? ??????. ???? ??? API ???? ??????? ?????? ???? ????? Office 2007. ??? ??? ???? ?????? ????????? ?????? API? ????? ??????? Microsoft Office Outlook 2007 ?????? ?????? ???? ?????? ?? 2007 ??????? Office.

??????? ????

???????? ????? ???? ?????? ?????? ?? 2007 ??????? Office? ?? ?? ???? ?????? ??? ????? ?????? ???????.

IMsoEnvelope

???????IMsoEnvelope????? ???????? ???? ?????? ?? ?????.
?? ??? ??????????? ??? ??????
??? ??IUnknown
?????? ?? ???CLSID_OEEnvelope = {A08AF898-C2A3-11 d 1-BE23-00C04FA31009}
???? ???????IID_IMsoEnvelope = {00067298-0000-0000-C000-000000000046}

????? Vtable

?? ??? ??????????? ??? ??????
???????????? ??????
SetParent???? ?????? HWND ?????
????? ??????????? ??? ?????? ??????
??????? ?????? ?????? ?????? ???? ?? ?????? ????
????? ?????? ?????? ???? ???????? ?? ???
GetAttach??? ??????? ?? ????? ??-??????? ?????? ?? ??? ????? S_OK
SetAttach?? ?????? ???? ??? ??????
NewAttach??? ??????? ?? ????? ??-??????? ?????? ?? ??? ????? S_OK
SetFocus?? ?????? ?????? ?????? ??????? ?? ??????
GetHeaderInfo????? ????????? ?? ?????
SetHeaderInfo????? ??????? ?? ???
IsDirty??????? ??? ?? ??? ???? ???????? ?????? ???
GetLastError???? ?????? ????? ????? ???? ??? ????
DoDebug??? ??????? ?? ????? ??-??????? ?????? ?? ??? ????? S_OK

IMsoEnvelope:: ???????

????????????????? ????? ?????? ?? ???? ?????? ???? ??? ????? ?????? ??.
???? ??????
        HRESULT STDMETHODCALLTYPE Init( 
            IUnknown __RPC_FAR *punk,
            IMsoEnvelopeSite __RPC_FAR *penvsite,
            DWORD grfInit); 
??????
punk
[??]IUnknown???? ????? ???? ???? ??? ?????? ??????? ???IStream????? ??IDispatch?????.

penvsite
[??] ?????? ???EnvelopeSite??????? ???? ?????? ??????.

????????? ??? ?? ????? ??? ??????IServiceProvider??????? ????? ?????? ??? ?????IMsoComponentManager???? ?????QueryService?????.

grfInit
[??] ???? ????? ???????? ???????:
  • env_init_fromstream
    0x0002//punk???????IStream????? ????IDispatch?????.
  • env_init_docbehavior
    0x0020//???? ?????? ???? ?????? ????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_invalidarg
  • e_outofmemory
  • e_unexpected
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: SetParent

?????SetParent????? ???? ?????? ???? ?????? (HWND) ?? ?????? ?????.
???? ??????
        HRESULT STDMETHODCALLTYPE SetParent( 
            HWND hwndParent);
??????
hwndParent
[??] HWND ?????? ?????.
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: ????? ?????

?????????? ????????? ??????? ?????? ?????? ????? ??? ????? ???? ?? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE Resize( 
            LPCRECT prc);
??????
prc
[??] ?????? ?????? ?????.
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: ?????

?????????????? ??????? ?????? ?????? ???? ?? ?????? ????.
???? ??????
        HRESULT STDMETHODCALLTYPE Show( 
            BOOL fShow);
??????
fShow
[??] ??????? ??? ?? ??? ??? ???? ????? ?????? ?? ????? ??????.
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: ???

???????????? ??????? ?????? ???? ???????? ?????? ?? ?? ????? ???? ?? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE Save( 
            IStream __RPC_FAR *pstm,
            DWORD grfSave);
??????
pstm
[??] ??? ???? ???????? ???.

grfSave
[??] ??????? ???? ???? ??? ?????. ?? ??? ??????? ??? ???????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_invalidarg
  • e_outofmemory
  • e_unexpected
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: GetAttach

?????GetAttach??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.
???? ??????
        HRESULT STDMETHODCALLTYPE GetAttach( 
            LPCWSTR wszURL,
            IStream __RPC_FAR *__RPC_FAR *ppstm);

IMsoEnvelope:: SetAttach

?????SetAttach????? ????? ???? ??? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE SetAttach( 
            LPCWSTR wszName,
            LPCWSTR wszCID,
            IStream __RPC_FAR *__RPC_FAR *ppstm,
            DWORD __RPC_FAR *pgrfAttach);
??????
wszName
[??] ??? ??????.

wszCID
[??] ???? ??????? ??????.

ppstm
[??????][??] ??? ???? ?????? ???.

pgrfAttach
[??????][??] ???????? ???? ??? ??????. ?? ?????? ??? ????????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_invalidarg
  • e_outofmemory
  • e_unexpected
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: SetHelpMode

?????SetHelpMode??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.
???? ??????
        HRESULT STDMETHODCALLTYPE SetHelpMode( 
            BOOL fEnter);

IMsoEnvelope:: NewAttach

?????NewAttach??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.
???? ??????
        HRESULT STDMETHODCALLTYPE NewAttach( 
            LPCWSTR wszName,
            DWORD grfAttach);

IMsoEnvelope:: SetFocus

?????SetFocus???? ??????? ?????? ?????? ??????? ?? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE SetFocus( 
            DWORD grfFocus);
??????
grfFocus
[??] ????? ???? ??? ????? ????? ???????. ???? ????? ???????? ???????:
  • env_focus_tab
    ????? 0x0001 ??????? ??????? ????? ??? SHIFT + TAB.
  • env_focus_restore
    0x0002 ?????? ??????? ??? ???? ?????? ???? ???? ?? ?????? ????? ??? ?? ???????.
  • env_focus_initial
    0x0004 ????? ??????? ?????? ?????? (????????).
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: GetHeaderInfo

?????GetHeaderInfo??????? ?????? ??????? ??? ?? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE GetHeaderInfo( 
            ULONG dispid,
            DWORD grfHeader,
            void __RPC_FAR *__RPC_FAR *ppv);
??????
dispid
[??] ????? ??? ????????.

grfHeader
[??] ??????. ?? ?????? ??? ????????.

ppv
[out] Returned information. This value is property specific. The following property is supported:

dispidSubject
0x0037 Returns the subject of the note. ?????ppvparameter returns a pointer to a wide string that contains the subject. The memory is allocated with the OLE task memory allocator.
Return values
This method returns the following values:
  • E_INVALIDARG
  • E_OUTOFMEMORY
  • E_UNEXPECTED
  • E_FAIL
  • S_OK
    The call succeeded and returned the expected value or values.

IMsoEnvelope ::SetHeaderInfo

?????SetHeaderInfomethod sets information for the envelope header.
Syntax
        HRESULT STDMETHODCALLTYPE SetHeaderInfo( 
            ULONG dispid,
            const void __RPC_FAR *pv);

Parameters
dispid
[in] Header property to set.

pv
[in] Data to be set. The type of this parameter is property specific. The following properties are used:
  • dispidSubject
    0x0037 The subject of the note. ?????pvparameter is a pointer to a wide string that contains the subject.
  • dispidSendBtnText
    0x1006 The text that is displayed on theSendbutton in the envelope. ?????pvparameter is a pointer to a side string that contains the text to put on theSendbutton.
Return values
S_OK
The call succeeded and returned the expected value or values.

IMsoEnvelope ::IsDirty

?????IsDirtymethod returns a value that indicates whether the envelope is dirty.
Syntax
        HRESULT STDMETHODCALLTYPE IsDirty( void);
Return values
This method returns the following values:
  • S_OK
    The envelope is dirty.
  • S_FALSE
    The envelope is not dirty.

IMsoEnvelope ::GetLastError

?????GetLastError??????? ?????? ????? ????? ???? ????? ???? ?? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE GetLastError( 
            HRESULT hr,
            LPWSTR wszBuf,
            ULONG cchBuf);
??????
hr
[??] ???? HRESULT ???? ???? ?????? ??? ????? ?????.

wszBuf
[??????][??] ?????? ?????? ???? ???????.

cchBuf
[??] ??? ???? ??? ?????? ???????? ?? ?????? ?????? ???? ?? ??????.
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelope:: DoDebug

?????DoDebug??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.
???? ??????
        HRESULT STDMETHODCALLTYPE DoDebug( 
            DWORD grfDebug);

IMsoEnvelopeSite

???????IMsoEnvelopeSite????? ?????? ???? ??????? ?? ??? ??????? ?????.
?? ??? ??????????? ??? ??????
??? ??IUnknown
???? ???????IID_IMsoEnvelopeSite = {00067299-0000-0000-C000-000000000046}

????? Vtable

?? ??? ??????????? ??? ??????
RequestResize????? ?? ????? ?????? ??? ?????? ??????
CloseNote?? ?????? ?????? ?????? ??????? ??? ?? ????
GetBody???? ??? ???? ??????? ???????
??? ?????? ????????? ?????? ?? ?????
??? ?????? ????????? ?????? ?? ?????
OnEnvSetFocus????? ?????? ???? ??????? ?? ??????
DirtyToolbars?? ?????? ?????? ??? ????? ??????? ???
OnPropChange????? ?????? ????? ????? ???
??? ?????? ????????? ?????? ?? ?????
??? ?????? ????????? ?????? ?? ?????
??? ?????? ????????? ?????? ?? ?????
GetFrameWnd???? HWND ???? ?????? ??????
??? ?????? ????????? ?????? ?? ?????
??? ?????? ????????? ?????? ?? ?????
TranslateAccelerators???? ???? ?????? ????? ????? translating

IMsoEnvelopeSite:: RequestResize

?????RequestResize????? ??????? ????? ??? ?????? ?????? ??? ?????? ???? ?? ???????.
???? ??????
        HRESULT STDMETHODCALLTYPE RequestResize( 
            int __RPC_FAR *pcHeight);
??????
pcHeight
[??????][??] ?????? ??????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: CloseNote

?????CloseNote??????? ?????? ?????? ?????? ???????? ??? ???????? ??? ????? ???? ??? ????? ????????.
???? ??????
        HRESULT STDMETHODCALLTYPE CloseNote( 
            DWORD grfClose);

??????
grfClose
[??] ????? ???? ??? ????? ??? ????? ????????. ???? ?? ???? ?????? ??? ???:

env_close_send
0x0002 ??? ????? ???????? ???? ?? ???????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_abort
  • e_unexpected
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: GetBody

?????GetBody??????? ???? ??? ???? ??????? ???????? ?? ???. ?????? ???? ?????? ????????? ??????? ??? ?? ?? ?????? ??? ??? ?? ??? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE GetBody( 
            IStream __RPC_FAR *pstm,
            DWORD dwCodePage,
            DWORD grfBody);
??????
pstm
[??] ??? ???? ???? ???.

dwCodePage
[??] ???? ??????? ?????? ?????? ???? ???????.

grfBody
[??] ???????? ???? ???? ??? ?? ?? ??????. ???? ????? ???????? ???????:
  • env_body_html
    0x0001 ???? ?????? HTML.
  • env_body_text
    0x0003 ???? ?????? ???? ??????.
????? ?????
??? ??????? ?????? ????? ???????:
  • e_abort
  • E_ outofmemory
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: OnEnvSetFocus

?????OnEnvSetFocus??????? ?????? ?????? ??? ??????? ??? ??????.
???? ??????
	        HRESULT STDMETHODCALLTYPE OnEnvSetFocus( void);
????? ?????
??? ??????? ?????? ????? ???????:
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: Dirtytoolbars

?????DirtyToolbars??????? ?????? ?????? ??? ?? ???? ?????? ????? ??????? ??? ?????.
???? ??????
        HRESULT STDMETHODCALLTYPE DirtyToolbars( void);
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: OnPropChange

?????OnPropChange??????? ?????? ?????? dirtied ????? ?? ??????.
???? ??????
         HRESULT STDMETHODCALLTYPE OnPropChange( 
            ULONG dispid);
??????
dispid
[??] Microsoft COM ??????? ???? ??????? ???? ?? ???????. ??? ??????? ?????? ???????:

dispidSomething
??? 0xffffffff ??? ?? ????? ????? ??? ????.
????? ?????
??? ??????? ?????? ????? ???????:
  • E_ ??? ?????
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: GetFrameWnd

?????GetFrameWnd???? ????? ?????? ?????? ????? ?????? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE GetFrameWnd( 
            HWND __RPC_FAR *phwndFrame);
??????
phwndFrame
[??????] HWND ???? ??????.
????? ?????
s_ok
??? ????????? ?????? ?????? ???????? ?? ???.

IMsoEnvelopeSite:: TranslateAccelerators

?????TranslateAccelerators????? ?????? ?????? ??? ?????? ??????.
???? ??????
        HRESULT STDMETHODCALLTYPE TranslateAccelerators( 
            MSG __RPC_FAR *pMsg);
??????
pMsg
[??] ????? ??? ?? ??? ??????? ??? ??????.
????? ?????
??? ??????? ?????? ????? ???????:
  • E_ ??? ?????
  • e_outofmemory
  • e_abort
  • e_fail
  • s_false
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.


IMsoComponent

???????IMsoComponent????? ?????? ???? ??????? ?? ??? ??????? ?????. ????? ?? ????????? ??? ????? IMsoComponent? ???? ??????? ??????? ?? MSDN:
.aspx http://msdn.microsoft.com/en-us/library/ff518955 (v=office.12)
????? ??????? ??????? ???? ??? ???????? ??? ?????? ?????? ?????? MSDN.

?? ??? ??????????? ??? ??????
??? ??IUnknown
???? ???????IID_IMsoComponent = {C 000 0600-0000-0000-C000-000000000046}

????? Vtable

?? ??? ??????????? ??? ??????
FDebugMessage??? ??????? ?? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??. ????? ?????? ??? ???????????.
FPreTanslateMessage?? ?????? ?????? ??????? ????? ??? ?? ??? ????? ??????? ???? ?????. ???? ??????? ????????TranslateAccelerator????? ??????IsDialogMessage???? ????? ??????? pMsg ?? ????? ??????? ????.
OnEnterState?? ?????? ??? ?????? ????? ???? ??????? ?? ????? ???? ?????? ?????? ??????? uStateID.
OnAppActivate?? ?????? ?????? ????? ???? ??? ??????? ?????? ?? ???? ???????.
OnLoseActivation?? ?????? ?????? ????? ?? ?????? ??? ????? ?????? ???? ?? ????? ?????? ?? ???? ??? ???.
OnActivationChange?? ?????? ?????? ??? ????? ???? ????.
FDoIdle???? ?????? ????? ??? ?????? ??????.
FContinueMessageLoop??????? ??? ?? ??? ??? ??? ?? ????? ???? ????? ??? ??? ???????.
FQueryTerminate??????? ??? ?? ??? ??? ???? ????? ??????.
??????? ?????? ??????? ??IMsoComponent?????.
HwndGetWindow??????? ???? ????? ???????.

IMsoComponent:: FDebugMessage

?????FDebugMessage????? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??. ????? ?????? ??? ???????????.
???? ??????
    BOOL  FDebugMessage (HMSOINST hinst, 
         UINT message, WPARAM wParam, LPARAM lParam);

IMsoComponent:: FPreTranslateMessage

?? ?????? ?????? ??????? ????? ??? ?? ??? ????? ??????? ???? ?????. ???? ??????? ????????TranslateAccelerator????? ??????IsDialogMessage???? ????? ??????? pMsg ?? ????? ??????? ????.
???? ??????
    BOOL  FPreTranslateMessage (MSG *pMsg);
??????
pMsg
[???????] ???? ??????? ?????? ????????.
????? ?????
??? ??????? ?????? ????? ???????:
  • ????
    ??????? ??? ??? ?? ??????? ???????.
  • ?????
    ??????? ??? ??? ?? ??????? ??????? ??.

IMsoComponent:: OnEnterState

?????OnEnterState????? ????? ???? ????? ???? ??????? ?? ????? ???? ?????? ?????? ??????? uStateID.
???? ??????
    void OnEnterState( ULONG uStateID, BOOL fEnter);

IMsoComponent:: OnAppActivate

?????OnAppActivate???? ??????? ?????? ????? ???? ??? ??????? ?????? ?? ???? ???????.
???? ??????
    void OnAppActivate( 
        BOOL fActive, DWORD dwOtherThreadID);

IMsoComponent:: OnLoseActivation

?????OnLoseActivation???? ??????? ?????? ????? ?? ?????? ??? ????? ?????? ???? ?? ????? ?????? ?? ???? ??? ???.
???? ??????
    void OnLoseActivation  ();

IMsoComponent:: OnActivationChange

?????OnActivationChange???? ??????? ?????? ??? ????? ???? ????.
???? ??????
    void OnActivationChange( 
        IMsoComponent *pic, 
        BOOL fSameComponent,
        const MSOCRINFO *pcrinfo,
        BOOL fHostIsActivating,
        const MSOCHOSTINFO *pchostinfo, 
        DWORD dwReserved);

IMsoComponent:: FDoIdle

?????FDoIdle??????? ?? ???????? ?????? ????? ??? ??????.
???? ??????
    BOOL FDoIdle( DWORD grfidlef);

IMsoComponent:: FContinueMessageLoop

?????FContinueMessageLoop????? ???????? ??? ?? ??? ??? ??? ?? ????? ???? ????? ??? ??? ???????.
???? ??????
    BOOL FContinueMessageLoop( 
        ULONG uReason, void *pvLoopData, MSG *pMsgPeeked);

IMsoComponent:: FQueryTerminate

?????FQueryTerminate????? ????? ?? ??? ??? ???? ????? ??????.
???? ??????
    BOOL FQueryTerminate( BOOL fPromptUser);

IMsoComponent:: ?????

??????????????? ????? ???????IMsoComponent?????. ?????IMsoComponent????? ??? ????? ?? ??????? ?? ????? ????????? ??? ????? ??? ????? ???????? ?? ?? ?????? ?? ????? ????????.
???? ??????
    void Terminate ();

IMsoComponent:: HwndGetWindow

?????HwndGetWindow????? ??????? ???? ????? ???????.
???? ??????
    HWND HwndGetWindow( 
        DWORD dwWhich, DWORD dwReserved);
??????
dwWhich
[??] ???? ??? ?????? ???? ??? ?????? ??? ???? Windows (HWND). ????? ??????? ???????:
  • msocWindowFrameToplevel = 0
    ?? ?????? ?????? ?????? ??????. ??? ?? ???? ??????? ????? ????? ????????? (MDI) ?? ???? MDI (???? ???? MDI) ?? ?????? ???? ???????. ??? ?? ???? ???????? ????? ????? ???? (SDI) ???? ?????? ???? ?????? ??????. ??? ?? ???? ??? ?????? ?????? ???? ???? ??????.
  • msocWindowFrameOwner = 1
    ?? ?????? ?????? ???? ???? ??????. ?????? ?? ???? ??? ?????? ?????? ??????? ?? ?? ???? ???? ??????? ???? ?????? ??????.
  • msocWindowComponent = 2
    ?? ?????? ?????? ??????? ??????.
  • msocWindowDlgOwner = 3
    ???? ??? ?????? ??? ?? ???? ???? ???? ???????? ?? ??? ??????. ??? ????? ?????? ???? ?????? ????????? ????? ?????? ???? ??????.
dwReserved
?????dwReserved??????? ????? ????????? ?? ????????. ??? ?? ???? ??????? ???.
????? ?????
??? ??????? ?????? ?????? ??? ???? ????? ???????. ??? ??? ??? ???????? ?? ?????? ??? ?????????? ???????? ?????.

IMsoComponentManager

???????IMsoComponentManager????? ?????? ???? ??????? ?? ??? ??????? ?????. ????? ?? ????????? ??? ????? IMsoComponentManager? ???? ??????? ??????? ?? MSDN:

.aspx http://msdn.microsoft.com/en-us/library/ff518963 (v=office.12)

?? ??? ??????????? ??? ??????
??? ??IUnknown
???? ???????IID_IMsoComponentManager = {000C060B-0000-0000-C000-000000000046}
???? ??????SID_SMsoComponentManager = {C 000 0601-0000-0000-C000-000000000046}

????? Vtable

?? ??? ??????????? ??? ??????
QueryService????? ????? ?????? ???????.
FDebugMessage??? ??????? ?? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??. ????? ?????? ??? ?????????? ??????.
FRegisterComponent?? ?????? ???? ?? ????? ????????.
FRevokeComponent???? ????? ?????? ???? ?? ??????? ?? ??? ??????? dwComponentID.
FUpdateComponentRegistration?? ?????? ??????? ??????? ?????? ?????? ???????? ??????? ??????? ??????.
FOnComponentActivate?? ?????? ???? ?????? ?? ??? ?? ?? ????? ???????? ???? ??? ?????? ?????? ??????? dwComponentID.
FSetTrackingComponent?? ?????? ???? ?????? ????? ??? ?????? ?????? ?????? ????? ??? ???? ??????.
OnComponentEnterState?? ?????? ???? ?????? ?? ?????? ?????? ???? ?????? ???? ?? ??????? ?? ??? ??????? uStateID.
FOnComponentExitState?? ?????? ???? ?????? ?? ?????? ???? ??? ?????? ?????? ??????? dwComponentID ??? ?????? ?? ?????? ???? ?? ??????? ?? ??? ??????? uStateID.
FInState??????? ??? ?? ??? ???? ?????? ???? ?? ?????? ?? ??? uStateID ????? ???????.
FContinueIdle??????? ??? ?? ??? ??? ??? ?????? ???? ?????? ?????? ??? ??????.
FPushMessageLoop??? ???? ????? ????? ?? ???? ?? ??????? ?? ??? ??????? dwComponentID ????? ?? ??????? ?? ??? ??????? uReason.
FCreateSubComponentManager??? ??????? ?? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??.
FGetParentComponentManager??? ??????? ?? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??.
FGetActiveComponent????? ?????? ????? ?? ?????? ??????.

IMsoComponentManager:: FRegisterComponent

?????FRegisterComponent????? ????? ???? ?? ????? ????????.
???? ??????
    BOOL FRegisterComponent(
        IMsoComponent *piComponent, const MSOCRINFO *pcrinfo, 
        DWORD_PTR *pdwComponentID);
??????
piComponent
[??] ????IMsoComponent??????? ???? ??? ???????.

pcrinfo
[??] ???? ???????? ????? ?????? ?????? ??msocrinfo????. ?????? ??? ???? ?? ????????? ???msocrinfo????? ?????? ?????? ??????? ??????? ?? MSDN:

.aspx http://msdn.microsoft.com/en-us/library/ff518947 (v=office.12)

pdwComponentID
[??????] ???? ????? ?????? ??? ??????? ?????? ?????IMsoComponentManager?????? ???????.
????? ?????
??? ??????? ?????? ????? ???????:
  • ????
    ??? ?? ????? ????? ??????.
  • ?????
    ??? ?? ????? ?????? ?????.

IMsoComponentManager:: FRevokeComponent

?????FRevokeComponent???? ????? ????? ?????? ???? ?? ??????? ?? ??? ??????? dwComponentID.
???? ??????
    BOOL FRevokeComponent( DWORD_PTR dwComponentID);
??????
dwComponentID
[??] ???? ?????? ????? ??????? ????? ??.
????? ?????
??? ??????? ?????? ????? ???????:
  • ????
    ?? ????? ????? ?????? ?????.
  • ?????
    ?? ??? ??????? ????? ??????.

IMsoComponentManager:: FOnComponentActivate

?? ?????? ???? ?????? ?? ??? ?? ?? ????? ???????? ???? ??? ?????? ?????? ??????? dwComponentID. The active component receives the opportunity to process the messages by calling theIMsoComponent::FPreTranslateMessagemethod before the messages are dispatched. Typically, the active component receives the first check at idle time after the host.
???? ??????
    BOOL FOnComponentActivate( DWORD_PTR dwComponentID);
??????
dwComponentID
[??] The ID of the component that is being activated.
????? ?????
??? ??????? ?????? ????? ???????:
  • ????
    The method ran successfully.
  • ?????
    The method did not run.

IMsoEnvelopeHost

???????IMsoEnvelopeHostinterface to create an enveloped note.
?? ??? ??????????? ??? ??????
??? ??IUnknown
???? ???????IID_IMsoEnvelopeHost = {0006729A-0000-0000-C000-000000000046}

????? Vtable

?? ??? ??????????? ??? ??????
CreateNoteCreates an enveloped note
??? ?????? ????????? ?????? ?? ?????

Remarks

To register as an envelope host, the application should add a key for itself under the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\EnvelopeHost
The key should be the application name and should have a subkey that is named CLSID. The CLSID subkey should have a default value that is created to obtain theIID_ IMsoEnvelopeHost?????.

IMsoEnvelopeHost ::CreateNote

?????CreateNote????? ????? ?????? ???? ???? ?? ??????? ??????. ??? ?? ???? ??????? ?????? ???? ???? ???? ??? ?????? ?????? ??? ????? ?? ?????? ??????.
???? ??????
	HRESULT	CreateNote(
		 IUnknown* punk,
		 REFCLSID clsidCreate,
		LPCWSTR wszTheme,
		LPCWSTR wszAuthor,
		LPCWSTR wszPrefix,
		DWORD grfCreate);
??????
punk
[??] ??? ???????. ??? ?? ???? ?????? ???? ??? ??????? ?????.

clsidCreate
[??] ??? ???? (CLSID) ?????? ???? ??????. ??? ?? ???? ?????? ???? ??? ??????? CLSID_OEEnvelope.

wszTheme
[??] ??? ???????. ??? ?? ???? ?????? ???? ??? ??????? ?????.

wszAuthor
[??] ??? ???????. ??? ?? ???? ?????? ???? ??? ??????? ?????.

wszPrefix
[??] ??? ???????. ??? ?? ???? ?????? ???? ??? ??????? ?????.

grfCreate
[??] ??? ???????. ??? ?? ???? ?????? ???? ??? ??????? 0.
????? ?????
??? ??????? ?????? ????? ???????:
  • E_ ??? ?????
  • e_outofmemory
  • e_abort
  • e_fail
  • s_ok
    ??? ????????? ?????? ?????? ???????? ?? ???.

???????

???? ???????: 926453 - ????? ??? ??????: 23/????/1432 - ??????: 1.0
????? ???
  • Microsoft Office Outlook 2007
????? ??????: 
kbcode kbinfo kbapi kbexpertiseadvanced kbhowto kbmt KB926453 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????926453

????? ???????