Results 1 to 16 of 16

Thread: Registry Entry Location

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Registry Entry Location

    Can someone tell me if the following Registry entry is inexactly the same place for Vista & Windows 7, as I am using XP Pro.

    HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\00000001

    I am using this to get E-mail Account information in my app.

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Registry Entry Location

    email account information from what email client? Outlook express?

    I don't use outlook express or windows mail (which is what OE was renamed in Vista and up), but I can tell you I don't have that key in Win7.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: Registry Entry Location

    Any of the Microsoft Mail Clients.

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

  4. #4
    Wait... what? weirddemon's Avatar
    Join Date
    Jan 2009
    Location
    USA
    Posts
    3,826

    Re: Registry Entry Location

    Quote Originally Posted by computerman View Post
    Any of the Microsoft Mail Clients.

    Computerman
    When new applications are made, they don't always use the same registry keys.

    So, specifying "all" doesn't really apply.

    Also, since this is not a VB .NET question, I don't think it should be discussed here =/
    CodeBank contributions: Process Manager, Temp File Cleaner

    Quote Originally Posted by SJWhiteley
    "game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....

  5. #5

  6. #6
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Registry Entry Location

    I have both Windows Mail (used with my non-primary email account) and Outlook 2003 installed under Vista. That registry key is not present.

  7. #7
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Registry Entry Location

    I don't have it either.... XP Pro SP3.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  8. #8
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Registry Entry Location

    From a quick bit of googling it looks like that is just used for Outlook Express... and as Vista and 7 do not come with Outlook Express that could go some way to explaining why they do not exist. Windows Mail replaces Outlook Express in these OS's as far as I know, so you might want to look at where that stores its registry keys. I have this key on my Windows 7 system but it does not have an Accounts subkey or anything, it just has Mail, News and Trident under it... but then I dont use Windows Mail HKEY_CURRENT_USER\Software\Microsoft\Windows Mail
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: Registry Entry Location

    That first entry could have been for Outlook Express, which is the Mail Client that I use. I installed OutLook 2002 and looking further into the registry I found this :

    HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\OMI Account Manager\Accounts

    Does this look more familiar for any of the Windows Mail Clients.

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

  10. #10
    PowerPoster dilettante's Avatar
    Join Date
    Feb 2006
    Posts
    24,487

    Re: Registry Entry Location

    Another problem with the whole concept of grabbing a user's SMTP configuration for sending emails is that a given user may not even have one at all. Lots of people rely on Web-based email and never even set up the SMTP/POP email account provided by their ISP.

    Lots of software that "phones home" with error reports or user feedback now either POST to a Web page, send the info via a Web Service, FTP it to a server, or bring up a feedback page in the user's default Web browser. The HTTP-based options generally work through firewalls and proxies too, which might block or redirect any request using the standard SMTP port number. Just a thought.

  11. #11
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Registry Entry Location

    Or more than one... I don't use a single SMTP for all of my mail.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  12. #12

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: Registry Entry Location

    The application that I am developing takes the information from a form and the user has the opportunity to e-mail it to them. Alot of people do not know what their settings are, and the vast majority still use the SMTP/POP accounts provided by their ISP.

    Once I have established the Registry structure I can then pickup all the Mail Accounts that they have and they can choose which Account to use.

    Code:
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        Dim tmpUserName As String
    
        For Each subkey As String In My.Computer.Registry.CurrentUser.OpenSubKey("Software\Microsoft\Internet Account Manager\Accounts", False).GetSubKeyNames
            If subkey.Contains("0") Then
                tmpUserName = My.Computer.Registry.GetValue("HKEY_CURRENT_USER\Software\Microsoft\Internet Account Manager\Accounts\" & subkey, "SMTP Display Name", Nothing)
                Me.ListBox1.Items.Add(tmpUserName)
            End If
        Next
    
    End Sub
    This code does this for my machine.

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

  13. #13
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Registry Entry Location

    I guess its a nice feature to have, as it could pick up some people's settings, but I hope you are not relying on this to work on every machine as some people will not be using a mail client that your app is aware of for a start. As long as the users have the option to enter their own settings if they either dont want to use one of the accounts that your program detected or if your program failed to detect any accounts, then I dont see any harm in doing that
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  14. #14

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: Registry Entry Location

    The more I look into it, the more complicated it will get. As long as they know or can get hold of their account name & password as well as their SMTP address either from their ISP or web account, then it should work.

    By the way Chris how is the SMTP server class coming on?

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

  15. #15
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: Registry Entry Location

    By the way Chris how is the SMTP server class coming on?
    I was afraid someone would ask me that sooner or later haha I just have not had enough spare time recently to get any further with it Hopefully after xmas I will get it at least to a BETA testing stage!
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  16. #16

    Thread Starter
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: Registry Entry Location

    Let me know when it is ready and I can Beta test it for you.

    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

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