| description | Learn more about: /ALLOWBIND (Prevent DLL binding) | ||||||
|---|---|---|---|---|---|---|---|
| title | /ALLOWBIND (Prevent DLL binding) | ||||||
| ms.date | 05/11/2022 | ||||||
| f1_keywords |
|
||||||
| helpviewer_keywords |
|
||||||
| ms.assetid | 30e37e24-12e4-407e-988a-39d357403598 |
Set a flag to disallow DLL binding.
/ALLOWBIND[:NO]
The /ALLOWBIND:NO linker option sets a bit in a DLL's header that indicates to Bind.exe that the image can't be bound. You may not want a DLL to be bound if it's been digitally signed (binding invalidates the signature).
You can edit an existing DLL for /ALLOWBIND functionality with the /ALLOWBIND option of the EDITBIN utility.
-
Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.
-
Select the Configuration Properties > Linker > Command Line property page.
-
Enter
/ALLOWBIND:NOinto Additional Options. Choose OK or Apply to apply the change.
- See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.
MSVC linker reference
MSVC linker options
BindImage function
BindImageEx function