There's no need to store a copy of the string. You should load it directly into the destination buffer.
LoadStringW doesn't do what FormatVerisignExtension does: it doesn't SetLastError(ERROR_MORE_DATA) if the buffer is too small. The callers of FormatVerisignExtension call it with a NULL pointer to determine the size. --Juan