IDirect3DCryptoSession9::GetSurfacePitch method (d3d9.h)
Gets the stride of a protected surface.
Syntax
HRESULT GetSurfacePitch(
IDirect3DSurface9 *pSrcSurface,
UINT *pSurfacePitch
);
Parameters
pSrcSurface
Pointer to the protected surface.
pSurfacePitch
Receives the stride, in bytes.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
A protected surface cannot be locked, so this method provides a way to get the surface stride without locking the surface.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | d3d9.h |