Tuesday, 27 January 2009

Disabling Security when connecting to a device.

You will most probably know all the steps required when connecting to a device from within Visual Studio 2005/2008 but did you know that you can get rid of the annoying call of cMaccept.exe? Remember this is the .exe you have to call each time you lose the connection to the device. I was - again - astonished to see that this is not as clear as it should be, as it is very well documented in msdn.

All you have to do is disable the devices security by setting the following registry key:
HLKM\System\CoreConOverrideSecurity = 1

Once you have done that you can skip calling cMaccept when connecting to the device.

Note: It goes without saying that this registry key should only be set manually when you are developing applications for a device. I would not recommend shipping a device with this registry key set.

So long and thanks for all the fish!

No comments: