On Tue, 2010-04-20 at 06:56 +1000, Brad Hards wrote:
> > Please update cast functions to support all known types. Thanks in
> > advance.
> I've only been adding them when I can test (because of the difficulty in 
> making 
> sure I got it right). I'll try this PidLidDistributionListMembers

        Hi,
I used this code for my case (I moved it to evolution-mapi itself then):

+       case PT_MV_BINARY:
+               {
+                       uint32_t        i;
+                       uint32_t        size = 0;
+
+                       mapi_sprop->value.MVbin.cValues = 
sprop->value.MVbin.cValues;
+                       size += 4;
+
+                       mapi_sprop->value.MVbin.bin = 
talloc_array(global_mapi_ctx->mem_ctx, struct Binary_r, 
mapi_sprop->value.MVbin.cValues);
+                       for (i = 0; i < mapi_sprop->value.MVbin.cValues; i++) {
+                               mapi_sprop->value.MVbin.bin[i].cb = 
sprop->value.MVbin.lpbin[i].cb;
+                               mapi_sprop->value.MVbin.bin[i].lpb = 
sprop->value.MVbin.lpbin[i].lpb;
+                               size += sprop->value.MVbin.lpbin[i].cb + sizeof 
(uint16_t);
+                       }
+                       return size;
+               }

but there are still few types missing.
        Bye,
        Milan

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to