using System;
using System.Runtime.InteropServices;

namespace FHTE.LTOOLS.GUI
{
    /// <summary>
    /// Declare native function to determine drive type
    /// </summary>
    public class PlatformInvokeKernel32 
    {
        [DllImport("KERNEL32", CharSet=System.Runtime.InteropServices.CharSet.Auto)]
        public static extern int GetDriveType(string lpRootPathName);  

        public const int DriveUnknown    = 0 ;
        public const int DriveNoRootdir  = 1 ;
        public const int DriveRemoveable = 2 ;
        public const int DriveFixed      = 3 ;
        public const int DriveRemote     = 4 ;
        public const int DriveCDRom      = 5 ;
        public const int DriveRamdisk    = 6 ;
    }
}