{"id":1175,"date":"2012-02-14T18:03:50","date_gmt":"2012-02-14T23:03:50","guid":{"rendered":"http:\/\/anvil-of-time.com\/wordpress\/?p=1175"},"modified":"2021-03-11T11:06:26","modified_gmt":"2021-03-11T16:06:26","slug":"powerbuilder-finding-special-folders","status":"publish","type":"post","link":"https:\/\/anvil-of-time.com\/powerbuilder\/powerbuilder-finding-special-folders\/","title":{"rendered":"PowerBuilder &#8211; Finding special folders &#8211; FDCC Compliance"},"content":{"rendered":"<p>Here is a link to an article by Bruce Armstrong (since broken) relating to new functionality in PB11.5. \u00a0The article specifically deals with FDCC (Federal Desktop Core Configuration)\u00a0\u00a0Compliance in PB apps and specifically the\u00a0SHGetFolderPath Windows API function. \u00a0Although this information has been available for awhile, it&#8217;s worth noting again.<\/p>\n<p>Usage Notes:<\/p>\n<pre name=\"code\" class=\"VB\">function ulong SHGetFolderPath(ulong hwndOwner, long nFolder, &amp;\nulong hToken, long dwFlags, Ref string pszPath) library &#039;shell32.dll&#039; &amp;\nalias For &quot;SHGetFolderPathA;Ansi&quot;\n\nor\n\nFunction long SHGetFolderPath ( long hwndOwner, long nFolder, &amp;\nlong hToken, long dwFlags, Ref string pszPath ) Library &quot;shell32.dll&quot; &amp;\nalias For &quot;SHGetFolderPathW&quot;\n\nConstant Long CSIDL_PERSONAL = 5 \/\/ current user My Documents\nConstant Long CSIDL_APPDATA = 26 \/\/ current user Application Data\nConstant Long CSIDL_LOCAL_APPDATA = 28 \/\/ local settings Application Data\nConstant Long CSIDL_COMMON_DOCUMENTS = 46 \/\/ all users My Documents\nConstant Long CSIDL_COMMON_APPDATA = 35 \/\/ all users Application Data\nstring ls_path\nulong lul_handle, lul_rc, lul_hToken\n\nls_path = Space(256)\nlul_handle = Handle(This)\nSetNull(lul_hToken)\nlul_rc = SHGetFolderPath(lul_handle, CSIDL_APPDATA, lul_hToken, 0, ls_path)\n\nRETURN ls_path \/\/ path<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here is a link to an article by Bruce Armstrong (since broken) relating to new functionality in PB11.5. \u00a0The article specifically deals with FDCC (Federal Desktop Core Configuration)\u00a0\u00a0Compliance in PB apps and specifically the\u00a0SHGetFolderPath Windows API function. \u00a0Although this information has been available for awhile, it&#8217;s worth noting again. Usage Notes: function ulong SHGetFolderPath(ulong hwndOwner,&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3,10],"tags":[12,16,42],"_links":{"self":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1175"}],"collection":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/comments?post=1175"}],"version-history":[{"count":13,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1175\/revisions"}],"predecessor-version":[{"id":2018,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/posts\/1175\/revisions\/2018"}],"wp:attachment":[{"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/media?parent=1175"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/categories?post=1175"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anvil-of-time.com\/wp-json\/wp\/v2\/tags?post=1175"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}