The Imaging Source Community  

Go Back   The Imaging Source Community > Third Party Software Support > MontiVision Development Kit

Attention:

MontiVision Development Kit Support for MontiVision Development Kit.

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old August 19, 2009
FS7 FS7 is offline
Registered User
 
Join Date: Feb 2009
Posts: 21
IMVCrypt usage SetKey

Hi,

could anybody get me an example, how IMVCrypt::SetKey is to call?

I allways get HRESULT 0x80070057 (An invalid parameter was passed to the returning function)

My Code:
CString strK = "9471BD247F6B887FA291...";
BYTE *byteK = new BYTE[strK.GetLength()+1];
ZeroMemory(byteK,strK.GetLength()+1);
memcpy(&byteK[0],strK,strK.GetLength());
hr = pNWCrypt->SetKey(strK.GetLength(), byteK); //hr=0x80070057
delete [] byteK;


Any Idea?

Bestz Regards
FS7
Reply With Quote
  #2  
Old August 21, 2009
FS7 FS7 is offline
Registered User
 
Join Date: Feb 2009
Posts: 21
Re: IMVCrypt usage SetKey

Hi again,

in the meantime i was testing something:

// Create Key, Succeeded!
hr = pNWCrypt->CreateKey();

// Get Key, Succeeded!
int length=0;
BYTE pkey[MAX_KEY_LENGTH];
ZeroMemory(pkey,MAX_KEY_LENGTH);
hr = pNWCrypt->GetKey(MAX_KEY_LENGTH, &length, pkey);

// Set Key, Failed with 80070057 (An invalid parameter was passed to the returning function)!!!!
hr = pNWCrypt->SetKey(length, pkey);

What's wrong?
I just set the key i got before!

For any idea i would be happy!
Reply With Quote
  #3  
Old August 21, 2009
Marc Cymontkowski's Avatar
Marc Cymontkowski Marc Cymontkowski is offline
Support Engineer
MontiVision
 
Join Date: Apr 2003
Posts: 287
Re: IMVCrypt usage SetKey

Hi,

Please ignore the current return value, as it is not set to S_OK after a successful operation. We will fix this issue in the next filter version.


Thank You,

Marc Cymontkowski
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to reduce CPU usage time while using USB camera sethupathy IC Imaging Control ActiveX 4 March 24, 2010 07:55:45
High CPU Usage Unregistered IC Imaging Control ActiveX 3 July 15, 2003 18:10:51
CPU usage Unregistered IC Imaging Control ActiveX 1 January 9, 2003 17:56:06
CPU usage in DFG/1394 Unregistered IC Imaging Control ActiveX 1 December 16, 2002 13:17:56


All times are GMT +1. The time now is 06:09:19.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 1991 - 2010 The Imaging Source Europe GmbH