nBufferMax [in]
Type: int
The size of the buffer, in characters. The string is truncated and
null-terminated if it is longer than the number of characters specified.
If this parameter is 0, then lpBuffer receives a read-only pointer to the resource itself.