|
-
Dec 22nd, 2009, 11:21 AM
#1
Thread Starter
Hyperactive Member
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. 
-
Dec 22nd, 2009, 11:29 AM
#2
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.
-
Dec 22nd, 2009, 11:32 AM
#3
Thread Starter
Hyperactive Member
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. 
-
Dec 22nd, 2009, 11:34 AM
#4
Re: Registry Entry Location
 Originally Posted by computerman
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
 Originally Posted by SJWhiteley
"game trainer" is the same as calling the act of robbing a bank "wealth redistribution"....
-
Dec 22nd, 2009, 12:07 PM
#5
Re: Registry Entry Location
-
Dec 22nd, 2009, 12:39 PM
#6
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.
-
Dec 22nd, 2009, 01:24 PM
#7
Re: Registry Entry Location
I don't have it either.... XP Pro SP3.
-tg
-
Dec 22nd, 2009, 02:29 PM
#8
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
-
Dec 22nd, 2009, 02:50 PM
#9
Thread Starter
Hyperactive Member
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. 
-
Dec 22nd, 2009, 03:27 PM
#10
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.
-
Dec 22nd, 2009, 03:33 PM
#11
Re: Registry Entry Location
Or more than one... I don't use a single SMTP for all of my mail.
-tg
-
Dec 22nd, 2009, 03:44 PM
#12
Thread Starter
Hyperactive Member
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. 
-
Dec 22nd, 2009, 04:00 PM
#13
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
-
Dec 22nd, 2009, 04:11 PM
#14
Thread Starter
Hyperactive Member
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. 
-
Dec 22nd, 2009, 04:44 PM
#15
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!
-
Dec 22nd, 2009, 05:56 PM
#16
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|