mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[Refactor] Use LibraryImport instead of DllImport.
This commit is contained in:
@@ -164,11 +164,11 @@ static partial class Usb
|
||||
}
|
||||
}
|
||||
|
||||
[DllImport("setupapi.dll")]
|
||||
static extern int CM_Get_Parent(out uint pdnDevInst, uint dnDevInst, int ulFlags);
|
||||
[LibraryImport("setupapi.dll")]
|
||||
private static partial int CM_Get_Parent(out uint pdnDevInst, uint dnDevInst, int ulFlags);
|
||||
|
||||
[DllImport("setupapi.dll", CharSet = CharSet.Auto)]
|
||||
static extern int CM_Get_Device_ID(uint dnDevInst, IntPtr buffer, int bufferLen, int ulFlags);
|
||||
[LibraryImport("setupapi.dll", EntryPoint = "CM_Get_Device_IDW")]
|
||||
private static partial int CM_Get_Device_ID(uint dnDevInst, IntPtr buffer, int bufferLen, int ulFlags);
|
||||
|
||||
/// <summary>Find a device based upon a Drive Letter</summary>
|
||||
/// <param name="driveLetter">Drive letter</param>
|
||||
|
||||
Reference in New Issue
Block a user