At the moment I do not have access to a multidomain environment.
Nonetheless my application has functions and features which need to run differently if a file is stored locally or on a network.
This means that I have to determine if the files my application is working on are stored locally or on a network, so how can I do this?

A local file's path is typically something like:
C:\Folder\File.txt

A Unc path should look something like this:
\\ComputerName\Folder\File.txt
So far it seems easy, all I need to do is look for "\\" at the start of the path to identify a Unc path, and then I can extract the server name from the path if an api function needs the server name.

Although what about mapped drives? For example if E:\folder\file where E is a drive that is mapped to a server.
As some windows api calls optionally accept the server name do I need to extract it, or can I treat mapped files like local files?

+ do I need to consider other file paths formats?