Windows >
Software Development for Windows Client Forums
>
Development with the Windows Sensor and Location Platform
>
What APIs are accessible from sensor driver?
What APIs are accessible from sensor driver?
- Hi group,is it possible to access the Native WLAN API from a sensor driver (http://msdn.microsoft.com/en-us/library/ms705969(VS.85).aspx)? Is furthermore possible to access the WinINet API as well (http://msdn.microsoft.com/en-us/library/aa385483(VS.85).aspx)?If not, could someone please point me to alternative APIs?TIAneil
neil
Answers
- Hi neil,
Architecturally, there are no constraints on using any user mode APIs from an UMDF driver (which is what sensor drivers are). Having said that, I am not really familiar with the APIs you mention so I cannot conclusively say if they would work or not. If you have any specific problems, let us know and we will follow up on them.
Thanks,
Prasanna- Marked As Answer byneil.young Friday, October 23, 2009 11:22 AM
- Neil,
I believe the Native WLAN API should be OK, however WinINet is not officially supported for use in services, which is how the user mode driver runs. See this article for more details:
http://support.microsoft.com/kb/238425
Instead, it is recommended that you use WinHTTP for network connectivity from within a service. MSDN has some good documentation on this, and it is similar to WinINet in structure. One thing to pay attention to is the use of proxy servers on certain networks--you should attempt to use the Auto Proxy configuration wherever possible to ensure the broadest compatibility.
Dan- Marked As Answer byneil.young Friday, October 23, 2009 11:22 AM
All Replies
- Hi neil,
Architecturally, there are no constraints on using any user mode APIs from an UMDF driver (which is what sensor drivers are). Having said that, I am not really familiar with the APIs you mention so I cannot conclusively say if they would work or not. If you have any specific problems, let us know and we will follow up on them.
Thanks,
Prasanna- Marked As Answer byneil.young Friday, October 23, 2009 11:22 AM
- Hi Prasanna,thanks for confirming my expectations.Regards
neil - Neil,
I believe the Native WLAN API should be OK, however WinINet is not officially supported for use in services, which is how the user mode driver runs. See this article for more details:
http://support.microsoft.com/kb/238425
Instead, it is recommended that you use WinHTTP for network connectivity from within a service. MSDN has some good documentation on this, and it is similar to WinINet in structure. One thing to pay attention to is the use of proxy servers on certain networks--you should attempt to use the Auto Proxy configuration wherever possible to ensure the broadest compatibility.
Dan- Marked As Answer byneil.young Friday, October 23, 2009 11:22 AM
- Hi Dan,
thanks for pointing that out. I'm not bound to WinInet, it just sprang into my mind first :) I just have to HTTP GET a couple of things.
Kind regards and thanks to you both.
Have a great weekend
neil - There is a number of APIs you can't call from UMDF driver even if it runs in user mode. For example the HID apis do not work as I recently discovered and we discussed it in another threadAlso remember that the UMDF drivers run in the context of local service api and you can't do some things - for example you cannot show a Window.
Michael


