I need to use SetForeign in my dll

How do i call that function?