SoftwareShield ClientProtector COM Component > ClientProtector (SSCProtector) Reference > GetUDDate

GetUDDate


The GetUDDate function retrieves one of the user defined dates stored in the license based on an index.

Syntax

HRESULT GetUDDate (

long Index,
long
* UDDateYear,
long
* UDDateMonth,
long
* UDDateDay

);

Parameters

Index 

[IN] Numeric index (0 to 4 inclusive) corresponding the user defined date field stored in the license which you wish to retrieve.

 

UDDateYear 

[OUT] This is a (pointer to a) numeric value which will return with the full-length Gregorian year corresponding to the date stored in the user defined date field specified by the Index parameter.

 

UDDateMonth 

[OUT] This is a (pointer to a) numeric value which will return with the Gregorian month (1 through 12 inclusive) corresponding to the date stored in the user defined date field specified by the Index parameter.

 

UDDateDay  

[OUT] This is a (pointer to a) numeric value which will return with the Gregorian day (1 through 31 inclusive) corresponding to the date stored in the user defined date field specified by the Index parameter.

Remarks

The GetUDDate function retrieves one of the user defined dates stored in the license based on the numeric value passed in the Index parameter.  If Index is not within range (0 to 4 inclusive) the result is undefined.

Return Value

As with all COM function calls they return an HRESULT. HRESULT is a data type that is a 32-bit error or warning code. Check your compilers documentation for information on interpreting the HRESULT value.

Function Information

Exposed By Interface:

"ISSCProtector"

Exposed In COM Server Binaries:

"SSCProt.dll" and "SSCProtD.dll"

Related Topics