Delen via


IDiaAddressMap::get_imageAlign

Retrieves the current image alignment.

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

Reference

IDiaAddressMap

IDiaAddressMap::put_imageAlign