RFID_STATUS WINAPI RFID_ListUserAppsW ( RFID_HANDLE32  readerManagementHandle,
LPUSERAPP_LIST  lpAppList 
)

This function lists all the user applications installed on the reader.

Parameters:
[in] readerManagementHandle 
Handle to the RFID device.
[out] appList 
Pointer to USERAPP_LIST structure. Contains the list of installed applications.The pointer is handled by the RFID3 API and the user is not expected to clean up the same.
Returns:
If the function succeeds the return value is RFID_API_SUCCESS. If the function fails the return value is one of the following:
  • RFID_API_INVALID_HANDLE Handle provided is invalid
  • RFID_API_PARAM_ERROR Invalid parameters.
  • RFID_API_CANNOT_ALLOC_MEM Out of memory.
Remarks:
This function gets the list of all applications installed on the reader. If on successful return the appList variable is NULL then there are no applications installed.
See also:
RFID_InstallUserApp, RFID_UninstallUserApp, RFID_StartUserApp, RFID_StopUserApp, RFID_GetUserAppRunStatus, RFID_SetUserAppAutoStart
Remarks:
Example: See
BOOLEAN findApp(TCHAR *testAppName, BOOLEAN *found)
{
        USERAPP_LIST appList;
        LPUSERAPP_LIST temp = NULL;
        RFID_STATUS rfidStatus = RFID_API_SUCCESS;

        *found = FALSE;
        
        // RFID_ListUserApps
        rfidStatus = RFID_ListUserApps(GOOD_RM_HANDLE, &appList);
        if(RFID_API_SUCCESS == rfidStatus)
        {
                temp = &appList;

                int maxapps=0;
                maxapps = temp->numMaxApps;
                for(int nindex = 0; nindex < maxapps; nindex++)
                {
                        if(temp->pUserAppData[nindex].pAppName != NULL)
                        {
                                if(_tcscmp(temp->pUserAppData[nindex].pAppName, testAppName) == 0)
                                {
                                        *found = TRUE;
                                        break;
                                }
                        }

                }
        }
        return found;
}


Generated on Fri Mar 4 02:25:32 2016 for RFIDAPI3 1.1 C API Documentation by  doxygen 1.5.6