Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WritePrivateProfileString
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00128327
Message ID:
00128838
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform