Henrik,

>I have noticed that the IPersistFile.Load method throws a
>COM exception (E_FAIL) if the file is not a shell link, I
>wonder if that is an acceptable test for shell link or not!?!

I suppose there could be other reasons it could fail, so I wouldn't rely 
only on that. But combine it with the checking the file extension, and you 
should be safe.


Mattias

===
Mattias Sjögren
[EMAIL PROTECTED]

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to