Use WinAPI in .NET!

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:   [DllImport(“Netapi32.dll”, SetLastError = true)]

Here is a link to check out a solution to monitor a file system and get the user’s name to modified a particular file with the event args. http://vbcity.com/forums/p/133307/698930.aspx#698930

1 comment

Leave a comment

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