public static string getFullPathByObjectID(FILEGUID guid) { string path = ""; Boolean rc = Win32.getFullPathByObjectID(guid, ref path); if (rc) { //MessageBox.Show(path.ToString()); } return path; }
public static string getFullPathByObjectID(FILEGUID guid) { string path = ""; Boolean rc = Win32.getFullPathByObjectID(guid, ref path); if (rc) { //MessageBox.Show(path.ToString()); } return(path); }
public static FILEGUID parse(string guid) { FILEGUID fileguid = new FILEGUID(); fileguid.Data4 = new Byte[4]; string[] g = guid.Split('-'); fileguid.Data1 = ulong.Parse(g[0]); fileguid.Data2 = ushort.Parse(g[1]); fileguid.Data3 = ushort.Parse(g[2]); fileguid.Data4[0] = Byte.Parse(g[3]); fileguid.Data4[1] = Byte.Parse(g[4]); fileguid.Data4[2] = Byte.Parse(g[5]); fileguid.Data4[3] = Byte.Parse(g[6]); return fileguid; }
public static FILEGUID parse(string guid) { FILEGUID fileguid = new FILEGUID(); fileguid.Data4 = new Byte[4]; string[] g = guid.Split('-'); fileguid.Data1 = ulong.Parse(g[0]); fileguid.Data2 = ushort.Parse(g[1]); fileguid.Data3 = ushort.Parse(g[2]); fileguid.Data4[0] = Byte.Parse(g[3]); fileguid.Data4[1] = Byte.Parse(g[4]); fileguid.Data4[2] = Byte.Parse(g[5]); fileguid.Data4[3] = Byte.Parse(g[6]); return(fileguid); }
public static extern Boolean getObjectID(string fullpath, ref FILEGUID guid);
public static extern Boolean getFullPathByObjectID(FILEGUID guid, [MarshalAs(UnmanagedType.BStr)]ref string fullpath);
public static extern Boolean getFullPathByObjectID(FILEGUID guid, [MarshalAs(UnmanagedType.BStr)] ref string fullpath);