dahall / Vanara

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

Wrong values in Kernel32.READ_DIRECTORY_NOTIFY_INFORMATION_CLASS enum #450

Closed antoinebj closed 8 months ago

antoinebj commented 8 months ago

Describe the bug and how to reproduce

The values of the enum are incorrectly 0 and 1.

What code is involved

Declaration of Kernel32.READ_DIRECTORY_NOTIFY_INFORMATION_CLASS enum

Expected behavior

The values should be 1 and 2 according to Microsoft documentation: https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ne-minwinbase-read_directory_notify_information_class Also verified in minwinbase.h itself

dahall commented 8 months ago

Fixed in 4.0 branch. Release out soon.