1
/* $Id: rapi.c,v 1.11 2003/08/05 11:23:29 twogood Exp $ */
4
#include "rapi_internal.h"
6
#include "rapi_buffer.h"
7
#include "rapi_context.h"
10
HRESULT CeRapiFreeBuffer(
17
HRESULT CeRapiInit(void)/*{{{*/
19
RapiContext* context = rapi_context_current();
21
return rapi_context_connect(context);
24
STDAPI CeRapiUninit(void)/*{{{*/
26
RapiContext* context = rapi_context_current();
28
if (context->is_initialized)
30
rapi_context_free(context);
39
BOOL CeCheckPassword( /*{{{*/
42
RapiContext* context = rapi_context_current();
43
BOOL return_value = 0;
45
rapi_context_begin_command(context, 0x34);
46
rapi_buffer_write_optional_string(context->send_buffer, lpszPassword);
48
if ( !rapi_context_call(context) )
51
rapi_buffer_read_uint32(context->recv_buffer, &context->last_error);
52
rapi_buffer_read_uint32(context->recv_buffer, &return_value);