From 3f8ebec9beb4324bf8ae55a70fe6ec83d83f2171 Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 24 Jun 2021 11:14:34 -0600 Subject: [PATCH] Changed all dll references to lowercase to avoid new .NET 5 behavior (fixes #235) --- PInvoke/CfgMgr32/CfgMgr32.cs | 2 +- PInvoke/ComDlg32/ComDlg32.Funcs.cs | 2 +- PInvoke/DbgHelp/DbgHelp.cs | 2 +- PInvoke/Dhcp/DhcpCSdk.cs | 2 +- PInvoke/Dhcp/MadCapCl.cs | 2 +- PInvoke/Drt/Drt.cs | 2 +- PInvoke/Lz32/LzExpand.cs | 2 +- PInvoke/Msi/Msi.cs | 2 +- PInvoke/Multimedia/MmeApi.aux.cs | 2 +- PInvoke/NewDev/NewDev.cs | 2 +- PInvoke/P2P/P2P.cs | 2 +- PInvoke/PeerDist/PeerDist.cs | 2 +- PInvoke/RstrtMgr/RstrtMgr.cs | 2 +- PInvoke/SHCore/ShellScalingApi.cs | 2 +- PInvoke/SetupAPI/SetupAPI.Funcs.cs | 2 +- PInvoke/Shared/Lib.cs | 8 ++++---- PInvoke/Version/WinVer.cs | 2 +- PInvoke/WTSApi32/WTSApi32.cs | 2 +- PInvoke/WsmSvc/WSMan.cs | 2 +- 19 files changed, 22 insertions(+), 22 deletions(-) diff --git a/PInvoke/CfgMgr32/CfgMgr32.cs b/PInvoke/CfgMgr32/CfgMgr32.cs index 74b25c18..c5b91ed2 100644 --- a/PInvoke/CfgMgr32/CfgMgr32.cs +++ b/PInvoke/CfgMgr32/CfgMgr32.cs @@ -16,7 +16,7 @@ namespace Vanara.PInvoke { // Win95 compatibility--not applicable to 32-bit ConfigMgr Win95 compatibility--not applicable to 32-bit ConfigMgr Win95 // compatibility--not applicable to 32-bit ConfigMgr - private const string Lib_Cfgmgr32 = "CfgMgr32.dll"; + private const string Lib_Cfgmgr32 = "cfgmgr32.dll"; #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member public const int CONFIGMG_VERSION = 0x0400; diff --git a/PInvoke/ComDlg32/ComDlg32.Funcs.cs b/PInvoke/ComDlg32/ComDlg32.Funcs.cs index df885202..1c3113db 100644 --- a/PInvoke/ComDlg32/ComDlg32.Funcs.cs +++ b/PInvoke/ComDlg32/ComDlg32.Funcs.cs @@ -7,7 +7,7 @@ namespace Vanara.PInvoke /// Items from the ComDlg32.dll public static partial class ComDlg32 { - private const string Lib_ComDlg32 = "ComDlg32.dll"; + private const string Lib_ComDlg32 = "comdlg32.dll"; /// /// A Color dialog box sends the COLOROKSTRING registered message to your hook procedure, CCHookProc, when the user selects a color diff --git a/PInvoke/DbgHelp/DbgHelp.cs b/PInvoke/DbgHelp/DbgHelp.cs index 92267118..bebab27f 100644 --- a/PInvoke/DbgHelp/DbgHelp.cs +++ b/PInvoke/DbgHelp/DbgHelp.cs @@ -11,7 +11,7 @@ namespace Vanara.PInvoke /// Items from the DbgHelp.dll public static partial class DbgHelp { - private const string Lib_DbgHelp = "DbgHelp.dll"; + private const string Lib_DbgHelp = "dbghelp.dll"; /// /// An application-defined callback function used with the EnumDirTree function. It is called every time a match is found. diff --git a/PInvoke/Dhcp/DhcpCSdk.cs b/PInvoke/Dhcp/DhcpCSdk.cs index 7f24b58b..a3a47d22 100644 --- a/PInvoke/Dhcp/DhcpCSdk.cs +++ b/PInvoke/Dhcp/DhcpCSdk.cs @@ -12,7 +12,7 @@ namespace Vanara.PInvoke /// Handle returned is to an event public const uint DHCPCAPI_REGISTER_HANDLE_EVENT = 0x01; - private const string Lib_Dhcp = "Dhcpcsvc.dll"; + private const string Lib_Dhcp = "dhcpcsvc.dll"; /// /// DHCP options. See ISC DHCP 4.4 Manual Pages - diff --git a/PInvoke/Dhcp/MadCapCl.cs b/PInvoke/Dhcp/MadCapCl.cs index 7df13d6d..d8821437 100644 --- a/PInvoke/Dhcp/MadCapCl.cs +++ b/PInvoke/Dhcp/MadCapCl.cs @@ -9,7 +9,7 @@ namespace Vanara.PInvoke /// Required length of the buffer for . public const int MCAST_CLIENT_ID_LEN = 17; - private const string Lib_Dhcpcsvc = "Dhcpcsvc.dll"; + private const string Lib_Dhcpcsvc = "dhcpcsvc.dll"; /// /// The McastApiCleanup function deallocates resources that are allocated with McastApiStartup. The McastApiCleanup diff --git a/PInvoke/Drt/Drt.cs b/PInvoke/Drt/Drt.cs index 4df042cb..c51cda79 100644 --- a/PInvoke/Drt/Drt.cs +++ b/PInvoke/Drt/Drt.cs @@ -12,7 +12,7 @@ namespace Vanara.PInvoke /// Items from the Drt.dll public static partial class Drt { - private const string Lib_Drt = "Drt.dll"; + private const string Lib_Drt = "drt.dll"; /// public const uint DRT_PAYLOAD_REVOKED = (1 << 0); diff --git a/PInvoke/Lz32/LzExpand.cs b/PInvoke/Lz32/LzExpand.cs index a99d9b56..8538a841 100644 --- a/PInvoke/Lz32/LzExpand.cs +++ b/PInvoke/Lz32/LzExpand.cs @@ -8,7 +8,7 @@ namespace Vanara.PInvoke /// Functions and structures from Lz32.dll public static partial class Lz32 { - private const string Lib_Lz32 = "Lz32.dll"; + private const string Lib_Lz32 = "lz32.dll"; /// Style flags for . [PInvokeData("WinBase.h", MSDNShortId = "aa365430")] diff --git a/PInvoke/Msi/Msi.cs b/PInvoke/Msi/Msi.cs index bd9df7f6..8e6fb0c7 100644 --- a/PInvoke/Msi/Msi.cs +++ b/PInvoke/Msi/Msi.cs @@ -6,7 +6,7 @@ namespace Vanara.PInvoke /// Items from the Msi.dll public static partial class Msi { - private const string Lib_Msi = "Msi.dll"; + private const string Lib_Msi = "msi.dll"; /// To advertise the product locally to the computer. [PInvokeData("msi.h")] diff --git a/PInvoke/Multimedia/MmeApi.aux.cs b/PInvoke/Multimedia/MmeApi.aux.cs index f833246a..0db3d0f2 100644 --- a/PInvoke/Multimedia/MmeApi.aux.cs +++ b/PInvoke/Multimedia/MmeApi.aux.cs @@ -9,7 +9,7 @@ namespace Vanara.PInvoke /// Items from the WinMm.dll public static partial class WinMm { - private const string Lib_Winmm = "WinMm.dll"; + private const string Lib_Winmm = "winmm.dll"; /// Describes optional functionality supported by the auxiliary audio device. [PInvokeData("mmeapi.h", MSDNShortId = "NS:mmeapi.auxcaps_tag")] diff --git a/PInvoke/NewDev/NewDev.cs b/PInvoke/NewDev/NewDev.cs index 8da655c7..0d63990d 100644 --- a/PInvoke/NewDev/NewDev.cs +++ b/PInvoke/NewDev/NewDev.cs @@ -7,7 +7,7 @@ namespace Vanara.PInvoke /// Items from the NewDev.dll public static partial class NewDev { - private const string Lib_NewDev = "NewDev.dll"; + private const string Lib_NewDev = "newdev.dll"; /// Flags for . [PInvokeData("newdev.h", MSDNShortId = "NF:newdev.DiInstallDevice")] diff --git a/PInvoke/P2P/P2P.cs b/PInvoke/P2P/P2P.cs index d60cb46b..63853c60 100644 --- a/PInvoke/P2P/P2P.cs +++ b/PInvoke/P2P/P2P.cs @@ -9,7 +9,7 @@ namespace Vanara.PInvoke /// Items from the P2P.dll public static partial class P2P { - private const string Lib_P2P = "P2P.dll"; + private const string Lib_P2P = "p2p.dll"; private const string Lib_P2PGraph = "p2pgraph.dll"; /// diff --git a/PInvoke/PeerDist/PeerDist.cs b/PInvoke/PeerDist/PeerDist.cs index a6771f1e..ba206a6f 100644 --- a/PInvoke/PeerDist/PeerDist.cs +++ b/PInvoke/PeerDist/PeerDist.cs @@ -7,7 +7,7 @@ namespace Vanara.PInvoke /// Items from the PeerDist.dll public static partial class PeerDist { - private const string Lib_PeerDist = "PeerDist.dll"; + private const string Lib_PeerDist = "peerdist.dll"; /// public const uint PEERDIST_READ_TIMEOUT_DEFAULT = 0xfffffffe; diff --git a/PInvoke/RstrtMgr/RstrtMgr.cs b/PInvoke/RstrtMgr/RstrtMgr.cs index 6cdc3a8d..5e5b2013 100644 --- a/PInvoke/RstrtMgr/RstrtMgr.cs +++ b/PInvoke/RstrtMgr/RstrtMgr.cs @@ -28,7 +28,7 @@ namespace Vanara.PInvoke /// RM_SESSION_KEY_LEN - size in bytes of binary session key public const int RM_SESSION_KEY_LEN = 16; - private const string Lib_Rstrtmgr = "Rstrtmgr.dll"; + private const string Lib_Rstrtmgr = "rstrtmgr.dll"; /// /// The RM_WRITE_STATUS_CALLBACK function can be implemented by the user interface that controls the Restart Manager. The diff --git a/PInvoke/SHCore/ShellScalingApi.cs b/PInvoke/SHCore/ShellScalingApi.cs index 199d6486..aa94d0a9 100644 --- a/PInvoke/SHCore/ShellScalingApi.cs +++ b/PInvoke/SHCore/ShellScalingApi.cs @@ -6,7 +6,7 @@ namespace Vanara.PInvoke /// Items from the SHCore.dll public static partial class SHCore { - private const string Lib_SHCore = "SHCore.dll"; + private const string Lib_SHCore = "shcore.dll"; /// /// Indicates whether the device is a primary or immersive type of display. diff --git a/PInvoke/SetupAPI/SetupAPI.Funcs.cs b/PInvoke/SetupAPI/SetupAPI.Funcs.cs index 5c099889..78241af4 100644 --- a/PInvoke/SetupAPI/SetupAPI.Funcs.cs +++ b/PInvoke/SetupAPI/SetupAPI.Funcs.cs @@ -8,7 +8,7 @@ namespace Vanara.PInvoke /// Items from the SetupAPI.dll public static partial class SetupAPI { - private const string Lib_SetupAPI = "SetupAPI.dll"; + private const string Lib_SetupAPI = "setupapi.dll"; /// /// diff --git a/PInvoke/Shared/Lib.cs b/PInvoke/Shared/Lib.cs index c673e902..893b2658 100644 --- a/PInvoke/Shared/Lib.cs +++ b/PInvoke/Shared/Lib.cs @@ -55,7 +55,7 @@ public const string Gdi32 = "gdi32.dll"; /// The gdi32 - public const string IpHlpApi = "Iphlpapi.dll"; + public const string IpHlpApi = "iphlpapi.dll"; /// The kernel32 public const string Kernel32 = "kernel32.dll"; @@ -112,7 +112,7 @@ public const string PropSys = "propsys.dll"; /// The Schannel - public const string Schannel = "Schannel.dll"; + public const string Schannel = "schannel.dll"; /// The secur32 public const string Secur32 = "secur32.dll"; @@ -121,10 +121,10 @@ public const string Shell32 = "shell32.dll"; /// The shlwapi - public const string Shlwapi = "Shlwapi.dll"; + public const string Shlwapi = "shlwapi.dll"; /// The sspi cli - public const string SspiCli = "SspiCli.dll"; + public const string SspiCli = "sspicli.dll"; /// The tokenbinding public const string Tokenbinding = "tokenbinding.dll"; diff --git a/PInvoke/Version/WinVer.cs b/PInvoke/Version/WinVer.cs index 0b2600c8..54e3d064 100644 --- a/PInvoke/Version/WinVer.cs +++ b/PInvoke/Version/WinVer.cs @@ -7,7 +7,7 @@ namespace Vanara.PInvoke /// Items from version.dll. public static partial class VersionDll { - private const string Lib_Version = "Version.dll"; + private const string Lib_Version = "version.dll"; /// Retrieves version information for the specified file. /// diff --git a/PInvoke/WTSApi32/WTSApi32.cs b/PInvoke/WTSApi32/WTSApi32.cs index 77130790..1558db59 100644 --- a/PInvoke/WTSApi32/WTSApi32.cs +++ b/PInvoke/WTSApi32/WTSApi32.cs @@ -16,7 +16,7 @@ namespace Vanara.PInvoke private const int CLIENTADDRESS_LENGTH = 30; private const int CLIENTNAME_LENGTH = 20; private const int DOMAIN_LENGTH = 17; - private const string Lib_WTSApi32 = "WTSApi32.dll"; + private const string Lib_WTSApi32 = "wtsapi32.dll"; private const int MAX_PATH = 260; private const int USERNAME_LENGTH = 20; private const int WINSTATIONNAME_LENGTH = 32; diff --git a/PInvoke/WsmSvc/WSMan.cs b/PInvoke/WsmSvc/WSMan.cs index fbd43e1a..149cc11f 100644 --- a/PInvoke/WsmSvc/WSMan.cs +++ b/PInvoke/WsmSvc/WSMan.cs @@ -41,7 +41,7 @@ namespace Vanara.PInvoke /// public const string WSMAN_STREAM_ID_STDOUT = "stdout"; - private const string Lib_WsmSvc = "WsmSvc.dll"; + private const string Lib_WsmSvc = "wsmsvc.dll"; /// /// Authorizes a specific operation.