#include "Mra.h" #include "MraIcons.h" void AddIcoLibItems(LPWSTR lpwszRootSectionName,LPWSTR lpwszSubSectionName,const GUI_DISPLAY_ITEM *pgdiItems,SIZE_T dwCount,HANDLE *hResult) { char szBuff[MAX_PATH]; WCHAR wszSection[MAX_PATH],wszPath[MAX_FILEPATH]; SKINICONDESC sid={0}; sid.cbSize = sizeof(sid); sid.pwszSection = wszSection; sid.pwszDefaultFile = wszPath; sid.cx = sid.cy = 16; sid.flags = SIDF_ALL_UNICODE; if (lpwszSubSectionName==NULL) lpwszSubSectionName=L""; GetModuleFileName(masMraSettings.hInstance,wszPath,SIZEOF(wszPath)); mir_sntprintf(wszSection,SIZEOF(wszSection),L"%s%s%s",lpwszRootSectionName,PROTOCOL_NAMEW,lpwszSubSectionName); for (SIZE_T i=0;i