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

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Media Streaming C API Help