Re: testing for RAPI init

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

r_z_aret_at_pen_fact.com
Date: 08/24/04


Date: Tue, 24 Aug 2004 14:56:27 -0400

On Mon, 23 Aug 2004 21:55:41 GMT, "ed"
<cteel04.notthis@hotmail.notthis.com> wrote:

>what error code do the actual rapi functions (like CeReadFile) return when
>the rapi hasn't been initialized?

I don't know. I just detect when they fail, and try to report the
reason. I sometimes cover specific cases, like file not found. I
definitely don't specifically check whether any fail because RAPI
failed to initialize.

>
>
><r_z_aret@pen_fact.com> wrote in message
>news:ijlki0d2856eas4jt0gp2a7ic23rpiddks@4ax.com...
>> On Mon, 23 Aug 2004 19:59:03 GMT, "ed"
>> <cteel04.notthis@hotmail.notthis.com> wrote:
>>
>>>is there a way to test for rapi initialization in my program?
>>
>> I check return codes for just about every function that returns them.
>> But not for CeRapiInit or CeRapiInitEx. The following note explains:
>> // E_FAILURE means we were already connected
>> So, my code assumes success for these calls. But then I check return
>> codes for functions that actually _use_ the connection.
>>
>>>
>>>thanks in advance,
>>>ed
>>>
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and
>> please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 500 Harrison Ave., Suite 3R
>> Boston, MA 02118
>> www.penfact.com
>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
500 Harrison Ave., Suite 3R
Boston, MA 02118
www.penfact.com



Relevant Pages

  • Re: Manifest file as a custom resource.
    ... The call is usually placed in the forms 'Initialize' event. ... it will create the manifest file automatically in ... I've yet to see this fail on Vista. ...
    (microsoft.public.vb.general.discussion)
  • Re: When and where do I do Set m_FormVar = Nothing?
    ... For a Form No code absolutely HAS to appear in _Initialize or _Terminate and ... Except perhaps some debug routine to report a class has ... reason - if they fail, they do so with little reporting back to the program. ...
    (microsoft.public.vb.general.discussion)
  • RAPI cant open CEDB volume with a long path or name
    ... RAPI access to a CEDB volume. ... FAIL: "\Program Files\This Is A Long Test2.cdb" ... I'm just going to have to 'hope' the my users don't change the install path ... MakeDBVol is the Windows Mobile app ...
    (microsoft.public.pocketpc.developer)
  • Re: Static-Initializer Failure Values...
    ... Dave Butenhof wrote: ... on a statically allocated and initialized mutex would fail. ... PTHREAD_MUTEX_INITIALIZER may actually fail to initialize the mutex ...
    (comp.programming.threads)
  • Re: Timeout during XmlSerializer instantiation
    ... Since the system was shutting down, ... processes could not be created because some DLLs would fail to ... initialize at this time. ...
    (microsoft.public.dotnet.xml)