Last Modified September 29, 2026

DNA_ActivateOffline() API

DNA_ActivateOffline(Product_Key, Activation_Code)

Parameters Description
<Product_Key>

The <Product_Key> of your DNA Product.

The <Product_Key> is emailed to you when you create a Product in the DNA Control Panel and is available under Product Configuration in the DNA Product Control Panel.

<Activation_code>

The License Code to activate, provided by the User

For list of Error Codes and descriptions, see DNA Error Codes    .

Creates a ".LIC" file on the User’s computer in the same location as the CDM License File as set by the DNA_SetProperties() API Call.

The ".LIC" file contains necessary information to create a CDM License File as part of the Offline Activation process.

See Offline Activation Process    .

 

Declarations and Examples

                      	
                        
							FUNCTION DNA_ACTIVATEOFFLINE(PRODUCT_KEY,ACTIVATION_CODE:PANSICHAR):INTEGER; STDCALL;
                  		
                  
                      
                        
                        DECLARE FUNCTION DNA_ACTIVATEOFFLINE LIB "DNA.DLL" (BYVAL PRODUCT_KEY AS STRING, BYVAL ACTIVATION_CODE AS STRING) AS INTEGER
                      
                  
                      
                        
                        INT __STDCALL DNA_ACTIVATEOFFLINE(CHAR *PRODUCT_KEY,CHAR *ACTIVATION_CODE);
                      
                  
                      
                        
                        INT __STDCALL DNA_ACTIVATEOFFLINE(CHAR *PRODUCT_KEY,CHAR *ACTIVATION_CODE);
                      
                  
                      
                        
                        INT __STDCALL DNA_ACTIVATEOFFLINE(CHAR *PRODUCT_KEY,CHAR *ACTIVATION_CODE);
                      
                  
                      
                        
                        PUBLIC NATIVE INT DNAACTIVATEOFFLINE(STRING PRODUCT_KEY, STRING ACTIVATION_CODE);
                      
                  
                      
                        
                        DECLARE FUNCTION DNA_ACTIVATEOFFLINE LIB "DNA.DLL" (BYVAL PRODUCT_KEY AS STRING, BYVAL ACTIVATION_CODE AS STRING, BYVAL) AS SHORT
                      
                  
                      
                        
                        PUBLIC STATIC EXTERN INT DNA_ACTIVATEOFFLINE(STRING PRODUCT_KEY,STRING ACTIVATION_CODE);