------------------------------------------------------------------------------- Save the list of recent files to the registry -------------------------------------------------------------------------------
| 727 | // Save the list of recent files to the registry |
| 728 | //------------------------------------------------------------------------------- |
| 729 | void SaveHistory() { |
| 730 | for (unsigned int i = 0; i < AI_VIEW_NUM_RECENT_FILES;++i) { |
| 731 | char szName[66]; |
| 732 | sprintf(szName,"Recent%i",i+1); |
| 733 | |
| 734 | RegSetValueEx(g_hRegistry,szName,0,REG_SZ, |
| 735 | (const BYTE*)g_aPreviousFiles[i].c_str(),(DWORD)g_aPreviousFiles[i].length()); |
| 736 | } |
| 737 | } |
| 738 | |
| 739 | //------------------------------------------------------------------------------- |
| 740 | // Recover the file history |
no outgoing calls
no test coverage detected