This is a method of the IDirectDraw Interface.
public DirectDrawPalette createPalette(int flags, byte[] pe);