# Device discovery: LoadImageFromAccessPathW

**URL:** <https://forum.commonvisionblox.com/t/device-discovery-loadimagefromaccesspathw/261>\
**Category:** C-style API\
**Tags:** discovery\
**Created:** [October 31, 2017, 7:43am UTC](https://forum.commonvisionblox.com/t/device-discovery-loadimagefromaccesspathw/261 "2017-10-31T07:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tomes](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@Tomes](https://forum.commonvisionblox.com/u/Tomes)\
**Post date:** [October 31, 2017, 7:43am UTC](https://forum.commonvisionblox.com/t/device-discovery-loadimagefromaccesspathw/261/1 "2017-10-31T07:43:22Z")

</div>

In the device discovery API there’s a method called LoadImageFromAccessPathW documented. However, this method seems to be missing from the iCVCDriver header file. Is this method available?

---

<div class="post-metadata">

**Author:** ![illusive](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/illusive/32/61_2.png) [@illusive](https://forum.commonvisionblox.com/u/illusive)\
**Post date:** [October 31, 2017, 8:32am UTC](https://forum.commonvisionblox.com/t/device-discovery-loadimagefromaccesspathw/261/2 "2017-10-31T08:32:31Z")

</div>

Hi @Tomes!

Actually, the `LoadImageFromAccessPathW` shouldn’t even appear in the documentation - thanks a lot for pointing this out! `LoadImageFromAccessPathW` will be called by the _CVCImg.dll_ function `LoadImageFile` (and `LoadImageFileW`) when passing an access path as the ‘file name’. In principle, it would of course be possible to call it directly with the signature indicated in the documentation, but we wanted `LoadImageFile` to continue to be the only location that actually loads images and opens devices and I’d recommend passing the access token to `LoadImageFile`.

---

<div class="post-metadata">

**Author:** ![Tomes](https://avatars.discourse-cdn.com/v4/letter/t/c4cdca/32.png) [@Tomes](https://forum.commonvisionblox.com/u/Tomes)\
**Post date:** [October 31, 2017, 8:44am UTC](https://forum.commonvisionblox.com/t/device-discovery-loadimagefromaccesspathw/261/3 "2017-10-31T08:44:52Z")

</div>

Aha, I had a feeling it would be something like this. 🙂  
Thanks for the information.
