Hi,

i want to catch any Device Event that araises on my system but i dont want
to write
a kernel mode driver to filter them. It should be a UserMode Application
with GUI.
i.e. an MFC Appliation or native Win32API with GUI. Best would be in C/C++
MFC.
How can i master this?

Thanks in advance...

Best regards

Kerem Gümrükcü

Re: How to catch Device events like USB, DeviceArrival/Removed etc. by Mark

Mark
Wed Jun 21 07:15:34 CDT 2006

Kerem Gümrükcü wrote:
> Hi,
>
> i want to catch any Device Event that araises on my system but i dont want
> to write
> a kernel mode driver to filter them. It should be a UserMode Application
> with GUI.
> i.e. an MFC Appliation or native Win32API with GUI. Best would be in C/C++
> MFC.
> How can i master this?
>
> Thanks in advance...
>
> Best regards
>
> Kerem Gümrükcü
>
>
Look at the setupapi functions in the SDK.

Re: How to catch Device events like USB, DeviceArrival/Removed etc. by Kerem

Kerem
Wed Jun 21 09:43:06 CDT 2006

Thanx Mark...i found some useful functions...

Best regards

Kerem Gümrükcü


"Mark Roddy" <markr@hollistech.com> schrieb im Newsbeitrag
news:eeUltxSlGHA.2112@TK2MSFTNGP04.phx.gbl...
> Kerem Gümrükcü wrote:
>> Hi,
>>
>> i want to catch any Device Event that araises on my system but i dont
>> want to write
>> a kernel mode driver to filter them. It should be a UserMode Application
>> with GUI.
>> i.e. an MFC Appliation or native Win32API with GUI. Best would be in
>> C/C++ MFC.
>> How can i master this?
>>
>> Thanks in advance...
>>
>> Best regards
>>
>> Kerem Gümrükcü
> Look at the setupapi functions in the SDK.



Re: How to catch Device events like USB, DeviceArrival/Removed etc. by fat_boy

fat_boy
Thu Jun 22 07:46:03 CDT 2006

Look at the WM_DEVIECHANGE message. IT should give you what you want.

Kerem G=FCmr=FCkc=FC wrote:
> Hi,
>
> i want to catch any Device Event that araises on my system but i dont want
> to write
> a kernel mode driver to filter them. It should be a UserMode Application
> with GUI.
> i.e. an MFC Appliation or native Win32API with GUI. Best would be in C/C++
> MFC.
> How can i master this?
>=20
> Thanks in advance...
>=20
> Best regards
>=20
> Kerem G=FCmr=FCkc=FC


Re: How to catch Device events like USB, DeviceArrival/Removed etc. by Kerem

Kerem
Thu Jun 22 08:00:13 CDT 2006

Hi fat_boy,

i already found it and it works fine (RegisterDeviceNotification).
Anyway, thanks for the Information...

Best regards

Kerem Gümrükcü


"fat_boy" <zzebowa@hotmail.com> schrieb im Newsbeitrag
news:1150980363.118816.141800@b68g2000cwa.googlegroups.com...
Look at the WM_DEVIECHANGE message. IT should give you what you want.

Kerem Gümrükcü wrote:
> Hi,
>
> i want to catch any Device Event that araises on my system but i dont want
> to write
> a kernel mode driver to filter them. It should be a UserMode Application
> with GUI.
> i.e. an MFC Appliation or native Win32API with GUI. Best would be in C/C++
> MFC.
> How can i master this?
>
> Thanks in advance...
>
> Best regards
>
> Kerem Gümrükcü