There are not that many changes in this release as I was only updating it for my own use really but I figured other people may benefit from the new API definitions and managed methods included.
For anyone that doesn’t know what Cjwdev.WindowsApi is – it is a .NET DLL I have written that contains definitions for several native Windows APIs (80 to be precise) that enables you to do things you cannot do in the .NET framework already. As well as the raw API signatures, it also includes managed .NET methods that wrap a lot of these APIs up into methods that are easy to use from .NET code. So you can easily use these methods even if you have absolutely no experience calling Windows API functions from .NET. For more information and examples of what is included in the library see the various posts here: https://cjwdev.wordpress.com/category/cjwdev-windowsapi/
Anyway, here is a list of what is included in this latest release:
- The following API definitions were added to the ApiDefinitions class: WTSGetActiveConsoleSessionId, WTSQueryUserToken, CreateProcessAsUser, DestroyEnvironmentBlock, CreateEnvironmentBlock, AllocConsole, FreeConsole, AddFontResource, RemoveFontResource
- InstallFontForCurrentSession – Installs a font for the current session only (does not require admin permissions)
- RemoveFontForCurrentSession – Removes a font from the system font table for the current session only (does not require admin permissions)
- Overloaded versions of RenewIpAddresses and ReleaseIpAddresses that let you choose to ignore errors (so that if one NIC cannot be renewed/released for some reason then it will continue to attempt the operation on other NICs)
and here is the download link (make sure you extract the XML file to the same location as the DLL so that you get intellisense information for each method):