Setting Binary Data in the Registry
Windows Only (Windows Only)

There are times when you need to be able to put binary data in the Windows Registry, and MetaCard lets you write to DWORDs, etc. using the "type" parameter to the setRegistry() function. You do, however, need to be careful on how you write a binary vale by making sure you use the binaryEncode() function on the data you need to store.

For example, to insert a DWORD for the value "1" into a registry key, you would call something like this:
put "HKEY_CURRENT_USER\Software\Microsoft\Command Processor\EnableExtensions" into theKey
get setRegistry(theKey, binaryEncode("I", 1), "dword")
Posted 6/9/2002 by Ken Ray

 Print this tip

News and Rumors Products Services Developer Resources Contact STS About STS