Hi!
since i was needing them for my project (FUR) i tried to put togheter
the CeSetFilePointer
and CeSetEndOfFile functions for the librapi.h: can someone tell me if
they are correct
(i saw there's a rapi_buffer_write_optional_out/int that i didn't
used/understood...)?
AFAIK they work fine, but i didn't tested them toroughly...
If the patch are fine (and as you can see from README.rapi.patch im an
optimist :-) ), can i
have them included in the CVS/next_release?
Thank you for the attention,
Riccardo
--
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
--
Against TCPA - http://www.againsttcpa.com/
Don't let them take YOUR RIGHTS, say NO!
29,30c29,30
< [ ] 15 CeSetFilePointer
< [ ] 16 CeSetEndOfFile
---
> [i] 15 CeSetFilePointer
> [i] 16 CeSetEndOfFile
6a7,54
> BOOL CeSetEndOfFile(
> HANDLE hObject)
> {
> RapiContext* context = rapi_context_current();
> BOOL return_value = 0;
>
> /*synce_trace("begin");*/
>
> rapi_context_begin_command(context,0x16);
> rapi_buffer_write_uint32(context->send_buffer, hObject);
>
> if ( !rapi_context_call(context) )
> return false;
>
> rapi_buffer_read_uint32(context->recv_buffer, &context->last_error);
> rapi_buffer_read_uint32(context->recv_buffer, &return_value);
>
> return return_value;
> }
>
> DWORD CeSetFilePointer(
> HANDLE hObject,
> LONG lDistanceToMove,
> LONG *lpDistanceToMoveHigh,
> DWORD dwMoveMethod)
> {
> RapiContext* context = rapi_context_current();
> BOOL return_value = 0;
>
> /*synce_trace("begin");*/
>
> rapi_context_begin_command(context, 0x15);
> rapi_buffer_write_uint32(context->send_buffer, hObject);
> rapi_buffer_write_uint32(context->send_buffer, lDistanceToMove);
> rapi_buffer_write_uint32(context->send_buffer, lpDistanceToMoveHigh);
> rapi_buffer_write_uint32(context->send_buffer, dwMoveMethod);
>
> if ( !rapi_context_call(context) )
> return false;
>
> rapi_buffer_read_uint32(context->recv_buffer, &context->last_error);
> rapi_buffer_read_uint32(context->recv_buffer, &return_value);
>
> return return_value;
>
> }
>
>