This function returns a string of binary data from the profile. The call searches the file for a key matching the name specified by the pszKey parameter, under the application heading specified by the pszApp parameter.
Enumeration can be performed in exactly the same way as in the PrfQueryProfileString function. The enumeration returns application or key names irrespective of whether the data concerned is written with the PrfWriteProfileString function or the PrfWriteProfileData function.
This function returns data that is written to the file using either the PrfWriteProfileString function or the PrfWriteProfileData function.
If the pszApp parameter is NULL, this call enumerates all application names and constructs in the pBuffer parameter a list of application names. Each application name in the list is terminated with a null character. The last string in the list is terminated with two null characters. This function returns the length of the list, up to, but not including, the final null. If the enumerated application names exceed the available buffer space, the enumerated names are truncated, the enumerated list is not terminated with 2 bytes of zeros, and the rc parameter is set to FALSE. In this case, pszKey is ignored.
If the pszApp parameter is valid and if the pszKey is NULL, this function enumerates all key names associated with the pszApp parameter by constructing in the pBuffer parameter a list of key names. Each key name in the list is terminated with a null character. The last string in the list is terminated with two null characters. This function returns the length of the list, up to, but not including, the final null.
If the enumerated key names exceed the available buffer space, the enumerated names are truncated, the enumerated list is not terminated with 2 bytes of zeros, and the rc parameter is set to FALSE.
The maximum size of data that can be associated with a key name is 64K bytes.