The y coordinate is relative to the McRegionAccess ROI, not the image. The pixel values referenced by the returned pointer are in the requested color model, which may differ from the image's native color model.
The pointer points to the ChannelToProcess of the first pixel inside the McRegionAccess -- the ROI 0:y coordinate.
This method may ONLY be called from in-process code that knows how to translate the returned Long value into a pointer to pixel memory.
For non-critical applications, it is recommended the client use GetLine and PutLine instead of this method. Those methods are cross-process safe.
It is critical that the client set bWillModifyLine to TRUE if there is any possibility that the client will be modifying the pixels. This enables any necessary write-backs to the hosting image and activates the Image Changed notification process.