windows-nt/Source/XPSP1/NT/net/wlbs/api/license.h

59 lines
1.1 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#ifdef __cplusplus
extern "C"
{
#endif
ULONG License_string_encode (
PCHAR str); /* NULL-terminated character string */
/*
Encodes string
returns ULONG:
<code> => encoded string
function:
*/
ULONG License_wstring_encode (
PWCHAR str); /* NULL-terminated wide character string */
/*
Encodes string
returns ULONG:
<code> => encoded string
function:
*/
BOOL License_data_encode (
PCHAR data, /* pointer to data */
ULONG len); /* data length in bytes */
/*
Encodes arbitrary data stream
returns BOOL:
TRUE => data encoded OK
FALSE => length has to be the multiples of LICENSE_DATA_GRANULARITY bytes
function:
*/
BOOL License_data_decode (
PCHAR data, /* pointer to data */
ULONG len); /* data length in bytes */
/*
Decodes arbitrary data stream
returns BOOL:
TRUE => data encoded OK
FALSE => length has to be the multiples of LICENSE_DATA_GRANULARITY bytes
function:
*/
#ifdef __cplusplus
}
#endif