13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

WriteProfileStringParametersReturn valueCommentsIpApplicationNameIpKeyNameIpStringLPSTR Points to an application heading in WIN.INI.LPSTR Points to a key name that appears under theapplication heading WIN.INI.LPSTR Points to the string that contains the new keyvalue.The return value specifies the result of the function. It is nonzero if thefunction is successful. Otherwise, it is zero.If there is no match for IpApplicationName, this function creates a newapplication field and adds the string pointed to by IpString.A string entry in WIN.INI has the following form:[application name]keyname = stringAn application can also call WriteProfileString to delete lines fromWIN.INI. If IpString is NULL, the function deletes the entire line identifiedby the IpKeyName parameter. If IpString points to a null string, the functiondeletes only the value; the key name remains in the file. If IpKeyName isNULL, the function deletes the entire section identified by theIpApplicationName parameter; however, the function does not delete anylines beginning with the semicolon (;) comment character.wsprintf 3.0Syntax int wsprintf(lpOutput, lpFormat[[, argument]] ... )This function formats and stores a series of characters and values in abuffer. Each argument (if any) is converted and output according to thecorresponding format specification in the format string. The functionappends a NULL to the end of the characters written, but the return valuedoes not include the terminating null character in its character count.Parameters IpOutput LPSTR Points to a null-terminated character string to receivethe formatted output.IpFormatLPSTR Points to a null-terminated character string thatcontains the format-control string. In addition to ordinaryASCII characters, a format specification for each argumentappears in this string. See the following "Comments" sectionfor more information on the format specification.Chapter 4, Functions directory 579

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!