EldoS | Feel safer!

Software components for data protection, secure storage and transfer

PasswordChangeRequest

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#14097
Posted: 08/03/2010 12:37:17
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

I'm using SBB 6 ActiveX version 7.1.163 and I need to use the ElSimpleSSHClient.OnPasswordChangeRequest event but the documentation says that it's not implemented in ActiveX. Is that correct?
#14099
Posted: 08/03/2010 12:50:57
by Ken Ivanov (Team)

Thank you for contacting us.

Hmm, the documentation seems to be a bit obsolete. The event is actually implemented and supported by all the SBB editions (ActiveX, VCL, .NET).
#14100
Posted: 08/03/2010 12:58:40
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Great, thanks.
#14101
Posted: 08/03/2010 13:18:41
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Can you give me the parameters please. I have (C++):

OnPasswordChangeRequest(LPCTSTR strPompt, LPCTSTR strNewPassword, BOOL FAR* bCancel)

but I don't think the strNewPassword is correct. Should it be a LPDISPATCH?

Thanks,
Mike
#14102
Posted: 08/03/2010 13:31:45
by Ken Ivanov (Team)

It depends on the exact COM/ActiveX wrapper being used.

The IDL declaration looks like the following:
[id(0x00000106)]
void OnPasswordChangeRequest([in] BSTR Prompt, [in, out] BSTR * NewPassword, [in, out] VARIANT_BOOL * Cancel);

So it is likely that strNewPassword should be declared as LPCTSTR * strNewPassword (if strPrompt is returned as LPCTSTR).
#14111
Posted: 08/04/2010 12:20:32
by Mike Scriven (Standard support level)
Joined: 05/19/2006
Posts: 102

Actually Prompt is a string, not a BSTR but NewPassword needs a BSTR returned, so this is my function protype:

OnPasswordChangeRequest(LPCTSTR strPrompt, BSTR* strNewPassword, BOOL FAR* bCancel)

Thanks for your help,
Mike
Also by EldoS: CallbackFilter
A component to monitor and control disk activity, track file and directory operations (create, read, write, rename etc.), alter file data, encrypt files, create virtual files.

Reply

Statistics

Topic viewed 922 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!