Disable USB Charging on Windows Mobile devices
If your device can charge over USB, you can probably disable this feature by setting:
HKLMDriversBuiltInusbfndrvEnableUsbCharging = 0 (DWORD decimal)
And to re-enable:
HKLMDriversBuiltInusbfndrvEnableUsbCharging = 1 (DWORD decimal)