Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

58 lines
1.1 KiB

#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