Beispiel #1
0
 public void unlaunch(VirtualDrivesManager m_pManager)
 {
     if (m_pHandler1 != null && m_pManager != null)
     {
         m_pManager.DestroyVirtualDrive(m_driveHandle1, 1);
         m_pHandler1.Release();
         m_pHandler1 = null;
     }
 }
 public void unlaunch(VirtualDrivesManager m_pManager)
 {
     if (m_pHandler1 != null && m_pManager != null)
     {
         m_pManager.DestroyVirtualDrive(m_driveHandle1, 1);
         m_pHandler1.Release();
         m_pHandler1 = null;
     }
 }
Beispiel #3
0
        public void launch(VirtualDrivesManager m_pManager)
        {
            uint diskSize = (uint)(m_rvi.drive_size / (1024 * 1024)); // MB

            pFileDiskHandler1 = new RemoteRedFSFileDiskHandler(m_rvi, "C:\\Users\\reddyv16\\Desktop\\disk_" + diskLetter);
            m_pHandler1       = pFileDiskHandler1;
            pFileDiskHandler1.PreAllocate(diskSize);

            m_driveHandle1 = m_pManager.CreateVirtualDrive((byte)diskLetter, diskSize, m_pHandler1);
            if (m_driveHandle1 == -1)
            {
                m_pHandler1 = null;
                return;
            }
        }
        public void launch(VirtualDrivesManager m_pManager)
        {
            uint diskSize = (uint)(m_rvi.drive_size/(1024*1024)); // MB

            pFileDiskHandler1 = new RemoteRedFSFileDiskHandler(m_rvi, "C:\\Users\\reddyv16\\Desktop\\disk_" + diskLetter);
            m_pHandler1 = pFileDiskHandler1;
            pFileDiskHandler1.PreAllocate(diskSize);

            m_driveHandle1 = m_pManager.CreateVirtualDrive((byte)diskLetter, diskSize, m_pHandler1);
            if (m_driveHandle1 == -1)
            {
                m_pHandler1 = null;
                return;
            }
        }