Reference Manual - 0.9.25
IDirectFBSurface   Lock

Lock the surface for the access type specified.

Lock (
  IDirectFBSurface   * thiz,
  DFBSurfaceLockFlags   flags,
  void   ** ret_ptr,
  int   * ret_pitch
);

Returns a data pointer and the line pitch of it.