ZForge.Win32.RemovableDriveDetector.Init C# (CSharp) Method

Init() private method

init the DriveDetector object
private Init ( Control control, string fileToOpen ) : void
control System.Windows.Forms.Control
fileToOpen string
return void
        private void Init(Control control, string fileToOpen)
        {
            mFileToOpen = fileToOpen;
            mFileOnFlash = null;
            mDeviceNotifyHandle = IntPtr.Zero;
            mRecipientHandle = control.Handle;
            mDirHandle = IntPtr.Zero;   // handle to the root directory of the flash drive which we open
            mCurrentDrive = "";
        }