In This Topic ▼

IltmsLicenseManager::SetLicense

#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.

Returns

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.

Comments

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.

Platforms

Win32, x64

See Also

Elements:

IltmsLicenseManager Interface

Topics:

Media Streaming Function Groups 

Setting a Runtime License

Example

For a C++ example, refer to License Holder Example for C++.

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Media Streaming C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.