Thread: Dc_markdirty?
View Single Post
Old 03-08-2005, 08:24 AM  
Mouton
Posse Member
 
Join Date: Dec 2002
Posts: 1,956
Default

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();
}
Mouton is offline