|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
/hotpatch (Create Hotpatchable Image)
Prepares an image for hotpatching.
When /hotpatch is used in a compilation, the compiler ensures that first instruction of each function is two bytes, which is required for hot patching.
After compiling with /hotpatch, you must link with /FUNCTIONPADMIN (Create Hotpatchable Image), which completes the preparation for making an image hotpatchable. When you compile and link an image with a single invocation of cl.exe, /hotpatch implies /functionpadmin.
When building an image that will run on one of the chips in the Itanium Processor Family (IPF), it is not necessary to use /hotpatch, however you should use /functionpadmin on images built for IPF.
To set this compiler option in the Visual Studio development environment
Open the project's Property Pages dialog box. For details, see How to: Open Project Property Pages.
Click the C/C++ folder.
Click the Command Line property page.
Type the compiler option in the Additional Options box.
To set this compiler option programmatically
For more information about update management, see "Security Guidance for Update Management" at http://www.microsoft.com/technet/security/guidance/PatchManagement.mspx.