Cancelado

Win API \ C++ code to detect USB device connection

I need a WinAPI/C++ function that can detect connected USB device by VendorID and productID. The code should look like 2 functions:

void Init(); // init code

bool IsUSBDevConected(int vid, int pid); // detect presence of the device.

void Release(); // release code

IsUSBDevConected will called once per second. The device is USB keyborad.

## Deliverables

The code should be compiled under VisualC++ 6.0 or Visual Studio 2005.

I expect to receive a simple MFC/WinAPI dialog box application that demonstrates how these 3 functions works to detect a presence of a USB device. application should call IsUSBDevConected() once per second to dynamically show connected or not the device.

On my PC I will change Vid & Pid in the code to test it with my device.

But coder can test it with any USb flash drive or any USb mouse.

The device name is not important for me. And I assume that there will be only one connected USB device with that Vid & Pid.

Habilidades: Programação C, Engenharia, Microsoft, MySQL, PHP, Arquitetura de software, Teste de Software, Área de trabalho do Windows

Ver mais: code detect usb device, simple code detect usb, win api, detect usb device code, winapi usb, winapi detect usb device, detect usb device connected, Detect USB, pid programming, pc connection, c++ usb programming, c++ programming test, c programming functions, c for int, detect device, c programming test, mfc c++, me device, code name one, c++ code, c# usb, c mfc, c code, bool, API connection

Acerca do Empregador:
( 31 comentários ) Moldova, Republic of

ID do Projeto: #3031282

28 freelancers estão ofertando em média $40 para este trabalho

jacobdd1

See private message.

$59.5 USD in 5 dias
(277 Comentários)
7.1
minyun

See private message.

$25.5 USD in 5 dias
(95 Comentários)
6.5
wangpretty

See private message.

$29.75 USD in 5 dias
(27 Comentários)
5.3
VCExperts

See private message.

$59.5 USD in 5 dias
(16 Comentários)
4.9
casinoengineer

See private message.

$59.5 USD in 5 dias
(7 Comentários)
4.9
mirceac

See private message.

$41.65 USD in 5 dias
(39 Comentários)
4.8
fwpbd

See private message.

$34 USD in 5 dias
(18 Comentários)
5.0
specrentacoder

See private message.

$42.5 USD in 5 dias
(11 Comentários)
4.4
mephvw

See private message.

$50.15 USD in 5 dias
(30 Comentários)
4.3
exspritesvw

See private message.

$34 USD in 5 dias
(17 Comentários)
4.2
gluciovw

See private message.

$42.5 USD in 5 dias
(18 Comentários)
4.0
NizTech

See private message.

$25.5 USD in 5 dias
(13 Comentários)
3.4
droxico

See private message.

$59.5 USD in 5 dias
(12 Comentários)
3.3
gzer0vw

See private message.

$42.5 USD in 5 dias
(4 Comentários)
3.0
kapilpendse

See private message.

$29.75 USD in 5 dias
(2 Comentários)
3.0
mpcsol

See private message.

$25.5 USD in 5 dias
(2 Comentários)
2.0
coolbiddervw

See private message.

$25.5 USD in 5 dias
(4 Comentários)
1.9
ujnvw

See private message.

$42.5 USD in 5 dias
(3 Comentários)
1.5
dcondevw

See private message.

$51 USD in 5 dias
(1 Comentário)
1.3
Xan8ter

See private message.

$29.75 USD in 5 dias
(2 Comentários)
1.1