Is possible to call intel api only at begin of the application ???

Is possible to call intel api only at begin of the application ???

Jose O.'s picture

Is possible to call intel app api only at begin of the application ???
I mean this:

int _tmain(int argc, _TCHAR* argv[])
{
     ADP_RET_CODE ret_code;;
     int ret = 0;

     ret_code = ADP_Initialize( );
     if (ret_code == ADP_SUCCESS) {
          ret_code = ADP_IsAuthorized( myApplicationID );
          if (ret_code == ADP_AUTHORIZED)
               ret = 1;
          ADP_Close( );
     }

     if (ret)   MyApp( );

}

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.