View Full Version : how to read registry entry from VB Application
I would like to know the login userid from a VB Application. Which API function can I use for this purpose? Or is it Possible to read the login userid from a registry entry through the VB application?
jstolz
04-15-2000, 07:33 AM
Well, the API functions you'd want are:
RegOpenKeyEx to open the specified key, and
RegQueryValueEx to return the value of the specified entry under that key.
However... If you're using VB, I don't think you need the API calls because VB has built-in registry reading functions (e.g., GetSettings and GetAllSettings). Sounds to me like you need to review your VB instructions.
Regards...
Try this post I made a few months back:-
http://www.regedit.com/cgi-bin/wwwthreads/showpost.pl?Board=brdQuestions&Number=4729&page=8&view=collapsed&sb=5
Nick
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.