.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH RegGetValueW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBRegGetValueW\fR (ADVAPI32.@) .SH SYNOPSIS LSTATUS RegGetValueW ( HKEY \fIhKey\fR, LPCWSTR \fIpszSubKey\fR, LPCWSTR \fIpszValue\fR, DWORD \fIdwFlags\fR, LPDWORD \fIpdwType\fR, PVOID \fIpvData\fR, LPDWORD \fIpcbData\fR ) .SH DESCRIPTION .PP Retrieves the type and data for a value name associated with a key, optionally expanding its content and restricting its type. .SH PARAMS \fIhKey\fR \fB[In]\fR Handle to an open key. .PP \fIpszSubKey\fR \fB[In]\fR Name of the subkey of \fIhKey\fR. .PP \fIpszValue\fR \fB[In]\fR Name of value under \fIhKey\fR/szSubKey to query. .PP \fIdwFlags\fR \fB[In]\fR Flags restricting the value type to retrieve. .PP \fIpdwType\fR \fB[Out]\fR Destination for the values type, may be \fBNULL\fR. .PP \fIpvData\fR \fB[Out]\fR Destination for the values content, may be \fBNULL\fR. .PP \fIpcbData\fR \fB[In/Out]\fR Size of \fIpvData\fR, updated with the size in bytes required to retrieve the whole content, including the trailing \fB'\0'\fR for strings. .PP .SH RETURNS .PP \fBSuccess:\fR \fBERROR_SUCCESS\fR .PP \fBFailure:\fR nonzero error code from Winerror.h. .SH NOTES .PP \fB-\fR Unless \fBRRF_NOEXPAND\fR is specified, \fBREG_EXPAND_SZ\fR values are automatically expanded and \fIpdwType\fR is set to \fBREG_SZ\fR instead. .PP \fB-\fR Restrictions are applied after expanding, using \fBRRF_RT_REG_EXPAND_SZ\fR without \fBRRF_NOEXPAND\fR is thus not allowed. An exception is the case where \fBRRF_RT_ANY\fR is specified, because then \fBRRF_NOEXPAND\fR is allowed. .SH IMPLEMENTATION .PP Declared in \fB"shlwapi.h"\fR. .PP Implemented in \fB"dlls/advapi32/registry.c"\fR. .PP Debug channel \fB"reg"\fR.