{"id":1,"date":"2022-01-14T02:12:46","date_gmt":"2022-01-14T02:12:46","guid":{"rendered":"https:\/\/bholman.com\/software\/?p=1"},"modified":"2022-01-14T02:26:06","modified_gmt":"2022-01-14T02:26:06","slug":"hello-world","status":"publish","type":"post","link":"https:\/\/bholman.com\/software\/2022\/01\/14\/hello-world\/","title":{"rendered":"Use WinAPI in .NET!"},"content":{"rendered":"\n<p>I learned something very cool a couple of days ago.  You can actually leverage many of the Windows .dlls in .net.  We used to do this in C++ but I never dreamed it was possible in C#.  The syntax looks like this: \u00a0 [DllImport(&#8220;Netapi32.dll&#8221;, SetLastError = true)]<\/p>\n\n\n\n<p>  Here is a link to check out a solution to monitor a file system and get the user&#8217;s name to modified a particular file with the event args. <a href=\"http:\/\/vbcity.com\/forums\/p\/133307\/698930.aspx#698930\">http:\/\/vbcity.com\/forums\/p\/133307\/698930.aspx#698930<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I learned something very cool a couple of days ago. You can actually leverage many of the Windows .dlls in .net. We used to do this in C++ but I never dreamed it was possible in C#. The syntax looks like this: \u00a0 [DllImport(&#8220;Netapi32.dll&#8221;, SetLastError = true)] Here is a link to check out a&hellip; <a class=\"more-link\" href=\"https:\/\/bholman.com\/software\/2022\/01\/14\/hello-world\/\">Continue reading <span class=\"screen-reader-text\">Use WinAPI in .NET!<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":2,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/posts\/1\/revisions\/23"}],"wp:attachment":[{"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bholman.com\/software\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}