PutProStrg( )

Microsoft Visual FoxPro Foxtools

PutProStrg( )

Copies a string into the specified section of the Windows initialization file (Win.ini).

Syntax

PutProsStrg(lpszSection, lpszEntry, lpszString)

lpszSection

Pointer to a null-terminated string that specifies the section to which the string is to be copied. If the section doesn't exist, it is created. The name of the section is case-independent; the string may be any combination of uppercase and lowercase letters.

LpszEntry

Pointer to the null-terminated string containing the entry to be associated with the string. If the entry doesn't exist in the specified section, it is created. If this argument is NULL, the entire section, including all entries within the section, is deleted.

LpszString

Pointer to the null-terminated string to be written to the file. If this argument is NULL, the entry specified by the lpszEntry argument is deleted.

Return Type

Numeric

Remarks

The return value is nonzero if the function is successful; otherwise, it is zero.