RFID_STATUS WINAPI RFID_GetProfileListW ( RFID_HANDLE32  readerManagementHandle,
LPPROFILE_LIST  lpProfileList 
)

This function gets the list of profile available in the reader.

Function name : RFID_GetProfileList

Parameters:
[in] readerManagementHandle 
Handle returned by RFID_Login.
[out] lpProfileList 
Pointer to PROFILE_LIST .
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_READER_FUNCTION_UNSUPPORTED Unsupported on XR and Device-based readers like MC

Remarks:
See also:
RFID_SetActiveProfile, RFID_ImportProfileFromReader, RFID_ExportProfileToReader, RFID_DeleteProfile
Remarks:
Example: See
        RFID_HANDLE32 readerManagementHandle;
        RFID_STATUS rfidStatus = RFID_API_SUCCESS;
        LOGIN_INFO loginInfo;
        READER_TYPE readerType = FX;
        BOOL secureMode=0;

        _tcscpy(loginInfo.userName, TEXT("admin"));
        _tcscpy(loginInfo.password, TEXT("change"));
        _tcscpy(loginInfo.hostName, TEXT("157.235.208.51"));
        loginInfo.forceLogin = true;
        loginInfo.version = RFID_API3_5_1;

        if(RFID_API_SUCCESS == RFID_Login(&readerManagementHandle, &loginInfo, readerType, secureMode, NULL))
        {
                PROFILE_LIST profileList;
                TCHAR currentFileName[MAX_PATH];
                TCHAR newFileName[MAX_PATH];
                rfidStatus = RFID_GetProfileList(readerManagementHandle,  &profileList);
                if(RFID_API_SUCCESS == rfidStatus)
                {
                        for(int count = 0; count < profileList.numProfiles; count++)
                                printf("\n%d. %S",count+1,  profileList.pProfileName[count]);
                        _stprintf(currentFileName, TEXT("%s"), profileList.pProfileName[0]);
                        _stprintf(newFileName, TEXT("new%s"), currentFileName);
                }

                rfidStatus = RFID_ImportProfileFromReader(readerManagementHandle,  currentFileName, TEXT(".\\"));       
                if(RFID_API_SUCCESS == rfidStatus)
                {
                        CopyFile(currentFileName, newFileName, false);
                        // can change some profile settings if needed
                        // and export it back to reader
                        rfidStatus = RFID_ExportProfileToReader(readerManagementHandle,  newFileName,TEXT(".\\"), FALSE);
                        rfidStatus = RFID_SetActiveProfile(readerManagementHandle, newFileName);
                }
                rfidStatus = RFID_SetActiveProfile(readerManagementHandle, currentFileName);
                rfidStatus = RFID_DeleteProfile(readerManagementHandle, newFileName);

                RFID_Logout(readerManagementHandle); // Logout so that Dll is cleaned up
        }


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