.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH RegQueryValueExA 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBRegQueryValueExA\fR (ADVAPI32.@) .SH SYNOPSIS LSTATUS RegQueryValueExA ( HKEY \fIhkey\fR, LPCSTR \fIname\fR, LPDWORD \fIreserved\fR, LPDWORD \fItype\fR, LPBYTE \fIdata\fR, LPDWORD \fIcount\fR ) .SH DESCRIPTION .PP Get the \fItype\fR and contents of a specified value under with a key. .SH PARAMS \fIhkey\fR \fB[In]\fR Handle of the key to query. .PP \fIname\fR \fB[In]\fR Name of value under \fIhkey\fR to query. .PP \fIreserved\fR \fB[In]\fR Reserved \fB-\fR must be \fBNULL\fR. .PP \fItype\fR \fB[Out]\fR Destination for the value \fItype\fR, or \fBNULL\fR if not required. .PP \fIdata\fR \fB[Out]\fR Destination for the values contents, or \fBNULL\fR if not required. .PP \fIcount\fR \fB[In/Out]\fR Size of \fIdata\fR, updated with the number of bytes returned. .PP .SH RETURNS .PP \fBSuccess:\fR \fBERROR_SUCCESS\fR. *\fIcount\fR is updated with the number of bytes copied to \fIdata\fR. .PP \fBFailure:\fR \fBERROR_INVALID_HANDLE\fR, if \fIhkey\fR is invalid. \fBERROR_INVALID_PARAMETER\fR, if any other parameter is invalid. \fBERROR_MORE_DATA\fR, if on input *\fIcount\fR is too small to hold the contents. .SH NOTES .PP \fBMSDN\fR states that if \fIdata\fR is too small it is partially filled. In reality it remains untouched. .SH IMPLEMENTATION .PP Declared in \fB"winreg.h"\fR. .PP Implemented in \fB"dlls/advapi32/registry.c"\fR. .PP Debug channel \fB"reg"\fR.