{"id":2172,"date":"2021-04-30T13:01:10","date_gmt":"2021-04-30T11:01:10","guid":{"rendered":"https:\/\/alax.info\/blog\/?p=2172"},"modified":"2021-04-30T13:18:22","modified_gmt":"2021-04-30T11:18:22","slug":"so-what-w-is-for-in-lstrcmpw","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/2172","title":{"rendered":"So, what &#8220;W&#8221; is for in lstrcmpW"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">So I took time and submitted a request to update <code><a href=\"https:\/\/docs.microsoft.com\/en-us\/windows\/win32\/api\/winbase\/nf-winbase-lstrcmpw\">lstrcmpW<\/a><\/code> documentation because it is inaccurate.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-fooling-around wp-block-embed-fooling-around\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"tbBQDLoor7\"><a href=\"https:\/\/alax.info\/blog\/2171\">DirectShow filter built with Visual Studio 2019 Preview to run on Windows Server 2012<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;DirectShow filter built with Visual Studio 2019 Preview to run on Windows Server 2012&#8221; &#8212; Fooling Around\" src=\"https:\/\/alax.info\/blog\/2171\/embed#?secret=tbBQDLoor7\" data-secret=\"tbBQDLoor7\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It seemed pretty obvious that Syntax section shows W types (correct) and Parameters section shows T types trying to document the same thing. Some articles, for CRT functions specifically, solve this by documenting a set of similar functions at once, but it is not the case here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The response was a bit unexpected:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/github.com\/MicrosoftDocs\/sdk-api\/pull\/741#issuecomment-830011876\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"137\" src=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-800x137.png\" alt=\"\" class=\"wp-image-2173\" srcset=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-800x137.png 800w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-320x55.png 320w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-768x131.png 768w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-1536x262.png 1536w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-600x103.png 600w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image-1040x178.png 1040w, https:\/\/alax.info\/blog\/wp-content\/uploads\/2021\/04\/image.png 1621w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Well, good luck with clarity and accuracy in SDK documentation then.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I took time and submitted a request to update lstrcmpW documentation because it is inaccurate. It seemed pretty obvious that Syntax section shows W types (correct) and Parameters section shows T types trying to document the same thing. Some articles, for CRT functions specifically, solve this by documenting a set of similar functions at&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/2172\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[59],"class_list":["post-2172","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-microsoft"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=2172"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/2172\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=2172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=2172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=2172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}