[Migrated content. Thread originally posted on 12 April 2006]
I have just stated to look at this and want to set various registry keys. It looked easy in the manual, but I cant even get started. The following code77 subkey-handle usage is handle.
77 subkey-handle1 usage is handle.
LINKAGE SECTION.
*================
copy "c:\\am2000\\amaster\\copies\\COMMON.DTA".
SCREEN SECTION.
*==============
PROCEDURE DIVISION USING LNK-DTA.
*================================
DECLARATIVES.
END DECLARATIVES.
A-MAIN SECTION.
*==============
A000.
*----
Call "DISPLAY_REG_OPEN_KEY"
USING HKEY_CURRENT_USER
"Software"
SUBKEY-HANDLE,
GIVING return-code.
Call "DISPLAY_REG_CREATE_KEY"
USING HKEY_CURRENT_USER
"Software\\AM PDF Printer\\BypassSaveAs"
SUBKEY-HANDLE1
GIVING return-CODE.
always returns a non zero value in return code, and does not open the 'Software' key under HKEY_CURRENT_USER , nor does it create the key "Software\\AM PDF Printer\\BypassSaveAs" .
What is the obvious thing I am doing wrong?
Keith.:confused: