#include "ltms.h"
C Syntax |
HRESULT IltmsLicenseManager_SetLicense(pLicenseManager , license, key, flags) |
C++ Syntax |
HRESULT SetLicense(license, key, flags) |
IltmsLicenseManager *pLicenseManager ; |
pointer to an interface |
BSTR license; |
license |
BSTR key; |
key |
LONG flags; |
flags |
Sets the license for the calling application.
Parameter |
Description |
pLicenseManager |
Pointer to an IltmsLicenseManager interface. |
license |
String containing the license or a path to the license file. |
key |
String containing the key or a path to the key file. |
flags |
Flags that specify the type of operation to perform. It is a bitwise OR of the ltmsSetLicenseFlags Enumeration Constants. |
S_OK |
The function was successful. |
<> S_OK |
An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
This function will set the license for the entire application, and is only required to be called once. If the library is already licensed, any additional calls to this function will be ignored, unless ltmsSetLicenseFlags_Overwrite is specified.
Required DLLs and Libraries
LTMS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64
Elements: |
|
Topics: |
|
Setting a Runtime License |
For a C++ example, refer to License Holder Example for C++.