Select the product you need help with
??? ????? ?????? 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????? ???????? ???? ?????? ?? ?????.?? ??? ??????
????? Vtable?? ??? ??????
IMsoEnvelope:: ???????????????????????? ????? ?????? ?? ???? ?????? ???? ??? ????? ?????? ??.???? ????????????punk[??]IUnknown???? ????? ???? ???? ??? ?????? ??????? ???IStream????? ??IDispatch?????. penvsite [??] ?????? ???EnvelopeSite??????? ???? ?????? ??????. ????????? ??? ?? ????? ??? ??????IServiceProvider??????? ????? ?????? ??? ?????IMsoComponentManager???? ?????QueryService?????. grfInit [??] ???? ????? ???????? ???????:
????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelope:: SetParent?????SetParent????? ???? ?????? ???? ?????? (HWND) ?? ?????? ?????.???? ????????????hwndParent[??] HWND ?????? ?????. ????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelope:: ????? ??????????????? ????????? ??????? ?????? ?????? ????? ??? ????? ???? ?? ??????.???? ????????????prc[??] ?????? ?????? ?????. ????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelope:: ??????????????????? ??????? ?????? ?????? ???? ?? ?????? ????.???? ????????????fShow[??] ??????? ??? ?? ??? ??? ???? ????? ?????? ?? ????? ??????. ????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelope:: ??????????????? ??????? ?????? ???? ???????? ?????? ?? ?? ????? ???? ?? ??????.???? ????????????pstm[??] ??? ???? ???????? ???. grfSave [??] ??????? ???? ???? ??? ?????. ?? ??? ??????? ??? ???????. ????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelope:: GetAttach?????GetAttach??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.???? ??????IMsoEnvelope:: SetAttach?????SetAttach????? ????? ???? ??? ??????.???? ????????????wszName[??] ??? ??????. wszCID [??] ???? ??????? ??????. ppstm [??????][??] ??? ???? ?????? ???. pgrfAttach [??????][??] ???????? ???? ??? ??????. ?? ?????? ??? ????????. ????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelope:: SetHelpMode?????SetHelpMode??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.???? ??????IMsoEnvelope:: NewAttach?????NewAttach??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.???? ??????IMsoEnvelope:: SetFocus?????SetFocus???? ??????? ?????? ?????? ??????? ?? ??????.???? ????????????grfFocus[??] ????? ???? ??? ????? ????? ???????. ???? ????? ???????? ???????:
????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelope:: GetHeaderInfo?????GetHeaderInfo??????? ?????? ??????? ??? ?? ??????.???? ????????????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 valuesThis method returns the following values:
IMsoEnvelope ::SetHeaderInfo?????SetHeaderInfomethod sets information for the envelope header.SyntaxParametersdispid[in] Header property to set. pv [in] Data to be set. The type of this parameter is property specific. The following properties are used:
Return valuesS_OKThe call succeeded and returned the expected value or values. IMsoEnvelope ::IsDirty?????IsDirtymethod returns a value that indicates whether the envelope is dirty.SyntaxReturn valuesThis method returns the following values:
IMsoEnvelope ::GetLastError?????GetLastError??????? ?????? ????? ????? ???? ????? ???? ?? ??????.???? ????????????hr[??] ???? HRESULT ???? ???? ?????? ??? ????? ?????. wszBuf [??????][??] ?????? ?????? ???? ???????. cchBuf [??] ??? ???? ??? ?????? ???????? ?? ?????? ?????? ???? ?? ??????. ????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelope:: DoDebug?????DoDebug??????? ?? ????? ??-????? (??????? ??) ?????? ?? ??? ????? S_OK.???? ??????IMsoEnvelopeSite???????IMsoEnvelopeSite????? ?????? ???? ??????? ?? ??? ??????? ?????.?? ??? ??????
????? Vtable?? ??? ??????
IMsoEnvelopeSite:: RequestResize?????RequestResize????? ??????? ????? ??? ?????? ?????? ??? ?????? ???? ?? ???????.???? ????????????pcHeight[??????][??] ?????? ??????. ????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelopeSite:: CloseNote?????CloseNote??????? ?????? ?????? ?????? ???????? ??? ???????? ??? ????? ???? ??? ????? ????????.???? ????????????grfClose[??] ????? ???? ??? ????? ??? ????? ????????. ???? ?? ???? ?????? ??? ???: env_close_send 0x0002 ??? ????? ???????? ???? ?? ???????. ????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelopeSite:: GetBody?????GetBody??????? ???? ??? ???? ??????? ???????? ?? ???. ?????? ???? ?????? ????????? ??????? ??? ?? ?? ?????? ??? ??? ?? ??? ??????.???? ????????????pstm[??] ??? ???? ???? ???. dwCodePage [??] ???? ??????? ?????? ?????? ???? ???????. grfBody [??] ???????? ???? ???? ??? ?? ?? ??????. ???? ????? ???????? ???????:
????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelopeSite:: OnEnvSetFocus?????OnEnvSetFocus??????? ?????? ?????? ??? ??????? ??? ??????.???? ??????????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelopeSite:: Dirtytoolbars?????DirtyToolbars??????? ?????? ?????? ??? ?? ???? ?????? ????? ??????? ??? ?????.???? ??????????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelopeSite:: OnPropChange?????OnPropChange??????? ?????? ?????? dirtied ????? ?? ??????.???? ????????????dispid[??] Microsoft COM ??????? ???? ??????? ???? ?? ???????. ??? ??????? ?????? ???????: dispidSomething ??? 0xffffffff ??? ?? ????? ????? ??? ????. ????? ???????? ??????? ?????? ????? ???????:
IMsoEnvelopeSite:: GetFrameWnd?????GetFrameWnd???? ????? ?????? ?????? ????? ?????? ??????.???? ????????????phwndFrame[??????] HWND ???? ??????. ????? ?????s_ok??? ????????? ?????? ?????? ???????? ?? ???. IMsoEnvelopeSite:: TranslateAccelerators?????TranslateAccelerators????? ?????? ?????? ??? ?????? ??????.???? ????????????pMsg[??] ????? ??? ?? ??? ??????? ??? ??????. ????? ???????? ??????? ?????? ????? ???????:
???????IMsoComponent????? ?????? ???? ??????? ?? ??? ??????? ?????. ????? ?? ????????? ??? ????? IMsoComponent? ???? ??????? ??????? ?? MSDN: |
| ??? ?? | IUnknown |
| ???? ??????? | IID_IMsoComponent = {C 000 0600-0000-0000-C000-000000000046} |
????? Vtable
?? ??? ??????
| FDebugMessage | ??? ??????? ?? ????? ????????? ??????? ???? ??? ????????? ?? ????????? ???????? ?????? ??. ????? ?????? ??? ???????????. |
| FPreTanslateMessage | ?? ?????? ?????? ??????? ????? ??? ?? ??? ????? ??????? ???? ?????. ???? ??????? ????????TranslateAccelerator
(http://msdn.microsoft.com/en-us/library/ms646373.aspx)
????? ??????IsDialogMessage
(http://msdn.microsoft.com/en-us/library/ms645498.aspx)
???? ????? ??????? 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??????? ????? ????????? ?? ????????. ??? ?? ???? ??????? ???.
????? ?????
??? ??????? ?????? ?????? ??? ???? ????? ???????. ??? ??? ??? ???????? ?? ?????? ??? ?????????? ???????? ?????.IMsoComponentManager
???????IMsoComponentManager????? ?????? ???? ??????? ?? ??? ??????? ?????. ????? ?? ????????? ??? ????? IMsoComponentManager? ???? ??????? ??????? ?? MSDN:.aspx http://msdn.microsoft.com/en-us/library/ff518963 (v=office.12)
(http://msdn.microsoft.com/en-us/library/ff518963(v=office.12).aspx)
?? ??? ??????
| ??? ?? | 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)
(http://msdn.microsoft.com/en-us/library/ff518947(v=office.12).aspx)
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::FPreTranslateMessage
(http://msdn.microsoft.com/en-us/library/ff518956(v=office.12).aspx)
method 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
?? ??? ??????
| CreateNote | Creates 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
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
????? ??????: | kbcode kbinfo kbapi kbexpertiseadvanced kbhowto kbmt KB926453 KbMtar |
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????926453
(http://support.microsoft.com/kb/926453/en-us/
)




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








