Re: Locking a dll -- dont allow loading

From: Bruce Eitman \(eMVP\) (beitmannospam_at_NOSPAM_applieddata.NOSPAM_net)
Date: 02/28/05


Date: Mon, 28 Feb 2005 08:45:54 -0500

Return 0 from your init if you count more than one load.

-- 
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net
Applied Data Systems
 www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member
"Jeo" <jeo@ky___BIG-FISH-LITTLE-FISH___bert.com ---Remove all fish> wrote in
message news:O6Oh7%23YHFHA.3472@TK2MSFTNGP09.phx.gbl...
> Hi.
>
>
> Is there a known proven standard way to stop a dll driver being loaded
more
> than once?
>
> I have a SPI driver and odviously it can only be loaded one at a time, if
> there is 2 instances of the driver running, then the SPI data will
currupt.
>
>
>
> Joe
>
>


Relevant Pages

  • Re: PCCARD driver question
    ... beitman AT applieddata DOT net ... Applied Data Systems ... What I understand from this is that the device.exe first loads a driver ...
    (microsoft.public.windowsce.embedded)
  • Re: Can not load display driver (SMI Voyager Family)
    ... beitman AT applieddata DOT net ... Applied Data Systems ... JIT debugging requested, waiting for OEM selection ... Unfortunately there are no sources for the driver, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: A stupid Platform Builder 5.0 question (Com_Card)
    ... beitman AT applieddata DOT net ... Applied Data Systems ... > I have support for both PC Cards and Serial Port ... Note - The serial driver is now split into a PCMCIA modem driver and a ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Stream Interface Driver Power Management
    ... > "Bruce Eitman (eMVP)" wrote: ... >> should just power off any hardware that your driver controls and return. ... >> beitman AT applieddata DOT net ... >> Applied Data Systems ...
    (microsoft.public.windowsce.app.development)
  • Re: Flash filesystem
    ... >> can be made to be very unstable by the driver that manages it. ... >> Senior Engineer ... >> Applied Data Systems ... >>> saved state, saved state is known good state. ...
    (microsoft.public.windowsce.platbuilder)