by "Albert D. Kallal" <PleaseNOOOsPAMmkallal@[EMAIL PROTECTED]
>
Apr 8, 2008 at 08:35 AM
You don't actualy "set" the type, it based on how you enter the data:
eg:
ROOT:Local Machine
Key: SOFTWARE\Microsoft\Jet\4.0\Engines
Name:SandBoxMode
Value:#00000002
ROOT:Local Machine
Key: Software\Microsoft\Office\11.0\Access\Security
Name:Level
Value:#00000001
Note how the "#" before the number represnets REG_DWORD
The data types are outlined here:
http://msdn2.microsoft.com/en-us/library/aa371168.aspx
we see:
Prefix #x
The value is interpreted and stored as a hexadecimal value
(REG_BINARY).
Prefix #%
The value is interpreted and stored as an expandable string
(REG_EXPAND_SZ).
Prefix #
The value is interpreted and stored as an integer (REG_DWORD).
--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@[EMAIL PROTECTED]