<PackageReference Include="System.Drawing.Common" Version="9.0.8" />

LOCKTYPE

enum LOCKTYPE
The LOCKTYPE enumeration values indicate the type of locking requested for the specified range of bytes. The values are used in the ILockBytes::LockRegion and IStream::LockRegion methods.
using System.CodeDom.Compiler; namespace Windows.Win32.System.Com { [GeneratedCode("Microsoft.Windows.CsWin32", "0.3.106+a37a0b4b70")] internal enum LOCKTYPE { LOCK_WRITE = 1, LOCK_EXCLUSIVE = 2, LOCK_ONLYONCE = 4 } }