Releases: MartinKuschnik/WmiLight
Version 7.2.0
What's Changed
- WbemClassObject can now read WMI properties of type Reference[] and returns them as string[]. Previously, accessing such properties caused a NotSupportedException to be thrown.
Thank you @icnocop for this contribution!
Full Changelog: v7.1.1...v7.2.0
Version 7.1.1
What's Changed
- WmiLight is now marked as AOT-compatible by setting the
IsAotCompatibleassembly attribute. This eliminates the warningIL3058: Referenced assembly 'WmiLight' is not built with 'true' and may not be compatible with AOTwhen the library is referenced by projects withVerifyReferenceAotCompatibility=true.
Thank you @ocoanet for this contribution!
Full Changelog: v7.1.0...v7.2.0
Version 7.1.0
What's Changed
- Refactored authentication mechanism to fix issue #59: Resolved "Access Denied" error when connecting with domain users.
- Removed manual NTLM/Kerberos authority selection; the authentication protocol is now negotiated automatically by Windows, providing more reliable and flexible authentication.
Full Changelog: v7.0.0...v7.1.0
Version 7.0.0
What's Changed
- The native library functions are now imported via
LibraryImportinstead ofDllImport. This should increase performance and NativeAOT compatibility. - Introduces support for . NET 10.
- Improved the exception handling by throwing more specific exceptions for common errors instead of
COMException. - Replaces the usage of
Marshal.QueryInterface()with a native call toIUnknown.QueryInterface().
Full Changelog: v6.21.0...v7.0.0
Version 6.21.0
This release adds three new overloads to the CreateQueryForRelated extension method, allowing callers to specify enumerator behavior options and timeout values when querying for related WMI objects.
Version 6.20.0
This version introduces a new CreateQueryForRelated method that retrieves a collection of objects related to the object (associators), similar to GetRelated from System.Management.
Usage:
using (WmiConnection connection = new WmiConnection())
{
foreach (WmiObject Win32_NetworkAdapter in connection.CreateQuery("SELECT * FROM Win32_NetworkAdapter").Reverse())
{
foreach (WmiObject Win32_NetworkAdapterConfiguration in connection.CreateQueryForRelated(Win32_NetworkAdapter, "Win32_NetworkAdapterConfiguration"))
{
// ...
}
}
}Version 6.19.0
This release introduces support for EnumeratorTimeout configuration.
Version 6.18.0
This version fixes a bug (#61) where EnablePackageEncryption = true incorrectly resulted in unencrypted connections. Connections are now properly encrypted when this option is enabled.
Version 6.17.0
This release fixes the bug #59, which was introduced with version 6.14.0 and prevented authentication for remote connections in .Net Framework applications.
Version 6.16.0
This release adds EH continuation metadata to the static library to eliminate the warning encountered when ControlFlowGuard is enabled. See issue #57 for more details.