/* created by wangtao 2/12/2005 */

#ifndef _CommonSetup_h_
#define _CommonSetup_h_
#pragma once

#ifdef  _MSC_VER
#pragma pack(push , 8 )
#endif
 
#ifdef COMM_INSTDLL 
  #define INSTAPI  extern "C" __declspec(dllexport) __stdcall
#else
  #define INSTAPI  extern "C" __declspec(dllimport) __stdcall
#endif

/*
  
  Custom performance can be implemented by this function with the relative parameter. 
   
   the parameter is one of the following values. 
    
     "/install/n/ProductName"    
  
      Remarks 
   
            Install this product.  "/n" indicate the smcardcard device count will be install 
            
            Sample : Action("/install/2/ProductName")  

            Return : 1 =>  Reboot system for the driver work well.  
                     0 =>  Reboot is not neccessary.

     "/ishaveinst/ProductName" 
    
      Remarks
     
            Detect whether the driver had been installed before.
            
            Sample : Action("/ishaveinst/ProductName")
            
            Return : 1 => The driver of the product have been installed.
                     0 => Driver have not been installed. 
            
      "/isinstolddrv"   LEGACY OPTION FOR Rockey5 Device Driver , you can ignore it in this DLL
       
       Remarks
          
            Detect whether the old  driver had been installed before.
            
            Sample : Action("/ishaveoldinst")
            
            Return : 1 => The old driver have been installed.
                     0 => The old driver have not been installed. 
            
       "/uninstall/ProductName"
       
        Remarks 
           
             Uninstall this product.
             
             Sample : Action("/uninstall/ProductName")
             
             Return : 1 =>  Reboot system for the operation in effective.  
                      0 =>  Reboot is not neccessary.
                  
            
      */
//INSTAPI int Action(IN char* szParameter);

typedef int (__stdcall proc)(char *);


#ifdef  _MSC_VER
#pragma pack(pop)
#endif

#endif


