This is a method of the IDirectDrawSurface Interface.
public void lock(Rect r, DDSurfaceDesc d, int flags, int hnd, int[] memory);