Strong/Weak Marshaling of Proxies Is Not Supported

Last reviewed: March 14, 1996
Article ID: Q148374
The information in this article applies to:
  • Microsoft OLE libraries included with:

        - Microsoft Windows NT version 3.51
        - Microsoft Windows 95
    

SUMMARY

Marshaling a proxy of an interface belonging to another thread or process is supported with MSHLFLAGS_NORMAL, but it is not supported with MSHLFLAGS_TABLESTRONG or MSHLFLAGS_TABLEWEAK. This means that CoMarshalInterface with MSHLFLAGS_TABLESTRONG/MSHLFLAGS_TABLEWEAK and IRunningObjectTable::Register will return E_INVALIDARG for proxies.

MORE INFORMATION

When an interface is marshaled to another thread or process, a proxy of the interface is created in that thread or process. This proxy cannot be marshaled again using the MSHLFLAGS_TABLESTRONG or MSHLFLAGS_TABLEWEAK values of the MSHLFLAGS enumerator. However it can be marshaled using MSHLFLAGS_NORMAL. Marshaling of interfaces that are not proxies are supported using any of the MSHLFLAGS enumerator values.

IRunningObjectTable::Register will marshal the interface pointer given to it by using MSHLFLAGS_TABLESTRONG or MSHLFLAGS_TABLEWEAK, as specified by the grfFlags parameter. Consequently IRunningObjectTable::Register will fail with E_INVALIDARG if is asked to register a proxy.

Windows 3.x supported marshaling of proxies using MSHLFLAGS_TABLESTRONG and MSHLFLAGS_TABLEWEAK. This is not supported on Windows 95 or Windows NT.


Additional reference words: 2 OLE2 2.0 2.00
KBCategory: kbprg
KBSubcategory: LeTwoArc


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 14, 1996
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.