I have only found that the profile prompt can be turned on or off via the standard Outlook User Interface.

Take a look at (for Outlook 98 / 2000) Tools, Options, Mail Services tab. Near the top is a "prompt for profile" option.

HOWEVER, if you are now getting one of these when you didn't get one before, maybe there is a way of doing it via code!