Kbase 20516: GET-KEY-VALUE statement returns ? for registry keys of specific types
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  04/04/2011 |
|
Status: Verified
SYMPTOM(s):
GET-KEY-VALUE statement returns ? for registry keys of specific types
GET-KEY-VALUE statement returns ? for registry keys of type REG_EXPAND_SZ (Expandable string)
GET-KEY-VALUE statement returns ? for registry keys of type REG_BINARY (Binary data)
GET-KEY-VALUE statement returns the Unknown value for registry keys of type REG_EXPAND_SZ (Expandable String)
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
CAUSE:
This is expected behaviour. The GET-KEY-VALUE statement only supports the REG_SZ and REG_DWORD types (it converts REG_DWORD to a character string).
FIX:
Registry keys with unsupported types have to be accessed via Windows API calls. Refer to solution 21622 for a generic code sample. Additional exmples are available below.