Commit Graph

856 Commits (0865938b3320584edcfae0a809c76ff8030d3081)

Author SHA1 Message Date
David Hall da6113c621 Cleaned up comments 2019-04-08 11:27:09 -06:00
David Hall a941609f2c Minor optimization of property Position use 2019-04-08 11:25:17 -06:00
David Hall 791e8af6a6 Added extension dump function for IntPtr 2019-04-08 11:24:19 -06:00
David Hall 427de28a0e Added ToStructure method with boundary checking. Cleaned and optimized code. 2019-03-26 21:03:39 -07:00
David Hall 0644bcedfb Minor reformatting 2019-03-26 21:02:27 -07:00
David Hall 3c40989527 Fixed Unicode bug in GetString 2019-03-25 17:40:06 -07:00
David Hall 178701d505 Added string handling to all Convert methods 2019-03-25 17:39:29 -07:00
David Hall dc83d5d0b4 Moved Dump, GetBytes and IntPtr operator to SafeAllocatedMemory base class. Added byte* and SafeBuffer operators to SafeAllocatedMemory. 2019-03-25 17:38:42 -07:00
David Hall 8281580a28 Added null checking to Contains method 2019-03-25 17:36:39 -07:00
David Hall 40155dc239 Added backwards compatible classes SafeBuffer, UnmanagedMemoryAccessor and UnmanagedMemoryStream for .NET 2.0 and 3.5. 2019-03-25 17:35:51 -07:00
David Hall f64c2b5e6b Added FindElementType extension method for Type. 2019-03-25 17:34:43 -07:00
David Hall 43a453fef9 Fixed bug in ToStructure where mishandled IntPtr. Added length checking to ToStringEnum. Changed length param on FillMemory to 'long' to work on 64-bit systems. 2019-03-25 17:34:03 -07:00
David Hall ef2f74cd83 Added allocation size handling to GetString and AllocString 2019-03-21 09:34:36 -06:00
David Hall b8fe8bdf89 Moved GetInheritanceSource helper to PInvoke project 2019-03-16 16:12:25 -06:00
David Hall 8560a43662 Completed work on unit test separation. All projects build. 2019-03-16 16:11:06 -06:00
David Hall 1a7a555de1 Separated out each unit test project so there is a 1:1 match between unit test project and assembly. Should simplify rebuilds on testing. 2019-03-16 10:28:15 -06:00
David Hall d7266f1919 Added ToArray and ToIEnum methods that work on Type value rather than generic type param. 2019-03-15 16:15:48 -06:00
David Hall ffb7879e3f Added AdvApi32 event log methods 2019-03-13 09:58:00 -06:00
David Hall 6a46bd4c96 Added null handler to MarshalToPtr 2019-03-13 09:56:21 -06:00
David Hall 72a2ceb50c Updated project versions to 2.3.5 2019-03-12 08:05:49 -06:00
David Hall 3d60a65f8d Added full support for cabinet.dll 2019-03-12 08:02:51 -06:00
David Hall 9e9d61a91e Added connection and open file information to Computer and SharedDevice 2019-03-11 15:02:56 -06:00
David Hall 6cffa1feb6 Fixed recursion bug in WNetEnumResources 2019-03-11 08:38:05 -06:00
David Hall b328949591 Removed errant 'accountDomain' param from constructor 2019-03-10 13:36:30 -06:00
David Hall 9f77841ac5 Added impersonated calls - not working 2019-03-10 13:35:42 -06:00
David Hall e378e1f7e2 Added Run extension methods for WindowsIdentity to run methods as an impersonated identity on any platform. 2019-03-09 22:06:51 -07:00
David Hall 3e23723019 Added WindowsLoggedInIdentity to capture LogonUser typical work. Changed WindowsImpersonatedIdentity to derive from this new class. 2019-03-09 21:00:58 -07:00
David Hall 3877cc58bc Pushing point release due to some debug files getting into the NuGet packages 2019-03-08 20:09:11 -07:00
David Hall 1bdbca3d57 Updated projects for version 2.3.3 2019-03-08 12:38:52 -07:00
David Hall 429066e083 Added information about Vanara.PInvoke.PowrProf. 2019-03-08 12:08:01 -07:00
David Hall 2c48d5bd73 Added PowerManager class to Vanara.SystemService that provides access to information about a device's battery and power supply status and configuration. 2019-03-08 12:07:32 -07:00
David Hall f71612fd05 Cleaned up using statements 2019-03-07 11:43:18 -07:00
David Hall 518903ac95 Added CM_RESOURCE_LIST and supporting structures and enums 2019-03-07 10:25:33 -07:00
David Hall 1cef6c3fe4 Reorganized by subgroup settings 2019-03-07 09:43:13 -07:00
David Hall 600cb65672 Fixes and refinements on PowrProf functions 2019-03-07 09:42:35 -07:00
David Hall 8af31084e1 Added Suspend and Hibernate functions 2019-03-07 09:41:06 -07:00
David Hall 1b42ce1df2 Added CorrespondingType attributes and GetValue extension method for REG_VALUE_TYPE 2019-03-07 09:28:20 -07:00
David Hall 708d2fc39d Removed IErrorProvider constraint 2019-03-07 09:27:35 -07:00
David Hall a7cf16cde9 Major overhaul of FormatMessage import functions and helper functions. Minor breaking changes, but worth it! 2019-03-07 09:26:49 -07:00
David Hall 38b45d9192 Added methods to simplify safely converting from a pointer to a type. Handles blittable and serializable types. 2019-03-07 09:25:12 -07:00
David Hall 9612664387 Fixed Write methods to better handle string types 2019-03-07 09:22:40 -07:00
David Hall 0ede8d5738 Added MarshalObjectsToPtr method to handle object arrays. Cleaned up MarshalToPtr for string enums. 2019-03-07 09:22:04 -07:00
David Hall 0ff4e8c937 Made Items property virtual 2019-03-07 09:20:49 -07:00
David Hall dfd7f9a4a2 Derived all error structures from IErrorProvider 2019-03-02 11:09:00 -07:00
David Hall 8c7636aff5 Added PowrProf.dll and all functions 2019-03-01 12:34:56 -07:00
David Hall 00b8227a10 Updated project versions to 2.3.2 2019-02-27 16:53:42 -07:00
David Hall 974475e148 Updated with complete User32 status 2019-02-27 16:34:39 -07:00
David Hall 515fc01852 Completed work on adding all WinUser.h functions 2019-02-27 16:32:18 -07:00
David Hall c43e435401 Added check to see if shutdown messages are disabled 2019-02-27 16:31:50 -07:00
David Hall 785a86e430 Addressed #42 by adding a parameter to the constructor that will attempt to respond to the WM_QUERYENDSESSION and block the shutdown. 2019-02-26 08:25:34 -07:00