RegQueryValueEx (advapi32)
Last changed: philip.borchert@gmail.com-12.71.121.130

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

C# Signature:

[DllImport("advapi32.dll", SetLastError=true)]
static extern int RegQueryValueEx(
    IntPtr hKey,
    string lpValueName,
    int lpReserved,
    out uint lpType,
    IntPtr lpData,
    out uint lpcbData);

VB Signature:

Declare Function RegQueryValueEx Lib "advapi32.dll" (    ByRef hKey As Integer, _
    lpValueName As String,
    lpReserved As Integer,
    lpType As Integer,
    ByRef lpData As Integer,
    lpcbData As Integer) As Integer

User-Defined Types:

None.

Notes:

None.

Tips & Tricks:

Please add some!

Sample Code:

Please add some!

Alternative Managed API:

Do you know one? Please contribute it!

Documentation