Microsoft KB Archive/297170

= PRB: Problem with Sample Code Included In Windows Media Rights Manager 7.0 SDK =

Article ID: 297170

Article Last Modified on 2/12/2007

-

APPLIES TO


 * Microsoft Windows Media Rights Manager 7.0
 * Microsoft Win32 Application Programming Interface
 * Microsoft Windows 2000 Standard Edition
 * 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 &quot;WMRMHeader.Sign.&quot; 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)



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbdswmm2003swept kbkernbase kbprb KB297170

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.