Re: OSRegSetValueEx versus RegSetValueEx



Thank you.
What is that 'Alias' anyway?
I went through code and almost each function has some Alias attached to it.
Jack
"Ken Halter" <Ken_Halter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:u0cywN7GGHA.2444@xxxxxxxxxxxxxxxxxxxxxxx
> "Jack" <replyTo@newsgroup> wrote in message
> news:uBU$AK7GGHA.2064@xxxxxxxxxxxxxxxxxxxxxxx
>> Hello,
>> The code I am checking contains OSRegSetValueEx() function.
>> I cannot find any reference to it on MSDN site, but there is a reference
>> to RegSetValueEx()
>>
>> What is the difference?
>> Should I use all OSReg..... functions (BTW, they work just fine)
>> or should I change them to Reg... functions type?
>
> Those "OS" this or that are nothing more than the original authors coding
> standards. Check the Alias...
>
> > Declare Function OSRegCloseKey Lib "advapi32" Alias "RegCloseKey" (ByVal
>
> That API, no matter what the 'Declare Function xyz" says will use the
> aliased API, which is RegCloseKey.
>
> If you haven't gone too far, you might want to switch to the class below.
> It's an excellent registry class that I use whenever I need registry
> access.
>
> Complete Registry control
> http://www.vbaccelerator.com/home/VB/Code/Libraries/Registry_and_Ini_Files/Complete_Registry_Control/article.asp
>
>
>
>
> --
> Ken Halter - MS-MVP-VB - Please keep all discussions in the groups..
> DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
> Freeware 4 color Gradient Frame? http://www.vbsight.com/GradFrameCTL.htm
>


.



Relevant Pages

  • Re: OSRegSetValueEx versus RegSetValueEx
    ... > I cannot find any reference to it on MSDN site, ... aliased API, which is RegCloseKey. ... It's an excellent registry class that I use whenever I need registry access. ...
    (microsoft.public.vb.general.discussion)
  • Re: c:windowsinet20001winlogon.exe (unable to find)
    ... Open the Registry Editor... ... How to backup the Windows XP Registry ... Or get Startup Control Panel and use it to disable any reference to ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: registry cleaner
    ... "Alias" wrote in message ... It booted up quicker and had better performance BEFORE the defrag, right after cleaning up the registry. ... registry entries and defragmenting 4,000 files. ... you can't do it yourself because System Suite 5 is no ...
    (microsoft.public.windowsxp.general)
  • Re: Writing data out before the system dies
    ... note that if a bugcheck occurs after your work, there is no guarantee it is ... Please do not send e-mail directly to this alias. ... registry access) can still occur w/out deadlocks. ... if you are not power pagable ...
    (microsoft.public.development.device.drivers)
  • Re: Problem creating full text index
    ... it appears that the machine's registry has information about a Full-Text ... Please do not send e-mail directly to this alias. ... A catalog with the name specified already exists. ... Are there any events that get logged when the MSSearch service is stopped ...
    (microsoft.public.exchange.admin)

Loading