Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Mar : TRegistry.WriteBinayData fails in Vista

www.cryer.info
Managed Newsgroup Archive

TRegistry.WriteBinayData fails in Vista

Subject:TRegistry.WriteBinayData fails in Vista
Posted by:"Michael Fritz" (spam_athome@yahoo.de)
Date:Tue, 6 Mar 2007 22:08:24

Hi,

currently I'm testing my application in Vista final but some coding
fails when writing to the Registry. Using WinXP there is no problem at all.

I'm using the following code to write binary data to

Reg := TRegistry.Create(KEY_WRITE);
Reg.RootKey := HKEY_CLASSES_ROOT;
Reg.OpenKey('\CLSID\' + 'AceIde' + '\InprocServer32\', Write);
Reg.WriteBinaryData('', BinaryBlock, SizeOf(TBinaryBlock2));
Reg.CloseKey;

However .WriteBinaryData fails.

Are there any special requirements to write to HKCR?

--
cu,
Michael

Replies:

www.cryer.info
Managed Newsgroup Archive