diff --git a/src/SetupApi/PublicAPI.Unshipped.txt b/src/SetupApi/PublicAPI.Unshipped.txt index d7511d36..f67c02a2 100644 --- a/src/SetupApi/PublicAPI.Unshipped.txt +++ b/src/SetupApi/PublicAPI.Unshipped.txt @@ -139,6 +139,7 @@ static PInvoke.SetupApi.SetupDiBuildDriverInfoList(PInvoke.SetupApi.SafeDeviceIn static PInvoke.SetupApi.SetupDiBuildDriverInfoList(PInvoke.SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, System.IntPtr deviceInfoData, PInvoke.SetupApi.DriverType driverType) -> bool static PInvoke.SetupApi.SetupDiCreateDeviceInfoList(System.Guid? classGuid, System.IntPtr hwndParent) -> PInvoke.SetupApi.SafeDeviceInfoSetHandle static PInvoke.SetupApi.SetupDiCreateDeviceInfoList(System.IntPtr classGuid, System.IntPtr hwndParent) -> PInvoke.SetupApi.SafeDeviceInfoSetHandle +static PInvoke.SetupApi.SetupDiEnumDeviceInfo(PInvoke.SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, int memberIndex, ref PInvoke.SetupApi.SP_DEVINFO_DATA deviceInfoData) -> bool static PInvoke.SetupApi.SetupDiEnumDriverInfo(PInvoke.SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, PInvoke.SetupApi.SP_DEVINFO_DATA? deviceInfoData, PInvoke.SetupApi.DriverType driverType, uint memberIndex, ref PInvoke.SetupApi.SP_DRVINFO_DATA driverInfoData) -> bool static PInvoke.SetupApi.SetupDiEnumDriverInfo(PInvoke.SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, System.IntPtr deviceInfoData, PInvoke.SetupApi.DriverType driverType, uint memberIndex, System.IntPtr driverInfoData) -> bool static PInvoke.SetupApi.SetupDiGetDeviceInstallParams(PInvoke.SetupApi.SafeDeviceInfoSetHandle deviceInfoSet, PInvoke.SetupApi.SP_DEVINFO_DATA? deviceInfoData, ref PInvoke.SetupApi.SP_DEVINSTALL_PARAMS deviceInstallParams) -> bool diff --git a/src/SetupApi/SetupApi.cs b/src/SetupApi/SetupApi.cs index d418d977..70e5d3a7 100644 --- a/src/SetupApi/SetupApi.cs +++ b/src/SetupApi/SetupApi.cs @@ -182,7 +182,7 @@ public static extern unsafe bool SetupDiGetDeviceInterfaceDetail( public static extern unsafe bool SetupDiEnumDeviceInfo( SafeDeviceInfoSetHandle deviceInfoSet, int memberIndex, - SP_DEVINFO_DATA* deviceInfoData); + [Friendly(FriendlyFlags.Bidirectional)] SP_DEVINFO_DATA* deviceInfoData); /// /// Retrieves a device instance property.