I am looking to replicate the same SharePoint integration behaviour as seen in MS Office e.g. in Word, if you open a file stored in SharePoint it will automatically detect whether the file is currently checked out, or whether it requires checking out.
After some investigation, I have found that Office uses a various number of ways to integrate with SharePoint based on how you have actually accessed the document e.g. Mapped Drive/Web folders etc. - Communicating with SharePoint
I am looking for some advice on what is the most efficient (but reliable) way of determining whether the URL the user has selected actually resides in SharePoint?
So far I have came to the conclusion I am going to have to use web services to attempt a connection, if it succeeds then I know the user has selected a file residing in SharePoint.
Does this seem like a reasonable approach? Can you suggest a better alternative?