WM6.5 AutoStartOnConnect EnumFiles Fails

Feb 18, 2011 at 4:04 PM

We have an application that downloads files from the device to the desktop and has worked fine for a few years.  It is launched by cradling device using the 'HKLM\Software\Microsoft\Windows CE Services\AutoStartOnConnect' command line.  With the new WM6.5 devices the call to EnumFiles returns null.  However if we run the same application by clicking on the program shortcut it works fine.  I am assuming that WM6.5 somehow checks the process owner and denies access.

Mar 24, 2011 at 4:11 PM

There is a separate CodePlex project for RAPI2.  If you switch to using this project then ActiveSync autostarton connect works with WM6.5.