This is a method of the IDirectSound Interface.
public void setCooperativeLevel(int hwnd, int level);