IDiaAddressMap::get_imageAlign

Retrieves the current image alignment.

Syntax

HRESULT get_imageAlign ( 
   DWORD* pRetVal
);

Parameters

pRetVal

[out] Returns the image alignment value from the executable.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

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.

See also