[Returning to synce-devel list.] > On Friday 30 November 2007 15:33:05 you wrote: > > [snip] > >> Run in gdb or load the core dump in gdb and provide us with a backtrace! >> >> \David > > OK, > > I really got into the details and I implemented a CeRegEnumValues2 within > registry2.c in the rapi. > > This basically comes down to writing the following to the buffer: > > rapi_context_begin_command(context, 0x23);
First of all, CeRegEnumValue has command code 0x34. Try that first! Sorry for not looking at the command code value earlier. \David > //Write the handle > rapi_buffer_write_uint32 (context->send_buffer, hKey); > > //Write the requested index > rapi_buffer_write_uint32 (context->send_buffer, dwIndex); > > //Write the size of our buffer, for holding the valuename > rapi_buffer_write_uint32(context->send_buffer, *lpcbValueName); > > //Write the size of our buffer for holding the extra data, I just put this > //to 0 for the moment, since I am not interested in that (is also allowed > to > be 0 by definition) > rapi_buffer_write_uint32(context->send_buffer, 0 ); > > > > After this I do the call with this context: > if ( !rapi2_context_call(context) ) > return false; > > and read the error messages + return values. > rapi_buffer_read_uint32(context->recv_buffer, &context->last_error); > rapi_buffer_read_int32(context->recv_buffer, &return_value); > > > After this I try to read all the extra information, but that will go > wrong, > since the recv buffer of the context only contains 8 bytes, namely the two > integers for the return value and the last_error. The rest is for the > moment > not that important. > > The interesting though is the fact that return_value contains the value 0, > while last_error contains the value 6. As far as I could see, the error > value > 6 denotes an invalid handle. > > Unfortunately I do not have Windows available, but clearly something goes > wrongly over the wire. > > Since you requested some backtraces to be able to help, maybe this > extended > information is better :) > > Do you have windows available and could you provide a dump of what goes > over > the wire as soon as you try to do enumeration of the values within a key > via > windows? > > Regards, > > Guido Diepen ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ SynCE-Devel mailing list SynCE-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synce-devel