Erik
>
>0 is success
>1 returns "Win32 API: Incorrect function."
First, thanks for the kind words about my class. The following is from the Win32 SDK help file.
"Return Value
If the function successfully copies the string to the initialization file, the return value is TRUE.
If the function fails, or if it flushes the cached version of the most recently accessed initialization file, the return value is FALSE. To get extended error information, call GetLastError."
For as long as I can remember 0 = FALSE. Technically, any non-zero value is equal to TRUE. However, consistently it seems to be 1 in Windows.
George
Ubi caritas et amor, deus ibi est