CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 1999
    Location
    Georgia
    Posts
    24

    Creating an Outlook 97 User profile programmaticly

    Can someone tell me how I could go about creating a Outlook User profile on a machine that has had Outlook just installed.

    My objective is to place code in a vb logon script which would detected if a users has had outlook installed and indicate whether or not the Outlook user profile has been setup. I understand how to check for the existence of Outlook what I am looking for is what MAPI's are being called so that I can create the users profile programmaticly???


    Any suggestions would be greatly appreciated

    tcompe


  2. #2
    Join Date
    Feb 2000
    Location
    Indiana
    Posts
    308

    Re: Creating an Outlook 97 User profile programmaticly

    Outlook profiles are set up in .prf files. The default profile is <<windows directory>>\outlook.prf. A possible solution for you would be have your code write a new .prf file based on the logon user information (use WNetGetUserA, but this will only work if Exchange mailbox names are the same as the user's name) and then shell out to NEWPROF.EXE (use the -P and -X switches). To see how the .prf needs to be written, view Outlook.prf in notepad.


  3. #3
    Join Date
    Jun 1999
    Location
    Georgia
    Posts
    24

    Re: Creating an Outlook 97 User profile programmaticly

    Thats what I ended up doing... It works just fine although, I was just trying to do it via API's rather than shelling out to NEWPROF.EXE

    Oh Well... this way works too.

    Thanks
    tcompe




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured