![]() |
|
|||||||
| MontiVision Development Kit Support for MontiVision Development Kit. |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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! |
|
#3
|
||||
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |