MOTOBIT.COM - ASP upload, IIS utility ValueType Enum, Registry value types., Member of RegEdit

Member of  RegEdit Use ValueType object | Changes | Purchase | Download

Description

Registry value types.

Values

vtNone = &H0 No value type - REG_NONE
vtString = &H1 Nul terminated string - REG_SZ
vtExpandString = &H2 Nul terminated string (with environment variable references) - REG_EXPAND_SZ
vtBinary = &H3 Free form binary - REG_BINARY
vtDWord = &H4 32-bit number - REG_DWORD
vtDWordBigEndian = &H5 32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN
vtLink = &H6 Symbolic Link (unicode) - REG_LINK
vtMultiString = &H7 Multiple strings - REG_MULTI_SZ
vtResourceList = &H8 Resource list in the resource map - REG_RESOURCE_LIST
vtFullResourceDescriptor = &H9 Resource list in the hardware description
vtResourceRequirementsList = &HA10  

Includes

VBS include

'ValueType - begin
Public Const vtNone = &H0 'No value type - REG_NONE
Public Const vtString = &H1 'Nul terminated string - REG_SZ
Public Const vtExpandString = &H2 'Nul terminated string (with environment variable references) - REG_EXPAND_SZ
Public Const vtBinary = &H3 'Free form binary - REG_BINARY
Public Const vtDWord = &H4 '32-bit number - REG_DWORD
Public Const vtDWordBigEndian = &H5 '32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN
Public Const vtLink = &H6 'Symbolic Link (unicode) - REG_LINK
Public Const vtMultiString = &H7 'Multiple strings - REG_MULTI_SZ
Public Const vtResourceList = &H8 'Resource list in the resource map - REG_RESOURCE_LIST
Public Const vtFullResourceDescriptor = &H9 'Resource list in the hardware description
Public Const vtResourceRequirementsList = &HA
'ValueType - end

VB4 include

'ValueType - begin
Public Const vtNone As Long = &H0 'No value type - REG_NONE
Public Const vtString As Long = &H1 'Nul terminated string - REG_SZ
Public Const vtExpandString As Long = &H2 'Nul terminated string (with environment variable references) - REG_EXPAND_SZ
Public Const vtBinary As Long = &H3 'Free form binary - REG_BINARY
Public Const vtDWord As Long = &H4 '32-bit number - REG_DWORD
Public Const vtDWordBigEndian As Long = &H5 '32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN
Public Const vtLink As Long = &H6 'Symbolic Link (unicode) - REG_LINK
Public Const vtMultiString As Long = &H7 'Multiple strings - REG_MULTI_SZ
Public Const vtResourceList As Long = &H8 'Resource list in the resource map - REG_RESOURCE_LIST
Public Const vtFullResourceDescriptor As Long = &H9 'Resource list in the hardware description
Public Const vtResourceRequirementsList As Long = &HA
'ValueType - end

VB5 include

Public Enum ValueType
  vtNone = &H0 'No value type - REG_NONE
  vtString = &H1 'Nul terminated string - REG_SZ
  vtExpandString = &H2 'Nul terminated string (with environment variable references) - REG_EXPAND_SZ
  vtBinary = &H3 'Free form binary - REG_BINARY
  vtDWord = &H4 '32-bit number - REG_DWORD
  vtDWordBigEndian = &H5 '32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN
  vtLink = &H6 'Symbolic Link (unicode) - REG_LINK
  vtMultiString = &H7 'Multiple strings - REG_MULTI_SZ
  vtResourceList = &H8 'Resource list in the resource map - REG_RESOURCE_LIST
  vtFullResourceDescriptor = &H9 'Resource list in the hardware description
  vtResourceRequirementsList = &HA
End Enum 'ValueType

JScript include

//ValueType - begin
var vtNone = 0x0; //No value type - REG_NONE
var vtString = 0x1; //Nul terminated string - REG_SZ
var vtExpandString = 0x2; //Nul terminated string (with environment variable references) - REG_EXPAND_SZ
var vtBinary = 0x3; //Free form binary - REG_BINARY
var vtDWord = 0x4; //32-bit number - REG_DWORD
var vtDWordBigEndian = 0x5; //32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN
var vtLink = 0x6; //Symbolic Link (unicode) - REG_LINK
var vtMultiString = 0x7; //Multiple strings - REG_MULTI_SZ
var vtResourceList = 0x8; //Resource list in the resource map - REG_RESOURCE_LIST
var vtFullResourceDescriptor = 0x9; //Resource list in the hardware description
var vtResourceRequirementsList = 0xA;
//ValueType - end

IDL include

// ValueType
typedef [helpcontext(0x20048), helpstring("Registry value types.")]
enum ValueType{
	[helpcontext(0x20048), helpstring("No value type - REG_NONE")]
		vtNone = 0x0,
	[helpcontext(0x20048), helpstring("Nul terminated string - REG_SZ")]
		vtString = 0x1,
	[helpcontext(0x20048), helpstring("Nul terminated string (with environment variable references) - REG_EXPAND_SZ")]
		vtExpandString = 0x2,
	[helpcontext(0x20048), helpstring("Free form binary - REG_BINARY")]
		vtBinary = 0x3,
	[helpcontext(0x20048), helpstring("32-bit number - REG_DWORD")]
		vtDWord = 0x4,
	[helpcontext(0x20048), helpstring("32-bit number. In big-endian format, the most significant byte of a word is the low-order byte - REG_DWORD_BIG_ENDIAN")]
		vtDWordBigEndian = 0x5,
	[helpcontext(0x20048), helpstring("Symbolic Link (unicode) - REG_LINK")]
		vtLink = 0x6,
	[helpcontext(0x20048), helpstring("Multiple strings - REG_MULTI_SZ")]
		vtMultiString = 0x7,
	[helpcontext(0x20048), helpstring("Resource list in the resource map - REG_RESOURCE_LIST")]
		vtResourceList = 0x8,
	[helpcontext(0x20048), helpstring("Resource list in the hardware description")]
		vtFullResourceDescriptor = 0x9,
	[helpcontext(0x20048)]
		vtResourceRequirementsList = 0xA
} ValueType;

Used in

Value.SetValue, Value.Binary, Value.Type

Other links for ValueType class

ActiveX RegEdit classes

Server, Keys, Key, Values, Value

ActiveX RegEdit enums

ValueType, ReservedKeys, LogonTypes, AccessRights

RegEdit

Intuitive, easy to use COM interface to windows registry. Set of classes to read/enumerate/modify windows registry keys and values from ASP, VBS and T-SQL.

Additional notes

Value Meaning
REG_BINARY Binary data in any form.
REG_DWORD A 32-bit number.
REG_DWORD_LITTLE_ENDIAN A 32-bit number in little-endian format. This is equivalent to REG_DWORD.

In little-endian format, a multi-byte value is stored in memory from the lowest byte (the "little end") to the highest byte. For example, the value 0x12345678 is stored as (0x78 0x56 0x34 0x12) in little-endian format.

Windows NT, Windows 95, and Windows 98 are designed to run on little-endian computer architectures. A user may connect to computers that have big-endian architectures, such as some UNIX systems.

REG_DWORD_BIG_ENDIAN A 32-bit number in big-endian format.

In big-endian format, a multi-byte value is stored in memory from the highest byte (the "big end") to the lowest byte. For example, the value 0x12345678 is stored as (0x12 0x34 0x56 0x78) in big-endian format.

REG_EXPAND_SZ A null-terminated string that contains unexpanded references to environment variables (for example, "%PATH%"). It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions. To expand the environment variable references, use the ExpandEnvironmentStrings function.
REG_LINK A Unicode symbolic link.
REG_MULTI_SZ An array of null-terminated strings, terminated by two null characters.
REG_NONE No defined value type.
REG_RESOURCE_LIST A device-driver resource list.
REG_SZ A null-terminated string. It will be a Unicode or ANSI string depending on whether you use the Unicode or ANSI functions.

Do not use the REG_SZ type to store hard-coded paths to the system root directory or to the drive containing the system files. Instead, use the REG_EXPAND_SZ type with environment variables such as "%SystemRoot%". This ensures that the path will be up-to-date even if the user remaps the system drive to a different drive letter.

© 1996 - 2009 Antonin Foller, Motobit Software | About, Contacts | e-mail: info@pstruh.cz