Side note: The iniCom guys don't know how to do that. They are producers / distributors; not developers.
http://www.ioftpd.com/board/showthre...CTORYMARKDIRTY
http://www.ioftpd.com/board/showthre...=shared+memory
And:
Code:
void flushDirCache(const char *directory)
{
if (!initSharedMem(1024 + ((DWORD)strlen(directory) + 1)))
return;
lpMessage->dwIdentifier = DC_DIRECTORY_MARKDIRTY;
LPTSTR folder = (LPTSTR)lpMessage->lpContext;
CopyMemory(folder,directory,strlen(directory)+1);
dwReturn = SendMessage(hIoFTPD, WM_SHMEM, NULL, (LPARAM)hMemory);
if (!dwReturn) {
WaitForSingleObject(hEvent,2000);
}
closeSharedMem();
}