Friday, 15 March 2013

c++ - Can't access USB device inside Windows Store App -



c++ - Can't access USB device inside Windows Store App -

ok, first shall point new windows apps development, good, since trying develop windows store app pc utilize primesense scanner connected via usb. have asked more specific question here.

this time have more generic question, more related windows store app development. using vs2013 express , compiling win32.

when compile application vs2012 , run execcutable file, can connect scanner perfectly. can't same vs2013 , running store app.

i know device connected , drivers updated , dlls file placed in widnows scheme 32 directory. have added capabilities app manifest , added next device capability

<m2:devicecapability name="usb"> <!--osrfx2 device--> <m2:device id="vidpid:1d27 0609"> <m2:function type="classid:ff * *" /> <m2:function type="name:vendorspecific" /> </m2:device> </m2:devicecapability>

the vid , pid, match corresponding codes of device.

one of errors recieve when trying conenct scanner using openni is:

could not open "\\?\usb#vid_1d27&pid_0609&mi_00#7&1601586a&0&0000#{c3b5f022-5a42-1980-1909-ea72095601b1}" usb device not found

this error quite frustrating since know device connected. tend think there level os specificity on windows store app side of game not enabling connect device. said, compiling win32.

is there chance drivers not work windows store app. there stuff should within windows store app logic not doing , necessary connect usb device? sorry, new windows store app development.

thank you.

you can't metro apps.

you typically create handle usb device calling createfile object mananger path file 'create'. createfile not allowed in metro apps - "desktop apps only" - , 'replacement', createfile2, doesn't allow opening object manager objects.

furthermore, documentation createfile2 states in metro apps function can open files , directories (and not things pipes, mailslots, consoles, etc.).

see this post on social.msdn

unless missed something, don't think possible.

c++ windows winapi windows-store-apps openni

No comments:

Post a Comment