dahall / Vanara

A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers.
MIT License
1.79k stars 193 forks source link

missing definition for StorageDeviceSeekPenalty. #438

Closed DexterWoo closed 8 months ago

DexterWoo commented 8 months ago

according to the defininition in MSDN: https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ne-winioctl-storage_property_id

StorageDeviceSeekPenalty is missing in the enum. the corresponding type is DEVICE_SEEK_PENALTY_DESCRIPTOR.

https://github.com/dahall/Vanara/blob/69f805f25c707ea3e216e92dbae293b7da82c352/PInvoke/Kernel32/WinIOCtl.Enums.cs#L2166

[CorrespondingType(typeof(DEVICE_SEEK_PENALTY_DESCRIPTOR ))] StorageDeviceSeekPenalty,

should be inserted there.

dahall commented 8 months ago

Fixed and committed. Will go out in next release.