.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SHSetValueA 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSHSetValueA\fR (SHLWAPI.@) .SH SYNOPSIS DWORD SHSetValueA ( HKEY \fIhKey\fR, LPCSTR \fIlpszSubKey\fR, LPCSTR \fIlpszValue\fR, DWORD \fIdwType\fR, LPCVOID \fIpvData\fR, DWORD \fIcbData\fR ) .SH DESCRIPTION .PP Set a value in the registry. .SH PARAMS \fIhKey\fR \fB[In]\fR Handle to registry key. .PP \fIlpszSubKey\fR \fB[In]\fR Name of sub key under \fIhKey\fR. .PP \fIlpszValue\fR \fB[In]\fR Name of value to set. .PP \fIdwType\fR \fB[In]\fR Type of the value. .PP \fIpvData\fR \fB[In]\fR Data of the value. .PP \fIcbData\fR \fB[In]\fR Size of the value. .PP .SH RETURNS .PP \fBSuccess:\fR \fBERROR_SUCCESS\fR. The value is set with the data given. .PP \fBFailure:\fR An error code from \fBRegCreateKeyExA(3w)\fR or \fBRegSetValueExA(3w)\fR. .SH NOTES .PP If \fIlpszSubKey\fR does not exist, it is created before the value is set. If \fIlpszSubKey\fR is \fBNULL\fR or an empty string, then the value is added directly to \fIhKey\fR instead. .SH IMPLEMENTATION .PP Declared in \fB"shlwapi.h"\fR. .PP Implemented in \fB"dlls/shlwapi/reg.c"\fR. .PP Debug channel \fB"shell"\fR.