Last Modified October 1, 2026

DNA_DeActivate() API

DNA_DeActivate(Product_Key, Password)

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.

<Password>

License Code Password, provided by:

  • If Product uses "User Authentication" option, then provided by the User
  • If Product does not use "User Authentication" option, then a hard-coded default Password used for all Licenses for this Product

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

The License Activation Code (retrieved from the CDM License File) for this <Product_Key> will be de-activated using the Password. This will free-up a "Computer" on a Single-User / Multi-Computer License, or free-up a "Seat" on a Multi-User or Floating License on the DNA Server.

The CDM License File will be disabled on the User’s computer.

If this is a Floating License, then a special "Floating CDM" will be created to allow for the re-activation of this computer on the next start-up.
See Floating Licenses     for more informaiton.

 

Declarations and Examples

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