MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / IsPathGUID

Function IsPathGUID

Explorer++/Helper/ShellHelper.cpp:850–866  ·  view source on GitHub ↗

Returns TRUE if a path is a GUID; i.e. of the form: ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} (My Computer GUID, Windows 7) */

Source from the content-addressed store, hash-verified

848(My Computer GUID, Windows 7)
849*/
850BOOL 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/*
869A path passed into this function may be one of the

Callers 2

TESTFunction · 0.85
GetFolderPathForDisplayFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68