regqueryvalueex (coredll)
Last changed: -68.97.79.28

.
Summary
Retrieves the type and data for a specified name associated with an open registry key.

C# Signature:

[DllImport("coredll.dll", SetLastError=true)]
static extern int RegQueryValueEx( UIntPtr hkey, String lpValueName, IntPtr lpReserved, ref KeyType lpType, StringBuilder lpData, ref uint lpcbData );

VB Signature:

Declare Function RegQueryValueEx Lib "coredll.dll" (TODO) As TODO

User-Defined Types:

None.

Alternative Managed API:

Do you know one? Please contribute it!

Notes:

We pass a StringBuilder for lpData to deal with null-terminated strings that normally come back from this operation.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Documentation