Add new comment

Hello Issam - a very nice piece of code.

I was using it - and testing it - and I came across an interesting problem. If you use the code to try to generate the popup menu for 'c:\' (or any root directory - d:\, e:\, etc.) - it will crash on the line

OleCheck(ShellParentFolder.ParseDisplayName(HND, nil,
PWideChar(WideString(ExtractFileName(aFileList[idx]))),
chEaten, FilePIDL, dwAttributes));

the error is (raised exception exception class EOleSysError with message 'The parameter is incorrect')

Have you encountered this?
Do you have a workaround?