Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
New Developer
Posts: 13
Registered: ‎11-24-2009
My Device: Not Specified
Accepted Solution

USB Password Challenge Cancellation

Does anyone know how to cancel a USB channel request?

 

Currently, in my desktop app, if you try to connect (USB) to a BlackBerry with a password set it challenges the user for the password. What happens if the user does not know the password or wants to cancel the request? I cannot find a way to cancel the request. It just keeps prompting for the password.

New Developer
Posts: 13
Registered: ‎11-24-2009
My Device: Not Specified

Re: USB Password Challenge Cancellation

http://msdn.microsoft.com/en-us/library/aa645736(VS.71).aspx

 

"In COM, a common way to return success or failure is to return an HRESULT and have an out parameter marked as "retval" in MIDL for the real return value of the method. In C# (and the .NET Framework), the standard way to indicate an error has occurred is to throw an exception."

 

This appears to have resolved my issue.