Hi,
I downloaded a TreeView C# sample. It included the statement:
if (PlatformInvokeKernel32.GetDriveType(drives) ==
PlatformInvokeKernel32.DRIVE_FIXED) ...
I found a declaration for PlatformInvokeKernel32:
using System.Runtime.InteropServices;
internal class PlatformInvokeKernel32
{
[DllImport("KERNEL32"]
public static extern int GetDriveType(string s);
}
How do I declare PlatformInvokeKernel32.DRIVE_FIXED?
TIA,
Richard
I downloaded a TreeView C# sample. It included the statement:
if (PlatformInvokeKernel32.GetDriveType(drives) ==
PlatformInvokeKernel32.DRIVE_FIXED) ...
I found a declaration for PlatformInvokeKernel32:
using System.Runtime.InteropServices;
internal class PlatformInvokeKernel32
{
[DllImport("KERNEL32"]
public static extern int GetDriveType(string s);
}
How do I declare PlatformInvokeKernel32.DRIVE_FIXED?
TIA,
Richard