{"id":109812,"date":"2024-05-27T07:00:00","date_gmt":"2024-05-27T14:00:00","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/oldnewthing\/?p=109812"},"modified":"2024-05-27T06:54:40","modified_gmt":"2024-05-27T13:54:40","slug":"20240527-00","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/oldnewthing\/20240527-00\/?p=109812","title":{"rendered":"Is there any difference between <CODE>String&shy;From&shy;IID<\/CODE> and <CODE>String&shy;From&shy;CLSID<\/CODE>?"},"content":{"rendered":"<p>Some time ago, I displayed in tabular form <a title=\"What is the difference between UuidToString, StringFromCLSID, StringFromIID, and StringFromGUID2?\" href=\"https:\/\/devblogs.microsoft.com\/oldnewthing\/20231113-00\/?p=109011\"> the difference between <code>Uuid\u00adTo\u00adString<\/code> <code>String\u00adFrom\u00adCLSID<\/code>, <code>String\u00adFrom\u00adIID<\/code>, <code>String\u00adFrom\u00adGUID2<\/code><\/a>. But the entries for <code>String\u00adFrom\u00adCLSID<\/code> and <code>String\u00adFrom\u00adIID<\/code> are identical. So what&#8217;s the difference between those two?<\/p>\n<p>There&#8217;s no difference. The two functions are functionally identical.<\/p>\n<p>So why have two functions that do the same thing?<\/p>\n<p>Probably just to provide counterparts to their buddies <code>IID\u00adFrom\u00adString<\/code> and <code>CLSID\u00adFrom\u00adString<\/code>, which do behave differently, because <code>CLSID\u00adFrom\u00adString<\/code> also supports ProgIds.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not really.<\/p>\n","protected":false},"author":1069,"featured_media":111744,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[25],"class_list":["post-109812","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-oldnewthing","tag-code"],"acf":[],"blog_post_summary":"<p>Not really.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/users\/1069"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/comments?post=109812"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/posts\/109812\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media\/111744"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/media?parent=109812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/categories?post=109812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/oldnewthing\/wp-json\/wp\/v2\/tags?post=109812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}