StarBurn SDK (Software Development Kit)
ContentsIndexHome
Example

This example checks for the toolkit version and initializes it. 

 

// Somewhere in the data region
ULONG l__ULONG__Version;
EXCEPTION_NUMBER l__EXCEPTION_NUMBER = EN_SUCCESS;
UCHAR l__UCHAR__RegistrationKey[ ] = { ... }; // Registration key goes here

// Get toolkit version
l__ULONG__Version =
StarBurn_GetVersion();

// Check for correct number
if ( l__ULONG__Version < SUPPORTED_VERSION_NUMBER )
{
// Handle error here...
}

// Try to initialize toolkit
l__EXCEPTION_NUMBER =
StarBurn_UpStartEx(
    ( PVOID )( &l__UCHAR__RegistrationKey ),
    sizeof( l__UCHAR__RegistrationKey )
    );

// Check for success
if ( l__EXCEPTION_NUMBER != EN_SUCCESS )
{
// Handle error here...
}