Commit Graph

565 Commits (e97896fda6a5ff8e1c3b8c04029f076d6a7426a7)

Author SHA1 Message Date
dahall 3ab6ea12b3 Fixed ProgId tests to work with 3.2.0 2020-02-29 14:36:50 -07:00
dahall 19b3efd408 Updated project information and version to 3.2.0 2020-02-26 17:35:48 -07:00
dahall cb71434118 Added tests for ShellLink when not file-based and new TaskbarButton. 2020-02-26 15:21:21 -07:00
dahall 69d8df590d Added dummy file reference 2020-02-20 13:58:14 -07:00
dahall bd0c01d876 Added ShellNamespaceTreeControl and supporting test code 2020-02-12 20:36:39 -07:00
dahall c856d06332 Updated project files for v3.1.9 2020-01-17 08:50:25 -07:00
dahall cc7170875f Fix and test for #101 - Bug when using SafeAnysizeStruct. 2020-01-17 07:54:15 -07:00
dahall 42677e2063 Project files update for v3.1.8. 2020-01-13 09:26:39 -07:00
dahall a98f49d582 Added tests and made corrections to Opc interfaces 2020-01-12 21:11:43 -07:00
dahall 95b1a68a6a Added empty unit test projects for Opc and UrlMon libs 2020-01-11 16:18:33 -07:00
dahall d284fb6f69 Added further testing for #66 2020-01-09 09:41:01 -07:00
dahall ca116d6e90 Completed adding and testing all functions for UserEnv.dll 2020-01-05 20:51:15 -07:00
Jeffrey Jangli a3fb998699 Fixed memory leaks when using WindowsIdentity.GetCurrent() (#91) 2020-01-01 15:41:44 -07:00
Jeffrey Jangli 9a21348784 Improved unit test. (#90)
Thanks.
2020-01-01 11:35:00 -07:00
David Hall 92227c8afd Completed testing and fixes for url.dll in Vanara.PInvoke.Shell32. 2019-12-31 12:11:41 -07:00
David Hall b5a43c6255 Added test for UserEnv 2019-12-30 16:54:30 -07:00
Jeffrey Jangli ed37ebc3c3 -Improved/fxed mem leaks in BITS unit tests and method CopyTemplate.cs (#88) 2019-12-30 15:37:29 -07:00
David Hall 4ced0d98da Fixed ShellItem.GetImage so it doesn't fail when it cannot make the returning bitmap transparent. (#85) 2019-12-30 11:23:18 -07:00
David Hall 1ee34f1001 Updated all project files to version 3.1.7 2019-12-17 15:05:04 -07:00
David Hall eb1bf547c2 Added unit tests for newly added functions and applied needed fixes. 2019-12-13 14:28:25 -07:00
David Hall 61d0fbb908 Updated project files for 3.1.6 release 2019-12-11 22:09:39 -07:00
David Hall 14b6140095 Finished inital release work for PInvoke.Printing 2019-12-11 11:11:22 -07:00
David Hall 945d381524 Added initial PInvoke.Printing project with winspool.h implementations 2019-12-10 06:56:36 -07:00
David Hall 159f1c8235 Added EnumInheritance and InheritsFrom extension methods. 2019-12-06 17:09:08 -07:00
David Hall 8bb754f22e Updated project files to version 3.1.5 2019-11-26 08:20:16 -07:00
David Hall 2c64bbf832 Added Windows.Forms.App to UnitTest to help test visual controls 2019-11-24 17:12:24 -07:00
David Hall c7a8f2ce26 Added extension methods for IShellFolder 2019-11-23 20:32:48 -07:00
David Hall 37b9f50288 BREAKING CHANGE: Fixed problems with STRRET and its use in IShellFolder::GetDisplayNameOf. #73 2019-11-23 18:24:59 -07:00
David Hall 02f34294ef Revamped layout of ExplorerBrowser test form. 2019-11-21 18:54:40 -07:00
David Hall 9a28995d28 Added ExplorerBrowser test project 2019-11-21 16:54:32 -07:00
David Hall a94e60820b Reworked memory manipulation functions in InteropExtensions and IntPtrConverter to use new marshaling directives and to drive consistency of use across libs (i.e. call same method to do same work). 2019-11-19 12:52:44 -07:00
David Hall 2727b23092 Updated dependent NuGet packages 2019-11-18 09:10:55 -07:00
David Hall 9771eadebc Converted structures from using IVanaraMarshaler to using SafeAnysizeStructMarshaler attribute 2019-11-16 15:51:16 -07:00
David Hall 2eab8af7eb Changed project versions to 3.1.4 2019-11-13 23:07:14 -05:00
David Hall 035f6ce631 Updated project files for v3.1.3 2019-11-08 08:29:33 -07:00
David Hall b7729753da Added test for #70. 2019-11-05 11:08:06 -07:00
David Hall 06330a6bbe Added TOKEN_GROUPS test 2019-11-03 22:27:39 -07:00
David Hall 296a559eda Added SafeAnysizeStruct to help marshal stuctures with a 1-element field at the end that can be variable size. Adjusted all structs of this type to use this to marshal along with tests and supported classes.
BREAKING CHANGE: This forced the removal of PTOKEN_PRIVILEGES as that functionality is now in a shared marshaling class.
2019-11-03 16:02:54 -07:00
David Hall 6ef7235bf3 Update project versions to 3.1.2 2019-10-23 13:44:41 -06:00
David Hall 8302691c8e First pass at adding support for Windows Search 2019-10-23 13:42:37 -06:00
David Hall f09713991a Updated BITS documentation (added remarks and code examples), cleanup up code and optimized single file copy in wrapper. 2019-10-22 08:25:34 -06:00
David Hall 10587e3ee7 Test fix to EnumerateChildren 2019-10-21 07:24:07 -06:00
David Hall dee8220068 Update project file information and version to 3.1.1. 2019-10-17 13:43:37 -06:00
David Hall bce3e9a411 Fixed test based on API change 2019-10-17 11:41:58 -06:00
David Hall c73424ae99 Added .NET friendly wrappers for Job Objects and I/O Completion Ports with tests. 2019-10-17 11:30:18 -06:00
David Hall 88b92e2cb8 Added throttling app support 2019-10-17 09:16:09 -06:00
David Hall 5c47d6de8f Updated test to include test for valid string DisplayName. 2019-10-08 13:35:01 -06:00
David Hall 6aacdf6d91 Updated test with shared code 2019-10-07 22:00:35 -06:00
David Hall 5a2048fe3c Fixed tests for BITS and VirtualDisk 2019-10-07 18:41:58 -06:00
David Hall 4451258143 ADDED: Support for .NET Core 3.0 in all projects!!
Updated project files to version 3.1.0, changed icon to embedded NuGet resource rather than link, consolidated dependency conditions in project files, and updated all NuGet dependencies.
2019-10-03 13:35:16 -06:00
David Hall 03344e7e77 Added all Gdi32 functions excluding printer, ddi and script calls 2019-10-01 17:45:45 -06:00
David Hall a7af7ccbd4 Completed all unit tests and function changes for all functions in WinInet.dll 2019-09-20 13:04:38 -06:00
David Hall 3537b1f8f2 Changed small file to Image2File (since it's smaller) 2019-09-19 12:22:53 -06:00
David Hall ae0da9a9fe Extended functionality of RemoteConnections method 2019-09-18 20:32:45 -06:00
David Hall d086778902 Consolidated test file reference to TestCaseSources 2019-09-17 10:36:00 -06:00
David Hall b92189b32d Corrected based on generic param changes 2019-09-17 09:06:52 -06:00
David Hall 96a7b027d6 Added common test sources file 2019-09-17 07:43:05 -06:00
David Hall bbd1ab47a5 Added ncrypt.h functions 2019-09-06 15:27:23 -06:00
David Hall c3ee660228 Completed unit tests and updates for pdh.dll 2019-09-05 15:32:41 -06:00
David Hall 4012278106 Added support for Pdh functions in pdh.dll. Some unit tests completed. 2019-09-03 16:54:41 -06:00
David Hall 8bab755c2d Minor tweaks 2019-09-02 17:10:17 -06:00
David Hall 83560454ab Added assembly for KtmW32.dll functions and supporting unit tests 2019-08-28 15:23:56 -06:00
David Hall d2cb04ce79 Corrected problem with memory tests found by recent chanages 2019-08-27 17:30:55 -06:00
David Hall 4bfc2c06cd Fixed unit tests after combining User32 and User32.Gdi 2019-08-27 16:40:45 -06:00
David Hall 6b8e0ccf58 Combined PInvoke.User32 and PInvoke.User32.Gdi and updated all dependencies.
Added .NET Standard 2.0 and .NET Core 2.0 and 2.1 support to all projects except Windows.Forms and Windows.Shell
2019-08-27 16:03:21 -06:00
David Hall b80ce7f131 Completed unit testing and fixes for all schannel.h, secur32.h and sspi.h functions 2019-08-27 11:45:05 -06:00
David Hall 763407f6f7 Completed unit tests and changes for winsvc.h functions 2019-08-27 08:25:35 -06:00
David Hall 6cd8448d9a Renamed files 2019-08-26 15:15:39 -06:00
David Hall 869189f4d2 Renamed ServiceTests to WinSvcTests.cs for consistency. 2019-08-26 15:15:16 -06:00
David Hall fa274e0d61 Completed unit tests and updates for winsafer.h functions 2019-08-26 15:08:09 -06:00
David Hall 61637818d6 Finished unit testing and corrections for winreg.h functions 2019-08-26 13:08:42 -06:00
David Hall 6065013993 Completed unit tests and updates for winefs.h functions. 2019-08-23 14:05:09 -06:00
David Hall 196e02e1f4 Completed unit testing and fixes for wincred.h functions 2019-08-21 13:09:39 -06:00
David Hall d03c88b931 Added SafePEVENTLOGRECORD to make it easier to deal with some very C centric handling of field values. 2019-08-20 15:58:52 -06:00
David Hall 727021fea8 Added event log unit tests and fixes for winbase.h functions. 2019-08-20 10:20:45 -06:00
David Hall 6e70fc0b19 Added ability to get a filename only by passing 'null' to constructor. Fixed disposal so can't error. 2019-08-20 10:20:19 -06:00
David Hall b7cedf436f Changed AdvApiTests.PrivBlock references to shared ElevPriv. 2019-08-19 15:09:06 -06:00
David Hall 2af1e65730 Completed unit tests for winbase.h along with API changes. 2019-08-19 15:08:58 -06:00
David Hall ae467f5bac Added ability to provide token 2019-08-19 15:06:36 -06:00
David Hall a69ebc00ae Added better error handling for estats tests, but still failing 2019-08-17 21:27:08 -06:00
David Hall c3521b7742 MAJOR BREAKING CHANGEs:
1) Obsoleted Vanara.Extensions.InteropExtensions.StructureToPtr for a name change to MarshalToPtr for consistency.
2) Added parameter to all methods reading memory that allows developer to indicate size of allocated memory they read from.
3) Enabled the ability to read/write enum values from memory in all extension methods.
4) Added Write methods for writing to memory
2019-08-17 21:13:57 -06:00
David Hall 86aa2d4b11 Fixed test problems 2019-08-17 21:12:39 -06:00
David Hall 692524a94a Fixed NotifyServiceStatusChange code and unit test 2019-08-17 19:26:09 -06:00
David Hall ee72119e36 MAJOR BREAKING CHANGE: Moved all extension methods for System.Object to Vanara.Extensions.Reflection namespace to avoid Intellisense overloads with methods that will be rarely used. 2019-08-17 14:42:49 -06:00
David Hall 92ad7b8abe Competed unit tests and fixes for wct.h functions and structures 2019-08-15 16:32:57 -07:00
David Hall 38ab24c904 Completed unit tests and updates to SID functions in SecurityBaseApi.h 2019-08-15 15:36:12 -07:00
David Hall 871ad3b8ce Whew! Lots of work and significant changes coming from completing unit testing and corresponding fixes and additions for SecurityBaseApi.h and WinNT.h. 2019-08-15 10:08:41 -07:00
David Hall c478f33c48 Updated and re-ran after changes 2019-08-15 00:20:29 -07:00
David Hall cba9506edc Completed unit testings and updates for sddl.h functions and wrappers 2019-08-12 09:57:07 -06:00
David Hall 0c798f899f Completed unit testing and fixes for SafePSID and SafePSIDArray 2019-08-12 09:04:53 -06:00
David Hall d95600ecf0 Completed unit tests for processthreadsapi.h in AdvApi32 2019-08-11 16:15:33 -06:00
David Hall 0626a21e17 Complete unit tests and changes for perflib.h 2019-08-11 15:28:41 -06:00
David Hall 7a0acde552 Finished unit testing and updates for ntsecapi.h audit functions 2019-08-10 13:51:36 -06:00
David Hall c3b5693389 Added unit tests for mschapp.h 2019-08-10 13:42:50 -06:00
David Hall a4212024ce Updates for use of PSID 2019-08-09 16:37:09 -06:00
David Hall 0c73576e40 Collapsed SafeLocalPSID into SafePSID. Enhanced SafePSIDArray.
Finished unit testing and changes for Lsa** functions.
2019-08-09 14:18:18 -06:00
David Hall 198a3fafd5 Completed unit testing and fixes for trace event functions. 2019-08-08 14:46:52 -06:00
David Hall 80008ad83e Added GetNestedStructSizes to return list of strings with filtered structure sizes. 2019-08-08 14:46:06 -06:00
David Hall 0ab573c245 Completed unit tests and updates for evntprov.h 2019-08-04 16:58:42 -06:00
David Hall 46fe06ce41 Completed unit tests (non-functional) for appmgmt.h 2019-08-04 16:58:22 -06:00
David Hall 328bedcf1e Fixed bug #61 where TaskDiaglog.ShowDialog would crash on 64-bit builds when no properties were set. 2019-08-02 16:33:32 -06:00
David Hall f0aa1d21b3 Updated Microsoft.CodAnalysis package to 3.2.0 2019-08-02 16:25:21 -06:00
David Hall c09b2ec246 Completed unit testing and fixes for aclapi.h functions 2019-08-02 13:42:47 -06:00
David Hall 8dee73c55c Fix null handling bug in WriteValues 2019-08-02 13:42:25 -06:00
David Hall 2354a0f2e3 Finished unit tests and fixes for wow64apiset.h and wtsapi32.h 2019-08-01 19:28:21 -06:00
David Hall 968dbbd2fb Completed unit tests and updates to winnt.h functions and enums 2019-08-01 18:45:44 -06:00
David Hall ec7450eb99 Completed unit tests and fixes for winnls.h functions 2019-08-01 16:29:31 -06:00
David Hall bbe5f6002c Simplified GetEnvironmentStrings 2019-07-31 20:36:02 -06:00
David Hall e2cbc0a775 Changed name of PrivBlock to ElevPriv to avoid conflict with main lib. 2019-07-30 11:31:21 -06:00
David Hall 4120d49d5c Added windowsceip.h unit test 2019-07-30 10:31:43 -06:00
David Hall 99db4ab7eb Updated completed unit tests for wincon.h and winbase.h console functions 2019-07-30 10:29:40 -06:00
David Hall 74e52ff4df Tested as much of the UMS functions as possible and corrected/updated them as needed. 2019-07-27 19:58:22 -06:00
David Hall d7420b6770 Completed unit test (non-functional) for TxF file functions in winbase.h 2019-07-26 22:14:02 -06:00
David Hall b41333421f Finished unit tests and fixes for winbase.h time functions 2019-07-26 21:52:35 -06:00
David Hall 4ef4ece88f Finished unit tests and fixes for winbase.h resource functions 2019-07-26 16:44:17 -06:00
David Hall 288d622f1d Updated to allow for Not operator 2019-07-26 14:59:39 -06:00
David Hall e0aa2e8781 Finished unit tests and fixes for winbase.h profile functions 2019-07-26 09:43:19 -06:00
David Hall 42630dd833 BREAKING CHANGE: Changed type of SafeAllocatedMemoryHandle.Size property from int to SizeT so that it more easily converts to different types used in memory size functions. 2019-07-25 19:46:45 -06:00
David Hall 0caca64a6d Finished unit testing and fixes for winbase.h process, thread and numa functions 2019-07-25 18:36:28 -06:00
David Hall 99cf640a97 Completed unit tests and fixes for winbase.h power functions 2019-07-25 15:05:48 -06:00
David Hall dc9bc0f492 Completed unit testing and fixes for winbase.h memory functions 2019-07-25 14:29:48 -06:00
David Hall 3b33b9ac4c Finished unit tests and fixes for winbase.h mailslot functions 2019-07-25 14:22:19 -06:00
David Hall 2dca231e54 Moved in MapUserPhysicalPagesScatter and updated unit tests 2019-07-25 14:21:43 -06:00
David Hall 6d19170219 Completed unit tests and fixes for winbase.h library functions 2019-07-25 13:19:31 -06:00
David Hall ff905a3c01 Completed unit testing, fixes and code reorganization for fileapi.h and winbase.h file functions. 2019-07-25 12:10:04 -06:00
David Hall 2bf048944a Added ability to filter on RunForEach and added name of structure to WriteValues 2019-07-24 15:24:11 -06:00
David Hall fbf395407d Added FailureConstraint that can look at an expected error 2019-07-24 12:56:34 -06:00
David Hall 09b29069c4 Fixed Run methods for consistency 2019-07-24 12:56:01 -06:00
David Hall 7e3c01e597 Cleaned 2019-07-23 21:38:47 -06:00
David Hall fba697592c Moved functions from WinBase.Debugging.cs to DebugApi.cs and added some unit tests 2019-07-23 21:38:21 -06:00
David Hall 724164ceee Reorganized function placement in multiple files for easier retrieval. Finished unit tests and fixes for winbase.h random functions. 2019-07-23 21:18:23 -06:00
David Hall 115f7b08d8 Completed unit tests and fixes for namedpipeapi.h including introduction of HPIPE and SafeHPIPE for pipe handles. 2019-07-23 19:36:59 -06:00
David Hall b473009b71 Fixed Run method errors due to running new exe in temp directory. Moved to unit test's directory. 2019-07-23 14:26:09 -06:00
David Hall b953ab02f4 Completed unit tests and fixes for WinBase.h COM port related functions 2019-07-22 21:14:45 -06:00
David Hall 607ee9f32b Completed unit tests and updates for WinBase.h tape backup functions 2019-07-22 12:19:53 -06:00
David Hall e3ce94ff0c Completed winbase.h unit tests and fixes for ATOM based functions 2019-07-22 11:49:53 -06:00
David Hall 5f0e30daa2 Completed unit tests and fixes for winbase.h functions related to ActCtx 2019-07-22 11:13:22 -06:00
David Hall f1a4f2f3e2 Completed unit tests and fixes for wer.h in Kernel32.dll 2019-07-20 18:22:44 -06:00
David Hall d3e749db3f Completed unit testing for VersionHelpers.h 2019-07-20 10:41:56 -06:00
David Hall 57b2c23c1c Completed unit testing and fixes for UtilApiSet.h 2019-07-20 10:29:06 -06:00
David Hall 0d042532a3 Completed unit tests and fixes for TlHelp32.h 2019-07-19 17:32:31 -06:00
David Hall f47dc668bc Completed unit tests and fixes for TimeZoneApi.h 2019-07-19 15:22:52 -06:00
David Hall 1437967f7e Finished unit testing and fixes for threadpoollegacyapiset.h 2019-07-19 10:19:26 -06:00
David Hall 37c943fe4a Completed unit tests and fixes for threadpoolapiset.h 2019-07-17 15:27:05 -06:00
David Hall 7746a986bf Updated dump and custom constraints test helpers 2019-07-17 13:58:43 -06:00
David Hall 4bb12ff369 Completed unit tests and corrections to systemtopologyapi.h 2019-07-16 21:30:16 -06:00
David Hall e194fed546 Completed unit tests and corrections for sysinfo.h 2019-07-16 21:09:40 -06:00
David Hall 8212255858 Completed unit testing and fixes for synchapi.h 2019-07-16 13:32:53 -06:00
David Hall cb3465e603 Fixed ValueConstraint having success factor flipped 2019-07-16 12:19:40 -06:00
David Hall bcac2e835b Completed work on Value constraint 2019-07-16 07:43:56 -06:00
David Hall 94f1fdb9cb Updated and corrected code from StringApiSet.h with unit tests 2019-07-13 17:07:35 -06:00
David Hall 676598db55 Converted test dumper for ObjectDumper to Json serialization 2019-07-13 16:28:44 -06:00
David Hall e63b1b3a47 Rearranged unit testing helper methods into Shared test project. Pulled all shared code into new project. 2019-07-12 16:58:24 -06:00
David Hall 64b2911d5e BREAKING CHANGE: Changed CorrepsondingAction to CorrespondingAction due to misspelling. 2019-07-12 09:49:54 -06:00
David Hall 3df4a4af97 BREAKING CHANGE: Renamed SafeSECURITY_DESCRIPTOR to SafePrivateObjectSecurity and SafeSecurityDescriptor to SafePSECURITY_DESCRIPTOR due to inconsistency in framework leading to numerous misuse instances. Sorry! 2019-07-12 09:47:46 -06:00
David Hall 5fed9eda66 Updated GetAppContainerNamedObjectPath with better params, docs, unit test and error 2019-07-11 15:13:00 -06:00
David Hall db7652bc21 Made unit tests for and fixed all functions from rtlsupportapi.h 2019-07-11 14:52:17 -06:00
David Hall 15fe2603ff Added and moved unit tests 2019-07-10 15:34:48 -06:00
David Hall 40db674d11 Added custom NUnit constraint to handle looking at functions that return HRESULT, Win32Error, NTStatus or bool with GetLastError. 2019-07-10 15:33:58 -06:00
David Hall 029c35262e Fixed and updated functions in realtimeapiset.h
Added unit tests
2019-07-10 15:32:02 -06:00
David Hall 6404870776 Added unit tests for psapi.h
Fixed functions that were broken or incomplete
Added helper methods for enumerations
2019-07-10 11:30:10 -06:00
David Hall 0905e01329 Updated docs and added unit tests for profileapi.h 2019-07-10 11:28:36 -06:00
David Hall dedf7742df Updated docs and unit tests for processtopologyapi.h 2019-07-09 14:59:50 -06:00
David Hall 846518843b Major rework of all process and thread functions with full unit testing. Many breaking changes. 2019-07-09 14:49:40 -06:00
David Hall 96998e7c82 Added SafeAUTHZ_SOURCE_SCHEMA_REGISTRATION to support new AuthzEnumerateSecurityEventSources overload. Removed AUTHZ_SOURCE_SCHEMA_REGISTRATION_IN in lieu of better use of AUTHZ_SOURCE_SCHEMA_REGISTRATION. 2019-07-03 14:47:25 -06:00
David Hall c3dac3adc6 Major overhaul (BREAKING) and fixes of functions in ProcessSnapshot.h 2019-06-26 13:49:19 -06:00
David Hall da3fac4ae4 Fixed and enhanced processenv.h functions 2019-06-25 20:07:28 -06:00
David Hall 6649425ebb Fixed and extended functions from PathCch.h 2019-06-25 19:00:24 -06:00
David Hall 369f22fae7 Updated unit tests 2019-06-25 17:14:17 -06:00
David Hall e109316787 Added project to run code in or out of process 2019-06-25 17:13:32 -06:00
David Hall f4110f89d5 Fixed build issue 2019-06-25 17:07:36 -06:00
David Hall 6b5cea3719 Exposed TempFile to all tests in Kernel32 2019-06-22 14:19:16 -06:00
David Hall 8e103fb92b Fixed a number of parameters and attributes 2019-06-22 14:18:14 -06:00
David Hall c2507e539e Fixed page frame function params 2019-06-22 14:17:29 -06:00
David Hall cd71160495 Corrected bug in AdjustTokenPrivileges and dependent code 2019-06-19 14:44:05 -06:00
David Hall 9914ab53c1 Improved parameters on LibLoaderApi functions. Converted SafeResourceDataHandle to HRSRCDATA since it does not need disposal. 2019-06-19 10:06:37 -06:00
David Hall 70cb69039a Added support methods, better attributes, tests to JobApi 2019-06-18 18:59:17 -06:00
David Hall 18514d09e2 Change IO completion port handle references to HANDLE instead of IntPtr. 2019-06-18 13:22:18 -06:00
David Hall cdde65e3ca Renamed tests for better descriptions 2019-06-18 12:55:20 -06:00
David Hall f679e75e88 Major overhaul to fix problem in InterlockedApi functions. All work now. See unit test for example of use. 16-bit structure alignment is critical. 2019-06-18 12:54:41 -06:00
David Hall ceff427cb9 Breaking fixes on heap functions. Added helper methods and prevented use of raw pointer for heap allocation to prevent memory leaks. Fixed bugs on function definitions. 2019-06-17 13:47:28 -06:00
David Hall 36c5b82f91 Updated and fixed file functions in Kernel32. Changed WIN32_FIND_DATA back to a structure and corrected IShellLinkW reference. Added EnumFilesEx and EnumVolumes to simplify related functions. Fixed search handles so they dispose without error. Changed GetFullPathName, GetLongPathName and GetShortPathName to exclusively use the Unicode instance to avoid filename length restrictions. 2019-06-16 15:07:59 -06:00
David Hall 1f79a47573 Attempt 2019-06-15 14:10:16 -06:00
David Hall 5ca88029be Added SEM enum and updated dependent functions. Improved formatting and docs. 2019-06-15 14:09:57 -06:00
David Hall d4d3743e4c Fixed CreateEnclave signature by added SafeEnclaveHandle return value. 2019-06-15 14:08:36 -06:00
David Hall 2a78f2735f Improved docs and function definitions 2019-06-15 14:06:58 -06:00
David Hall 64d6a2f4f7 BREAKING CHANGE: Fixed #57 and all other CreateProcessXX references. Changed managed PROCESS_INFORMATION to SafePROCESS_INFORMATION and exposed native PROCESS_INFORMATION. If you were using PROCESS_INFORMATION before, please check it's use. It has changed now to SafePROCESS_INFORMATION. 2019-06-15 13:48:50 -06:00
David Hall 49f249104a Added some Shell32 method tests 2019-06-10 15:30:03 -06:00
David Hall 84f2765b20 Updated unit tests to indicate where tests were not complete by adding tasks 2019-06-09 09:58:51 -06:00
David Hall 3917d01d59 Updated NUnit reference 2019-06-07 19:03:58 -06:00
David Hall a055a0d6fa Update NUnit references in unit test projects 2019-06-07 12:49:41 -06:00
David Hall da8b40b1b9 Corrected more blittability problems 2019-06-07 11:51:47 -06:00
David Hall 138412c3a4 Fixed problem with CREDENTIAL layout, added managed equivalent and fixed CredEnum #54 2019-06-04 16:01:09 -06:00
David Hall f59831bc2c Updated project files for 2.3.10 2019-06-04 12:18:56 -06:00
David Hall 5ee2b906b7 Completed work on AdvApi32 2019-06-04 12:16:41 -06:00
David Hall ca8fcb7bf5 Added remainder of AdvApi32 Windows service management functions and provided .NET native security access functions and classes. 2019-05-30 13:37:31 -06:00
David Hall 5e7350a41a Updated AdvApi32 tests 2019-05-27 19:41:08 -06:00
David Hall 9aa18ead89 Fixed test to align with code update 2019-05-21 23:19:40 -04:00
David Hall 9e25dfe47b Fixed structure alignment bug (#50) in Debug Api calls. 2019-05-21 23:19:07 -04:00
David Hall de5426a305 Added and corrected a number of methods and supporting types for Secur32.dll 2019-05-13 14:46:57 -06:00
David Hall 440af024bb Updated shell tests 2019-05-08 19:03:17 -06:00
David Hall 56f517d6e9 Updated project information for 2.3.8 2019-04-30 08:00:06 -06:00
David Hall 769d045df2 More security additions (advapi32, secur32) 2019-04-30 07:59:38 -06:00
David Hall 01ae59e0c8 Final tested work on Authz functions 2019-04-29 11:31:13 -06:00
David Hall c68aca71ac Updated tests for iphlpapi 2019-04-24 08:37:46 -06:00
David Hall 04b9f4f3ae Put some extra effort into ensuring functions and structures for Kernel32 console worked. Some breaking changes, but they would have been broken anyway. 2019-04-15 14:34:32 -06:00
David Hall 5be3e15570 Update project versions to 2.3.6 2019-04-15 13:45:35 -06:00
David Hall f9c435ba9e Cleaned and added PrinciplePermissionAttribute tags to test methods requiring elevated privileges. 2019-04-09 14:30:10 -06:00
David Hall d007f1babd Lots of work on ACE handling 2019-04-09 11:46:44 -06:00
David Hall 935fc50bf9 Updated tests for recent changes 2019-04-09 09:19:23 -06:00
David Hall 6f62808fc5 New and additional tests 2019-04-08 19:45:25 -06:00
David Hall ef2f74cd83 Added allocation size handling to GetString and AllocString 2019-03-21 09:34:36 -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 72a2ceb50c Updated project versions to 2.3.5 2019-03-12 08:05:49 -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 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 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 600cb65672 Fixes and refinements on PowrProf functions 2019-03-07 09:42: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 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 ec8fec7902 Updated project files to 2.3.1 2019-02-24 18:54:29 -07:00
David Hall c45e2ddc4c Added DisplayConfigXX functions with all supporting structures and enumerations along with extended methods to simplify coding 2019-02-24 18:41:17 -07:00
David Hall 3af1a60bec Fixed error with WNetCloseEnum when called from SafeWNetEnumHandle, removed redundant WNetOpenEnum function, added wrapper for WNetOpen/Enum/Close called WNetEnumResources. 2019-02-22 09:51:31 -07:00
David Hall 91ad5730b6 Update project versions to 2.3.0 2019-02-20 11:08:59 -07:00
David Hall b7dccd02f0 Completed work on NetApi32 2019-02-19 21:55:13 -07:00
David Hall 0c82199f52 Updated dependent NuGet packages 2019-02-19 18:24:30 -07:00
David Hall f59699c64c Futher work on ControlPanel class 2019-02-18 14:30:35 -07:00
David Hall fb885d09d9 Tests for new NetApi32 functions 2019-02-18 14:28:55 -07:00
David Hall 4ce874c5c0 Tweaked work submitted by @gigi81 to match project style, reorganize files, and update documentation. 2019-02-11 19:34:47 -07:00
David Hall 8aefdc9389 Revert "Added some missing functions, structs and enums to winsvc.cs and tests"
This reverts commit dd15c0478c.
2019-02-11 18:38:41 -07:00
David Hall ee64aca822 Merge branch 'master' of https://github.com/dahall/Vanara 2019-02-11 18:32:16 -07:00
David Hall 1364d3a447
Merge pull request #38 from gigi81/feature/advapi32-winsvc
Added some missing functions, structs and enums to winsvc.cs and tests
2019-02-11 18:31:51 -07:00
Luigi Grilli dd15c0478c Added some missing functions, structs and enums to winsvc.cs and tests
Added QueryServiceStatusEx SERVICE_STATUS_PROCESS and more and test

Removed redundant CloseServiceHandle calls

Added Start/Stop/Delete/Control service functions

Added Start/Stop/Delete/Control service functions and appveyor for testing

Fixed version in appveyor.yml

Reducing msbuild verbosity

Improved AdvApi32 tests

Improve StartStop test method

Fixed StartService arguments types

Added ControlService, Fixed ControlServiceEx

Delete appveyor.yml
2019-02-07 00:52:59 +00:00
David Hall 39a4044be0 Added some User32 tests 2019-02-06 07:31:54 -07:00
David Hall 7e183c2b6c Updated project files to 2.2.1 2019-02-05 14:25:27 -07:00
David Hall 08f46aba31 Tried out some test methods for SHCreateShellItemArray 2019-02-01 11:38:58 -07:00
David Hall 8f1e78e0f3 Updated project versions to 2.2.0 as there have been lots of changes, some of which are breaking. 2019-01-21 08:42:39 -08:00
David Hall 6bd53ea1d7 Fixed reference to HKLM 2019-01-16 08:16:29 -07:00
David Hall 8fa7d0aafa Changed project versions to 2.1.3 2019-01-14 14:46:49 -07:00
David Hall a9aa40f1a3 Updated themed controls to use VisualTheme instead of VisualStyleRenderer to avoid display problems in Win10 2019-01-12 21:45:48 -07:00
David Hall 15e758c9ee Added ExplorerBrowser implementation (not currently visible or functional) 2019-01-11 18:07:23 -07:00
David Hall b35d873906 Changed project versions to 2.1.2 2019-01-02 20:30:36 -07:00
David Hall 9c16e3ac94 Removed unnecessary tests 2018-12-17 14:36:20 -07:00
David Hall 4356d92c71 Changed project versions to 2.1.1. 2018-12-17 11:45:32 -07:00
David Hall 9b5410c766 Refactored the SendMessage functions across the projects 2018-12-17 11:44:28 -07:00
David Hall c6451bf9b3 Updated version to 2.1.0 to indicated addition of Theraot.Core as a dependency. 2018-12-11 11:34:44 -07:00
David Hall 31c8628715 Added trigger test 2018-12-07 20:59:50 -07:00
David Hall 42e70bd89c Further additions, corrections and tests for PInvoke.Cryptography 2018-12-05 12:38:06 -07:00
David Hall 0a7b5f82bf Added NCrypt to PInvoke.Cryptography 2018-12-03 18:07:06 -07:00
David Hall 1e344ff174 Renamed PInvoke.BCrypt to PInvoke.Cryptography 2018-12-03 14:37:25 -07:00
David Hall 15d7de5390 Further work on BCrypt 2018-12-03 14:16:24 -07:00
David Hall 7cd2e23aca Added BCrypt.dll library 2018-12-02 12:19:31 -07:00
David Hall fed13f093c Updated project files for 2.0.1 2018-11-30 14:34:07 -07:00
David Hall e2cd46fcfa Finished adding all methods and structures from NTDSApi. All tested except those that cause changes to ADSI since I have no domain to test on. 2018-11-30 14:01:11 -07:00
David Hall d434ec4527 Updated project files for 2.0 release 2018-11-28 08:53:23 -07:00
David Hall dd876ef071 Updated tests to reflect changes in libs 2018-11-28 07:48:11 -07:00
David Hall 5c9121384e Fixed Shell tests 2018-11-27 12:07:40 -07:00
David Hall d90bc7ec42 Bug fixes and cleanup for PROPVARIANT 2018-11-27 12:02:37 -07:00
David Hall c5467dfb7e Another 2.0 major commit. All tests working. 2018-11-19 21:18:50 -07:00
David Hall 627c6d2314 2.0 Checkin - Buildable 2018-10-26 12:24:07 -06:00
David Hall 07b35daee3 Updated projects to version 2.0.0 2018-09-21 23:28:01 -06:00
David Hall 138accc380 MAJOR BREAKING CHANGES: Fundamentally changed how HANDLEs are represented and used. Much better type safety now that all handles derive from HANDLE and disposing instances are all noted by a SafeHxxx name. Solves problem with circular references and random IntPtr parameters. 2018-09-21 22:35:34 -06:00
David Hall 174f5219ec Updates to existing code with breaking changes. 2018-09-19 06:54:14 -06:00
David Hall e1ab4ee39b Minor tweaks. 2018-09-13 18:18:14 -06:00
David Hall 6602bdf12c Updated project information for 1.1.0 2018-09-10 16:56:45 -06:00
David Hall efc3f33173 Completed functions in IpHlpApi found in NetIOApi.h 2018-09-10 16:55:05 -06:00
David Hall fe45d80854 Due to significant breaking changes related to the removal of conversion operators from GenericSafeHandle to IntPtr, changed version to 1.1.0. 2018-09-04 13:47:00 -06:00
David Hall fc3ebba322 Replaced numerous IntPtr calls to SafeSecurityDescriptor. 2018-09-04 13:43:41 -06:00
David Hall bbc22f6646 Changed calls from conversion operator to DangerousGetHandle for all GenericSafeHandle derivatives. 2018-09-04 13:42:49 -06:00
David Hall 6b1ed53536 Made conversion operator from GenericSafeHandle to IntPtr explicit to minimize unintended conversions (#12) and updated all affected functions, including fixing those affected by unintended consequences. 2018-09-04 12:04:25 -06:00
David Hall ff50e8d23d Added classes to register and interact with the registry for shell applications, ProgIDs and file associations 2018-08-29 12:59:20 -06:00
David Hall 0f476165ca Updated all versions to 1.0.19 2018-08-18 21:37:35 -06:00
David Hall 411b857d01 Revert "Revert "BREAKING CHANGE: Removed ResourceId and ResourceIdUni as they pose a major risk for memory leaks. Updated dependent structures PROPSHEETPAGE and TASKDIALOGCONFIG with IntPtr and supporting properties.""
This reverts commit a454d5055d.
2018-08-18 19:38:27 -06:00
David Hall a454d5055d Revert "BREAKING CHANGE: Removed ResourceId and ResourceIdUni as they pose a major risk for memory leaks. Updated dependent structures PROPSHEETPAGE and TASKDIALOGCONFIG with IntPtr and supporting properties."
This reverts commit 733e30b868.
2018-08-18 19:33:40 -06:00
David Hall 733e30b868 BREAKING CHANGE: Removed ResourceId and ResourceIdUni as they pose a major risk for memory leaks. Updated dependent structures PROPSHEETPAGE and TASKDIALOGCONFIG with IntPtr and supporting properties. 2018-08-18 19:33:00 -06:00
David Hall 44776560ce Completed registry related functions and RegistryEventMonitor component to listen for registry changes. 2018-08-13 21:29:07 -06:00
David Hall 19e98c45f1 Tests for shell progress dialog interfaces. 2018-07-30 16:21:34 -06:00
David Hall 70952057e0 Completed testing and corrections for WNet functions 2018-07-28 12:29:26 -06:00
David Hall 38db67b78b Updated project files for 1.0.17 release 2018-07-26 22:54:41 -06:00
David Hall 778d2883b9 Improved NetworkListManager 2018-07-21 14:14:26 -06:00
David Hall b6ac026cdd Changed namespace 2018-07-17 11:28:07 -06:00
David Hall 75dd05c256 Removed unreachable code 2018-07-17 11:27:31 -06:00
David Hall c3fb6ad049 Updated to correct for COLORREF move 2018-06-28 18:02:36 -06:00
David Hall c85b8d8fc4 Version 1.0.15 project file updates 2018-06-27 13:25:04 -06:00
David Hall 5653a4f048 Lots of fixes and documentation on UxTheme and support VisualTheme. All functions fully tested. 2018-06-27 13:14:43 -06:00
David Hall 9390e08017 Updated color references to COLORREF struct, added XML comments, added Get/SetIconSize extension methods, fixed HIMAGELIST_QueryInterface, added INDEXTOOVERLAYMASK macro, removed ImageListDrawColor 2018-06-08 11:25:08 -06:00
David Hall a24cfac33c Updated to match new GetThemeStream format 2018-06-08 11:18:49 -06:00
David Hall 95b9a685d4 Simplified use cases for SendMessage across all projects. 2018-05-31 14:39:11 -06:00
David Hall 214ca4bb5f Minor fixes related to Kernel32 build 2018-05-29 17:49:10 -06:00
David Hall 91f6d59f7f BITS pinvoke updates, helper classes, and unit tests 2018-05-29 17:45:25 -06:00
David Hall 541b5c39d4 Added ShellFileOperations class along with supporting unit tests to encapsulate IFileOperations interface 2018-04-03 13:21:51 -06:00
David Hall 4699faeeea In TaskSchd.cs, changed string values representing dates and durations to specialized class to ensure proper formatting and easier retrieval. 2018-02-07 09:34:58 -07:00
David Hall 4fc48f2082 Added enums to triggers and cleaned up code. 2018-02-06 18:17:48 -07:00
David Hall 5e9fff54ef Added ControlPanel class to Shell assembly 2018-01-29 17:57:03 -07:00
David Hall 100412d44d Fixed errors created by changing PInvoke lib 2018-01-29 17:56:01 -07:00
David Hall 3b6d12c8e0 Enhanced and fixed COM Property abstractions. 2018-01-27 14:40:26 -07:00