PRB: Problem with Sample Code Included In Windows Media Rights Manager 7.0 SDK (297170)
The information in this article applies to:
- Microsoft Windows Media Rights Manager 7.0
- Microsoft Win32 Application Programming Interface (API)
- the operating system: Microsoft Windows 2000
- the operating system: Microsoft Windows NT 4.0
This article was previously published under Q297170 SYMPTOMS
The Microsoft Windows Media Rights Manager version 7.0 Software Development Kit (SDK) Help file contains sample code under the "WMRMHeader.Sign." topic. When you try to use the sample code, you may receive the following error message:
SetCheckSum not set.
Error ID: 0x80041111
CAUSE
After the generation of private and public keys, in the Rights Manager you need to set checksum by calling the WMRMHeader.SetCheckSum function before calling the member function WMRMHeader.Sign. This problem occurs because the sample code does not contain the routine to set checksum.
RESOLUTION
When you use the sample code, add a line to call the member function SetCheckSum between the lines that call GenerateSigningKeys and Sign. For example:
' Create public and private signing keys to sign the header. Use the
' private key to sign the header. Share the public key with the
' license issuer.
Call KeysObj.GenerateSigningKeys(sPrivKey, sPubKey)
HeaderObj.SetCheckSum(sKey) ' Add this routine.
HeaderObj.Sign(sPrivKey)
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 2/11/2004 |
---|
Keywords: | kbDSWMM2003Swept kbKernBase kbprb KB297170 |
---|
|