Returns TRUE if a path is a GUID; i.e. of the form: ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} (My Computer GUID, Windows 7) */
| 848 | (My Computer GUID, Windows 7) |
| 849 | */ |
| 850 | BOOL IsPathGUID(const TCHAR *szPath) |
| 851 | { |
| 852 | if (szPath == NULL) |
| 853 | { |
| 854 | return FALSE; |
| 855 | } |
| 856 | |
| 857 | if (lstrlen(szPath) > 2) |
| 858 | { |
| 859 | if (szPath[0] == ':' && szPath[1] == ':') |
| 860 | { |
| 861 | return TRUE; |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | return FALSE; |
| 866 | } |
| 867 | |
| 868 | /* |
| 869 | A path passed into this function may be one of the |
no outgoing calls