This is a method of the IDirectPlay2 Interface.
public void getPlayerCaps(int playerId, DPCaps caps, int flags);