SecureDelete.WipeObjects.DriveWipeObject.GetObject C# (CSharp) Метод

GetObject() публичный Метод

public GetObject ( ) : NativeMethods.WObject
Результат NativeMethods.WObject
        public NativeMethods.WObject GetObject()
        {
            NativeMethods.WObject drive = new NativeMethods.WObject();
            StringBuilder builder = new StringBuilder();

            for(int i = 0; i < drives.Count; i++) {
                builder.Append(drives[i]);
            }

            drive.type = NativeMethods.TYPE_DRIVE;
            drive.path = builder.ToString();
            drive.aux = null;
            drive.wipeMethod = _wipeMethodId == WipeOptions.DefaultWipeMethod ? _options.DefaultFreeSpaceMethod : _wipeMethodId;
            drive.wipeOptions = 0;

            // set the options
            if(_wipeFreeSpace) {
                drive.wipeOptions |= NativeMethods.WIPE_FREE_SPACE;
            }

            if(_wipeClusterTips) {
                drive.wipeOptions |= NativeMethods.WIPE_CLUSTER_TIPS;
            }

            if(_wipeMFT) {
                drive.wipeOptions |= NativeMethods.WIPE_MFT;
            }

            return drive;
        }