Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.71 KB

allowbind-prevent-dll-binding.md

File metadata and controls

40 lines (26 loc) · 1.71 KB
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: /ALLOWBIND (Prevent DLL binding)
/ALLOWBIND (Prevent DLL binding)
05/11/2022
VC.Project.VCLinkerTool.PreventDLLBinding
/allowbind
/ALLOWBIND linker option
binding DLLs
preventing DLL binding
ALLOWBIND linker option
-ALLOWBIND linker option
DLLs [C++], preventing binding
30e37e24-12e4-407e-988a-39d357403598

/ALLOWBIND (Prevent DLL binding)

Set a flag to disallow DLL binding.

Syntax

/ALLOWBIND[:NO]

Remarks

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.

To set this linker option in the Visual Studio development environment

  1. Open the project's Property Pages dialog box. For details, see Set C++ compiler and build properties in Visual Studio.

  2. Select the Configuration Properties > Linker > Command Line property page.

  3. Enter /ALLOWBIND:NO into Additional Options. Choose OK or Apply to apply the change.

To set this linker option programmatically

  • See xref:Microsoft.VisualStudio.VCProjectEngine.VCCLCompilerTool.AdditionalOptions%2A.

See also

MSVC linker reference
MSVC linker options
BindImage function
BindImageEx function