[Mono-dev] [PATCH] Adding hooks for BSTR Marshaling
billholmes54 at gmail.com
Fri May 22 12:15:12 EDT 2009
The attached patch allows hook functions to be registered with mono to
use when marshaling BSTRs. I need this functionality because the
Win32 API emulator we use requires that the encoding is ucs4 and
another allocator be used.
This patch only correct part of my problem. If this is approved I
will be adding similar code for Marshal.AllocCoTaskMem and
Marshal.AllocHGlobal, which will be a separate commit.
2009-05-22 Bill Holmes <billholmes54 at gmail.com>
* cominterop.c : mono_string_to_bstr, mono_string_from_bstr and
mono_free_bstr changed to call external hooks if installed.
mono_install_bstr_funcs added to the set the hooks.
* marshal-hooks.h : Added to declare mono_install_bstr_funcs
* Makefile.am : Adding marshal-hooks.h to the list of public API
Code is contributed under MIT/X11 license.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4397 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20090522/880b2fb4/attachment-0001.obj
More information about the Mono-devel-list