[DllImport("setupapi.dll", SetLastError = true, CharSet = CharSet.Unicode)] public static extern int CM_Request_Device_Eject( uint dnDevInst, out int pVetoType, StringBuilder pszVetoName, int ulNameLength, uint ulFlags );
Microsoft documentation: Link
Last updated 1 year ago