Example #1
0
        public static TVolume[] GetAllVolumesGUID()
        {
            TVolume[] volumes = new TVolume[10];
            int       max     = GetAllVolumesArrayGUID(10, volumes);

            return(volumes);
        }
Example #2
0
        public static TQuad[] GetColouredBlocks(TVolume volume, uint size)
        {
            var quads = GetColouredBlocksInternal(volume, size);


            var blocks = new TQuad[size];

            for (int i = 0; i < size; i++)
            {
                blocks[i] = Marshal.PtrToStructure <TQuad>(IntPtr.Add(quads, i * Marshal.SizeOf <TQuad>()));
            }

            return(blocks);
        }
Example #3
0
 public static extern UInt64 GetVolumeSizeInBytes([In] TVolume volume);
Example #4
0
 public static extern UInt64 DefragmentSecondStage([In] TVolume volume, UInt64 size);
Example #5
0
 public static extern UInt64 DefragmentFirstStage([In] TVolume volume, UInt64 size);
Example #6
0
 private static extern IntPtr GetColouredBlocksInternal([In] TVolume volume, UInt32 size);