Contents - Index


4.2.3.12 Get Publisher Data

HRESULT WINAPI SLS_GetPublisherData(
                                                                   LPCSTR pszProductID,
                                                                   LPTSTR lpszPublisherData);

Although Sheriff provides a comprehensive set of licensing features including time/unit metering, expiration control and feature access control, sometimes publishers might want to control their licences in special ways that would be difficult to implement with the standard features - Set/Get Publisher Data is designed for this purpose. Publisher data is simply a space up to 32 bytes that Sheriff uses to keep any data that publishers might specify. The format and meaning of the data is up to the publisher.

Publisher data is kept together with the product's Licence Key in the licence file. It is set by calling SLS_SetPublisherData and retrieved by calling SLS_GetPublisherData.