From: Kerem G�mr�kc� on
Hi,

i have a PCMCIA WLan Adapter plugged into my Laptop.
I would like to remove it from my system by code and reinsert
it into system, also done by code. The Hardware Device will still
be plugged into the systems pcmcia slot after "software" removal.
How can i do this by user mode code?

I want to remove the device as it would be done by the tray icon
for the devices and i want to reinsert it into the system. The Hardware
will be always in the pcmcia slot,...

TIA

Regards

Kerem


--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."


From: Pavel A. on
Devcon.exe is your friend. Disable the adapter and and enable again.
(the CM_Eject.... etc are more complicated and AFAIK difficult to get
right )

--PA


"Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
news:OPNNyPVqIHA.3960(a)TK2MSFTNGP02.phx.gbl...
> Hi,
>
> i have a PCMCIA WLan Adapter plugged into my Laptop.
> I would like to remove it from my system by code and reinsert
> it into system, also done by code. The Hardware Device will still
> be plugged into the systems pcmcia slot after "software" removal.
> How can i do this by user mode code?
>
> I want to remove the device as it would be done by the tray icon
> for the devices and i want to reinsert it into the system. The Hardware
> will be always in the pcmcia slot,...
>
> TIA
>
> Regards
>
> Kerem
>
>
> --
> -----------------------
> Beste Gr�sse / Best regards / Votre bien devoue
> Kerem G�mr�kc�
> Microsoft Live Space: http://kerem-g.spaces.live.com/
> Latest Open-Source Projects: http://entwicklung.junetz.de
> -----------------------
> "This reply is provided as is, without warranty express or implied."
>
From: Kerem G�mr�kc� on
Hi Pavel,

thanks for your Answer.

>Devcon.exe is your friend. Disable the adapter and and enable again.
>(the CM_Eject.... etc are more complicated and AFAIK difficult to get
>right )

If devcon does this reliable (i didnt test it) why could not it
be done by some self written application? I think there must be
also some way to initiate a rescan of the system buses from
Usermode as the device manager does,...
Regards

Kerem

--
-----------------------
Beste Gr�sse / Best regards / Votre bien devoue
Kerem G�mr�kc�
Microsoft Live Space: http://kerem-g.spaces.live.com/
Latest Open-Source Projects: http://entwicklung.junetz.de
-----------------------
"This reply is provided as is, without warranty express or implied."
"Pavel A." <pavel_a(a)NOwritemeNO.com> schrieb im Newsbeitrag
news:eryRk4jqIHA.3408(a)TK2MSFTNGP03.phx.gbl...
> Devcon.exe is your friend. Disable the adapter and and enable again.
> (the CM_Eject.... etc are more complicated and AFAIK difficult to get
> right )
>
> --PA
>
>
> "Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
> news:OPNNyPVqIHA.3960(a)TK2MSFTNGP02.phx.gbl...
>> Hi,
>>
>> i have a PCMCIA WLan Adapter plugged into my Laptop.
>> I would like to remove it from my system by code and reinsert
>> it into system, also done by code. The Hardware Device will still
>> be plugged into the systems pcmcia slot after "software" removal.
>> How can i do this by user mode code?
>>
>> I want to remove the device as it would be done by the tray icon
>> for the devices and i want to reinsert it into the system. The Hardware
>> will be always in the pcmcia slot,...
>>
>> TIA
>>
>> Regards
>>
>> Kerem
>>
>>
>> --
>> -----------------------
>> Beste Gr�sse / Best regards / Votre bien devoue
>> Kerem G�mr�kc�
>> Microsoft Live Space: http://kerem-g.spaces.live.com/
>> Latest Open-Source Projects: http://entwicklung.junetz.de
>> -----------------------
>> "This reply is provided as is, without warranty express or implied."
>>


From: Don Burn on
Kerem,

Pavel is correct but what he forgot to say in the message was the
source for DevCon is in the WDK so look at the source and take the pieces
you need.


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply



"Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
news:%23k5p$RSrIHA.3900(a)TK2MSFTNGP05.phx.gbl...
> Hi Pavel,
>
> thanks for your Answer.
>
>>Devcon.exe is your friend. Disable the adapter and and enable again.
>>(the CM_Eject.... etc are more complicated and AFAIK difficult to get
>>right )
>
> If devcon does this reliable (i didnt test it) why could not it
> be done by some self written application? I think there must be
> also some way to initiate a rescan of the system buses from
> Usermode as the device manager does,...
> Regards
>
> Kerem
>
> --
> -----------------------
> Beste Gr�sse / Best regards / Votre bien devoue
> Kerem G�mr�kc�
> Microsoft Live Space: http://kerem-g.spaces.live.com/
> Latest Open-Source Projects: http://entwicklung.junetz.de
> -----------------------
> "This reply is provided as is, without warranty express or implied."
> "Pavel A." <pavel_a(a)NOwritemeNO.com> schrieb im Newsbeitrag
> news:eryRk4jqIHA.3408(a)TK2MSFTNGP03.phx.gbl...
>> Devcon.exe is your friend. Disable the adapter and and enable again.
>> (the CM_Eject.... etc are more complicated and AFAIK difficult to get
>> right )
>>
>> --PA
>>
>>
>> "Kerem G�mr�kc�" <kareem114(a)hotmail.com> wrote in message
>> news:OPNNyPVqIHA.3960(a)TK2MSFTNGP02.phx.gbl...
>>> Hi,
>>>
>>> i have a PCMCIA WLan Adapter plugged into my Laptop.
>>> I would like to remove it from my system by code and reinsert
>>> it into system, also done by code. The Hardware Device will still
>>> be plugged into the systems pcmcia slot after "software" removal.
>>> How can i do this by user mode code?
>>>
>>> I want to remove the device as it would be done by the tray icon
>>> for the devices and i want to reinsert it into the system. The Hardware
>>> will be always in the pcmcia slot,...
>>>
>>> TIA
>>>
>>> Regards
>>>
>>> Kerem
>>>
>>>
>>> --
>>> -----------------------
>>> Beste Gr�sse / Best regards / Votre bien devoue
>>> Kerem G�mr�kc�
>>> Microsoft Live Space: http://kerem-g.spaces.live.com/
>>> Latest Open-Source Projects: http://entwicklung.junetz.de
>>> -----------------------
>>> "This reply is provided as is, without warranty express or implied."
>>>
>
>