ABSTRACT:
Using the NLS example ADDPINFO.C on the SDK results in NLSAddProductInformation() returning 0xC000100E, LS_BAD_ARG.
DETAILED DESCRIPTION
Recently, engineering put a check in many of the NLS APIs to return an LS_BAD_ARG when a NULL was passed in as a parameter. However, for this API, a NULL makes sense when the attributesLength is 0 and no licenseAttributes will be used. This problem has been reported to engineering.
A work-around to the problem is to pass into NLSAddProductInformation() a buffer to licenseAttributes and an attributesLength of 0.
Partial Example:
char atrBuff[255];
result = NLSAddProductInformation(LS_ANY, LS_ANY, publisher, product, version, numUnits, 0, (LS_VOID *)atrBuff);
| inlsr6.exe | 20.2 K | 2005-04-06 |
© 2009 Novell, Inc. All Rights Reserved.