If the method succeeds, the return value is the number of
characters copied into the string buffer, not including the
terminating null character. If the method fails, the return
value is zero. To get extended error information, call
GetLastError.
The GetProviderName method returns the display name associated
with the specified provider. This is a human-readable string which can be
used for logging, status messages or user interface display.
This method is a convenience wrapper which returns the provider display
name without requiring the caller to retrieve the full provider information
structure using GetProviderInfo.
If the buffer specified by lpszProviderName is not large enough to
contain the entire provider name, the string will be truncated. The value
returned by the method indicates the number of characters copied to the
buffer, not including the terminating null character.