示例#1
0
        public static string getFullPathByObjectID(FILEGUID guid)
        {
            string path = "";
            Boolean rc = Win32.getFullPathByObjectID(guid, ref path);
            if (rc)
            {
                //MessageBox.Show(path.ToString());
            }

            return path;
        }
示例#2
0
        public static string getFullPathByObjectID(FILEGUID guid)
        {
            string  path = "";
            Boolean rc   = Win32.getFullPathByObjectID(guid, ref path);

            if (rc)
            {
                //MessageBox.Show(path.ToString());
            }

            return(path);
        }
示例#3
0
            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;
            }
示例#4
0
            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);
            }
示例#5
0
 public static extern Boolean getObjectID(string fullpath, ref FILEGUID guid);
示例#6
0
 public static extern Boolean getFullPathByObjectID(FILEGUID guid, [MarshalAs(UnmanagedType.BStr)]ref string fullpath);
示例#7
0
 public static extern Boolean getFullPathByObjectID(FILEGUID guid, [MarshalAs(UnmanagedType.BStr)] ref string fullpath);
示例#8
0
 public static extern Boolean getObjectID(string fullpath, ref FILEGUID guid);