What API function can get the message about the hardware plu

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by scott >> Wed, 4 Feb 2004 2:02:22 GMT

Hi
What API function can get the message about the hardware plug and pull out event?

Regards,
Scott

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by allistar >> Wed, 4 Feb 2004 8:08:19 GMT

Which hardware in particular are you intrested in getting events for?

Allistar.
--
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by scott >> Wed, 4 Feb 2004 9:25:35 GMT

Hi Allistar,
Thanks for your reply.
We are using the ikey which is like watchdog. When it is plugged, then our software will read and verify its security information which mainly are user name and password. User will not entry the user name and password to log on our software instead of it. After it is pull out, software will be shut down automatically.
Can you have any suggestion about it?

Scott

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by allistar >> Wed, 4 Feb 2004 23:05:07 GMT

It seems that this is a USB device. You'll need to write an application (most likely not in JADE) that detects when the device has been removed. There should be a system event that is broadcast when this happens, or alternatively you could periodically pool the device to make sure it is still there.

I doubt you'll be able to detect the removal of this device using JADE alone. Most likely some lower level C++ code is required.

Regards,
Allistar.

------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst allistar@silvermoon.co.nz
Auckland, NEW ZEALAND

Silvermoon Software
Specialising in JADE development and consulting
Visit us at: http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at: www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by scott >> Thu, 5 Feb 2004 0:57:44 GMT

I know most likely some lower level C++ code is required, so I want to know what API(application programming interface) function can do it.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: What API function can get the message about the hardware plu

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:32 pm

by Torrie >> Thu, 5 Feb 2004 7:54:35 GMT

Try looking at the device management section on MSDN and RegisterDeviceNotification. It looks like a windows message is sent.

It would be nice if there was a mechanism to register for certain windows messages in Jade perhaps with a call back function.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 48 guests