Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Note
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
Retrieves the current image alignment.
HRESULT get_imageAlign (
DWORD* pRetVal
);
pRetVal
[out] Returns the image alignment value from the executable.
If successful, returns S_OK
; otherwise, returns an error code.
Images are aligned to specific memory boundaries depending how the image was loaded and created. The alignment is typically on 1, 2, 4, 8, 16, 32, or 64 byte boundaries. The image alignment can be set with a call to the IDiaAddressMap::put_imageAlign method.