StringFromGUID2用法

StringFromGUID2(&guid, (LPOLESTR) & szGuidString, 80);

注意,第3个参数,如果小了,会导致缓冲区溢出

最初给出40,发现不够,尽管转换出来的字符串长度只有39

 

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *