This is a method of the IDirectDraw Interface.
public void enumDisplayModes(int d, DDSurfaceDesc s, IUnknown args, IEnumModesCallback fn);