Re: Locking a dll -- dont allow loading
From: Leif O (leif_nospam_at_vmetro.no)
Date: 02/28/05
- Next message: Zhongwei Wang: "Re: The influence of MMU on flash and SDRAM"
- Previous message: Gabriel: "Re: How ro configure FTP username & password"
- In reply to: Jeo: "Re: Locking a dll -- dont allow loading"
- Next in thread: Bruce Eitman \(eMVP\): "Re: Locking a dll -- dont allow loading"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 28 Feb 2005 15:34:39 +0100
You can use a named Mutex object.
Regards,
Leif O.
On Mon, 28 Feb 2005 14:11:25 -0000, Jeo
<jeo@ky___BIG-FISH-LITTLE-FISH___bert.com ---Remove all fish> wrote:
> How can i count? Since each call to loadLibary will create a new
> instance, i
> cannot use global vars in the dll, and the registry will be too slow to
> stop
> quick loadlibary calls
>
>
>
>
> "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
> wrote in
> message news:u%23uKUvZHFHA.2620@tk2msftngp13.phx.gbl...
>> 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
>>>
>>>
>>
>>
>
>
-- leif AT vmetro DOT no Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
- Next message: Zhongwei Wang: "Re: The influence of MMU on flash and SDRAM"
- Previous message: Gabriel: "Re: How ro configure FTP username & password"
- In reply to: Jeo: "Re: Locking a dll -- dont allow loading"
- Next in thread: Bruce Eitman \(eMVP\): "Re: Locking a dll -- dont allow loading"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|