Please enable JavaScript to view this site.

A-Shell Development History

This is used to write a new or updated value to the Registry.

xcall MIAMEX,MX'REGISTRY,3,hkey,name,type,value,status

hkey (b,4)

must be set to the hkeynew value returned from a previous call to Create or Open a key.

name (string)

is the name of the value to write. (These are the items that appear in the left side of the right hand pane of REGEDIT.EXE.)

type (numeric)

specifies the type of value you want to write:

 

Value

Description

REG'NONE

0

No type

REG'SZ

1

Null terminated string

REG'EXPAND'SZ

2

Same as (1) but signals that string may contain embedded environment vars (e.g. "%TEMP%\xyx.log")

REG'BINARY

3

Raw binary data (use X format)

REG'DWORD

4

4 byte integer (use B,4 format)

REG'MULTI'SZ

7

List of null terminated strings, with a double null terminating the list.

 

value (string, unformatted, or B,4 depending on type)

The data to write to the named item.

status (f,6)

0 for success, else error code.