Commit Graph

762 Commits (4620e983be2fa6acf877d47aecebcfa817ce7bbc)

Author SHA1 Message Date
David Hall da11368492 IpHlpApi unit test nullability fixed 2023-09-01 19:27:34 -06:00
David Hall 8a0edb4775 Added nullability to Mpr 2023-09-01 17:59:54 -06:00
David Hall 510a1cfbf1 Added nullability to DnsApi 2023-08-28 17:48:52 -06:00
David Hall 89719464b4 Cleanup 2023-08-28 08:02:35 -06:00
David Hall 49c46e7909 Added nullability to Dhcp 2023-08-28 08:01:26 -06:00
David Hall 84d562e739 Applied nullability to DOSvc 2023-08-27 10:43:54 -06:00
David Hall 33811cf386 Fixed directory for MsftEdit unit tests 2023-08-27 10:41:14 -06:00
David Hall 3678847506 Completed nullability work on Vanara.PInvoke.BITS and Vanara.BITS 2023-08-23 14:28:45 -06:00
David Hall e8d911f828 Updated shell unit tests for nullability 2023-08-21 12:08:50 -06:00
David Hall cad78ebb07 Added nullability for Windows.Shell tests 2023-08-21 11:20:32 -06:00
David Hall af64ba18a6 Finished nullable work on Vanara.Windows.Shell.Common 2023-08-17 11:44:44 -06:00
David Hall 1aba884b1e Applied global usings and finished nullable work on Shell32 2023-08-04 10:24:49 -06:00
David Hall 1f96c4ce75 Completed nullable work on ws2_32 2023-07-13 08:49:09 -06:00
David Hall 6936530fa1 Completed nullable work for NetApi32 and NTDSApi 2023-07-09 10:30:00 -06:00
David Hall 24ef37690b Applied PR #413 to nullable 2023-07-05 19:47:36 -06:00
David Hall 380236d718 Finished nullable work on Ole 2023-06-27 10:13:43 -06:00
David Hall 4f2bc5233c Checkpoint 2023-06-25 19:31:05 -06:00
David Hall 94a761c326 Lots of changes for rich edit 2023-06-08 18:21:28 -06:00
David Hall 917f979973 More work on storage io control #403 2023-06-08 18:19:42 -06:00
David Hall b230f2033f Fixed #402 2023-05-28 14:45:29 -06:00
David Hall afd6b79b1f Check point - Lots of additions to windows messages 2023-05-28 09:07:56 -06:00
David Hall d75cbee08e Finished nullable work on User32 2023-05-13 20:16:32 -06:00
David Hall 52ff2f5899 Partial work on nullable for Gdi32 2023-04-15 11:27:36 -06:00
David Hall fec486a4d0 Completed nullability work on PInvoke.Security 2023-04-11 15:29:29 -06:00
David Hall c5605d51b8 Added in PR #386 to branch 2023-04-10 15:45:00 -06:00
David Hall b2a78e184b Checkpoint on nullable work after signature work on PInvoke.Security, enabling nullable for entire solution, and auto fixing all optional attributed string and array parameters. 2023-03-31 09:47:53 -06:00
David Hall f7168cf0e1 Fixed LOGPALETTE structure and related functions 2023-02-20 07:58:13 -07:00
David Hall 54b1923a26 Added nullability to Vanara.Core 2023-02-18 19:31:48 -07:00
David Hall 764efd8a14 Added conversion operator from FileSystemInfo to FILEDESCRIPTOR 2023-02-02 20:26:53 -07:00
David Hall 139ec44dd4 Finished work on Vanara.PInvoke.CoreAudio 2023-01-31 15:00:12 -08:00
David Hall dd1af5f67c More BREAKING CHANGES to NativeClipboard. (Sorry!) All atomic methods to set data have been removed due to inconsistencies and design challenges. New model forces all setting and getting to be done through IDataObject and it's methods and extensions. See documentation for class for example. Addresses #355. 2023-01-29 10:20:13 -07:00
Peter Šulek 8ed6e0402d
#371 Add Create method for types MONITORINFO and MONITORINFOEX (#372)
* #371 Add Create method for types MONITORINFO and MONITORINFOEX

* fixed CodeFactor issues

* #371 Add Create method for types MONITORINFO and MONITORINFOEX

* fixed CodeFactor issues

* changed Create methods to Default property

* fixed MONITORINFOEX.Create() with MONITORINFOEX.Default

---------

Co-authored-by: Peter Šulek <peter.sulek@synotgames.com>
2023-01-28 18:44:24 -07:00
David Hall 93ccf3ca34 Finished work on TDH methods 2023-01-28 18:38:16 -07:00
David Hall 177688f196 Lots of work on WindowBase, VisibleWindow, WindowClass and MessagePump 2023-01-26 18:05:19 -07:00
David Hall ab28c3647f Added and modified classes supporting window creation and message pumps 2023-01-23 20:40:42 -08:00
David Hall 6f80b4217d Fixed and extended implicit operators for RECT and PRECT 2023-01-16 12:13:58 -07:00
David Hall 8d8ffa4d5b Additional documentation for NativeClipboard and IDataObject extensions 2023-01-14 16:12:40 -07:00
David Hall 94703f0acc More NativeClipboard changes 2023-01-14 11:36:08 -07:00
David Hall f793f09790 Another try at getting NativeClipboard working 2023-01-10 15:51:13 -07:00
David Hall 4e5ebb515b Updated clipboard SetText methods 2023-01-05 16:06:09 -07:00
David Hall 55512c732e Tons of fixes and updates to IDataObject and Clipboard methods and wrapper classes. 2023-01-05 10:28:15 -07:00
David Hall 63203f558e Updated SafeMoveableHGlobalHandle class and added tests. 2023-01-04 17:08:36 -07:00
David Hall 8e09e4e2dd More work on NativeClipboard 2022-12-30 18:24:08 -07:00
David Hall f786ef22d2 More work on NativeClipboard 2022-12-30 16:19:14 -07:00
David Hall 7ca924e5f7 Hopefully fixed #355 2022-12-30 13:56:19 -07:00
David Hall c0f5ed1595 Changed VSS_MGMT_OBJECT_PROP to struct for marshaling 2022-12-28 16:49:56 -07:00
David Hall 56571b2522 Changed NativeClipboard.SetShellItems functionality and added overlaod. 2022-12-27 09:34:36 -07:00
David Hall 0f00ef4fcf Fixed NativeClipboard GetText and SetText methods. Also changed ctor so that if no HWND is passed, it uses the Desktop's window handle. Fixes #355. 2022-12-25 17:05:38 -07:00
David Hall 532f43037b Removed dependencies on all x64 preprocessor indications and just made all structures work for both 32 and 64-bit (#346) 2022-12-21 20:33:41 -07:00
David Hall b2e972c77e Fixed NuGet references 2022-12-21 20:31:52 -07:00
David Hall 5241527f1f Added TestHelper.DumpStructSizeAndOffsets 2022-12-21 20:29:52 -07:00
David Hall 5c48d15f84 Fixed alignment of SET_VIRTUAL_DISK_INFO (#356) 2022-12-21 20:29:15 -07:00
David Hall 258cab3ad9 Added NativeClipboard.GetFileNameMap, GetShellItemArray, IsFormatAvailable(string) and SetShellItems methods (#353) 2022-12-20 15:06:37 -07:00
David Hall 7af4bc6b03 Updated tests for NativeClipboard 2022-12-19 17:13:17 -07:00
David Hall a620e499fc Got the VssApi projects to build 2022-12-16 23:40:39 -07:00
David Hall 6fbb14d6fe Updated NuGet package dependencies 2022-12-08 17:38:29 -07:00
David Hall 1a5d668418 Added Vanara.PInvoke.PhotoAcquire assembly with interfaces for Photo Acquisition. 2022-11-16 17:10:01 -07:00
David Hall 8387a31b26 Updated NUnit package version for tests 2022-11-16 11:52:29 -07:00
Martin Kuschnik 37d2a55ea8
Fixed NullReferenceException caused by unsuccessful CredRead call (#344)
* Added unit test for not existing credential
* fixed NullReferenceException caused by null to CREDENTIAL_MGD conversion
2022-11-14 09:06:07 -07:00
David Hall e1101990b0 Updates to WebSocket 2022-10-30 09:35:13 -06:00
David Hall f60a379236 Added Vanara.PInvoke.QoS project with QWave and QoS traffic support. 2022-10-22 11:02:37 -06:00
David Hall 23f455efaa Updated `DistributedRoutingTable` and supporting classes 2022-10-11 11:54:05 -06:00
David Hall df1702b414 Added `WindowsFirewall` and supporting classes to `Vanara.SystemServices`. 2022-10-11 09:43:29 -06:00
David Hall 680892bf5c Added `TestHelper.IsElevated` property 2022-10-11 09:41:22 -06:00
David Hall bdf07f10f5 Added DRT unit test and more DRT work 2022-10-04 14:18:34 -06:00
David Hall e5bca53d63 Fixed #324 better with testing 2022-09-29 13:23:48 -06:00
David Hall a915eda503 Tested #275 output 2022-09-26 10:08:49 -06:00
dahall e7bb9c00cb BREAKING CHANGE: Fixed marshaling problem with HTTP_DATA_CHUNK (#320) 2022-09-22 11:10:32 -06:00
David Hall a376a4531f Fixed problem with VirtualDisk async methods not showing progress correctly (#317). Due to threading issue. 2022-09-20 19:29:19 -06:00
David Hall ca2f1369f0 Fixed #318 and added simple test for HttpApi 2022-09-20 13:37:25 -06:00
David Hall fec46a0a7b Minor updates to BITS tests 2022-09-20 11:23:39 -06:00
David Hall 1e24865e5a Added new Vanara.Net assembly with support for DNS services and DHCP clients. 2022-09-16 10:49:26 -06:00
David Hall ad564035e7 Improved WriteValues 2022-09-16 10:48:34 -06:00
David Hall 148e52d8d6 Added helper properties and fixed parameters in DnsApi 2022-09-16 10:47:52 -06:00
David Hall fa6d6fb4b3 Updated Dhcp tests 2022-09-16 10:43:14 -06:00
David Hall 4d4999c5b3 Cleaned BITS unit tests 2022-09-05 13:31:02 -06:00
David Hall d8c787f158 Added Computer.Sessions property and supporting classes to discover active sessions. 2022-09-05 10:22:41 -06:00
David Hall 912bc9a3cc Included RdcStreamReader implementation of IRdcFileReader in base assembly since it is very reusable. 2022-09-03 10:01:03 -06:00
David Hall 232b0e88cd Added Vanara.PInvoke.MsRdc for the Remote Differential Compression (RDC) API 2022-09-03 09:54:10 -06:00
David Hall 0e84510a8b Updated NuGet packages 2022-09-01 17:48:45 -06:00
dahall a638b11876 Updated unit test organization and shared classes 2022-09-01 13:36:37 -06:00
dahall 35ae2e137c Moved TemporaryDirectory class from BITS unit test to Shared 2022-09-01 09:36:14 -06:00
dahall eb7f91970c Cleaned up test 2022-08-29 17:18:59 -06:00
dahall 14cd51e53f Cleaned and reorg'd 2022-08-29 17:10:20 -06:00
dahall c8e6c5a4b0 Added Vanara.PInvoke.FwpUClnt assembly and tests 2022-08-29 16:18:54 -06:00
dahall 88d863f0e2 Enhanced TestHelper.WriteValues() 2022-08-29 16:18:00 -06:00
dahall 492996f712 Made all unit tests unsafe, net48 and signed 2022-08-29 16:17:31 -06:00
dahall ab94a118fe Added strong name to UnitTest.Shared project 2022-08-10 14:35:01 -06:00
dahall 5c0dbc913b More work on NdfApi 2022-08-10 14:34:37 -06:00
dahall cc8f5045b8 Fixed problems with CLFS_MGMT_POLICY 2022-08-06 18:01:16 -06:00
dahall 28a363e8d3 Fixed bad comment 2022-08-06 15:36:04 -06:00
dahall 2e2d9d6c22 More work on ClfsW32 2022-08-06 11:20:18 -06:00
dahall 5019470887 More work on CLfsw32 2022-08-05 21:52:57 -06:00
dahall df3e5c224b Added tests and fixed problems with ClfsW32 2022-08-05 17:10:34 -06:00
dahall f59303a943 Added Vanara.PInvoke.WinSCard assembly 2022-08-01 19:16:01 -06:00
dahall 0407e8007f Tests and fixes to additions to BITS 2022-07-25 20:45:25 -06:00
dahall da5f3d4ee8 Made changes to new cache admin access. 2022-07-25 15:25:47 -06:00
dahall 4c4657f0ab Fixed overloads for HttpQueryInfo 2022-07-16 08:27:54 -06:00
dahall 5c96415f42 Fixed IpHlpTests based on changes to winsock return values. 2022-07-12 09:27:35 -06:00
dahall e84d1d269c Fixed bugs related to WSRESULT conversion 2022-07-11 15:50:58 -06:00
dahall 4b53445f80 Updated tests for Lsa functions 2022-07-05 09:44:53 -06:00
dahall 902ccfeeeb Fixed parameters of functions in INamespaceWalk 2022-06-14 10:00:51 -06:00
dahall a391f0c183 More work on ShellFolderCategorizer 2022-06-09 22:32:26 -06:00
dahall eef11ef46e Added unit tests for changes to Crypt functions 2022-05-29 21:40:08 -06:00
dahall b2bb3ce4ea Cosmetic changes to BITS code files 2022-05-21 13:42:27 -06:00
dahall 847f8b9e12 Fixed `VirtualDisk.Attach(string[]...`, duplicated it in `VirtualDisk.AttachAsync`, and removed `VirtualDisk.Attach(string...)`, `VirtualDisk.VolumeGuidPath` and `VirtualDisk.VolumeMountPoint` in leiu of their multi-mountpoint alternatives (#284) 2022-05-06 15:25:03 -06:00
dahall a517d536a3 Reworked all structures in IpHlpApi assembly to ensure size compatibility. (#296) 2022-05-04 15:35:49 -06:00
dahall 92e7ca7365 Fixed #297 - Incorrect value for `Ws2_32.IN6_ADDR.Loopback` 2022-05-04 11:22:32 -06:00
dahall fb607a799e Fixed #296 - invalid `MIB_UDP6ROW_OWNER_PID.dwOwningPid` value when calling `GetExtendedUdpTable` 2022-05-04 10:59:33 -06:00
dahall 0edde0e5a2 Fixed bug #294 -- problem with SYMBOL_INFO and SymEnumSymbols not showing Name field correctly. Had to change PSYM_ENUMERATESYMBOLS_CALLBACK (breaking change). Added new SymEnumSymbolsEx overload to do the hard work. 2022-05-03 19:31:09 -06:00
dahall 3bba0bf3da Added Vanara.PInvoke.SensorsApi 2022-04-16 10:37:56 -06:00
dahall 8785074b81 Added struct size test for Vanara.Shared. 2022-04-14 08:34:27 -06:00
dahall 58a5eb7afb Updated TestHelper with Linq based structure size methods 2022-04-14 08:34:02 -06:00
dahall c24dbf8659 VirtualDisk: Added support for mounting specific path or drive when attaching, added properties for mount information, CreateAsync, AttachAsync, VHD set, snapshot and mirror methods. 2022-04-11 15:46:20 -06:00
dahall 6cb7659d5a Added a number of fixes and new methods to VirtualDisk. 2022-04-09 18:40:26 -06:00
dahall c86ddbf315 Updated VHD test file location 2022-04-09 18:33:36 -06:00
dahall 490972199f Taskbar tests 2022-03-14 09:25:59 -06:00
dahall 9e57ba3a14 Fixed bug with VirtDisk.GetStorageDependencyInformation and implemented VirtualDisk.GetStorageDependencyInformation() and VirtualDisk.DangerousGetHandle() 2022-03-11 18:07:36 -07:00
dahall fe1b9c24e7 Fixed multiple problems with SystemParametersInfo and SPI values (#283). Overload methods now are tested against all SPI values. 2022-03-10 17:47:48 -07:00
dahall 57b6ed1f41 Added Vanara.Windows.Shell.Taskbar class to get/set information regarding the system taskbar. 2022-03-04 20:10:17 -07:00
NN 95328a6fd0
Lower System.ValueTuple version dependency. (#280) 2022-02-28 11:54:43 -07:00
NN 83f899a665
Correct alignment for WTSINFO and WTSINFOEX. (#279)
Thanks for your replies. I'm convinced. I'll merge. Thanks for your input and contributions.
2022-02-25 11:13:16 -07:00
dahall a94476f5d1 Added WinHTTP assembly 2022-02-22 19:41:15 -07:00
dahall 57c2216e4c Added Antimalware assembly (AMSI) with supporting unit test and wrapper class in Vanara.SystemServices, AntimalwareScan. 2022-02-10 11:16:09 -07:00
dahall d9f00186b0 Removed support for .NET 2.0, 3.5, 4.0 and 4.5, .NET Core 2.0, 2.1, and 3.0 since all are or shortly will be out of support. Added support for .NET 4.6.2 and 4.8. 2022-02-07 14:35:37 -07:00
dahall edde531d3b Added Usp10 (Uniscribe) assembly. 2022-02-05 15:42:54 -07:00
dahall 1ae596bd92 Added Vanara.PInvoke.Ime32 assembly 2022-01-31 20:53:20 -07:00
dahall ad56116e87 Lots of work to make using IDataObject and the clipboard more stable and usable. Added Get/Set extension methods for IDataObject. Added attributes to clipboard formats to help reading. Added formatters to process clipboard types. Fixed bugs in ShellDataObject and NativeClipboard. 2022-01-22 15:35:37 -07:00
dahall 5f52aa7820 Added SafeMoveableHGlobalHandle class and added support to locking memory to all memory classes. 2022-01-16 17:22:34 -07:00
dahall 0bb9797e2f BREAKING CHANGES: I have dramatically reduced dependencies of almost all assemblies on .NET runtime assemblies not part of core System assemblies, most specifically System.Drawing and System.Windows.Forms. This forced the removal of some overloaded methods and the replacement of leveraged structures and enums with native equivalents. I added Vanara.Windows.Shell.Common which has all the content from Vanara.WIndows.Shell that did not have dependencies. I extracted all extension methods from Gdi32 and User32 and moved them to Vanara.Windows.Extensions. 2022-01-14 07:32:51 -07:00
dahall 656c6d2b02 More tweaks to allow for Shell.Common and Shell.Windows to work along with unit tests 2022-01-11 18:13:44 -07:00
dahall 92c8ab945b Updated NuGet packages 2022-01-04 15:28:43 -07:00
dahall 2eddeabf2c More updates and unit tests for VSS (still not ready) 2021-12-27 09:20:57 -07:00
dahall 99ba5422b9 Updated tests and corrected found errors in Vanara.BITS 2021-12-11 09:05:58 -07:00
dahall 69a790f48c Fixed issue #253 2021-11-11 17:48:43 -07:00
dahall 22ec8ba85c Finished fixing AuthzReportSecurityEventFromParams. BREAKING CHANGE: removed SafeAUTHZ_SOURCE_SCHEMA_REGISTRATION as all functionality was possible by marshaling AUTHZ_SOURCE_SCHEMA_REGISTRATION correctly. 2021-11-09 16:13:04 -07:00
dahall 03bd938b7c Work on fixing and enabling Audit log writes using AuthzReportSecurityEvent and AuthzReportSecurityEventFromParams. The prior is now fully working. (#251) 2021-11-09 13:16:27 -07:00
dahall 626650318c Cannot resolve exceptions when calling IEnhancedStorageSilo.GetActions and GetPortableDevice 2021-10-21 13:29:35 -06:00
dahall ad55249b81 More fixes and extension methods for WPD 2021-10-21 13:27:10 -06:00
dahall 6b70dd283e Added test and fixed init 2021-10-19 20:12:03 -06:00
dahall 655b9db40e Added test projects for EhStor and WPD assemblies 2021-10-19 18:28:57 -06:00
dahall 7667a26c16 Updated NuGet dependencies 2021-10-19 07:52:18 -06:00
dahall d648651be9 Added LocalGroup and UserAccount classes to Vanara.SystemServices to retrieve local group and user account information from a server's SAM. Added access through Computer class. 2021-10-13 20:08:14 -06:00
dahall b8793f4af1 Tests for FhSVcCtl now working 2021-09-30 12:36:55 -06:00
dahall 2251e5d7b1 Added methods and interfaces for File History -- tests still failing 2021-09-30 12:14:05 -06:00
dahall c70f8bc29b Added Wireless Ad Hoc interfaces to WlanApi assembly. 2021-09-29 17:52:16 -06:00
dahall f28c7c3d8b Fixed bug in `SafeProcThreadAttributeList.Create` (#249) 2021-09-20 09:32:34 -06:00
dahall 29b299eafa Reverted NativeClipboard's listener window to derive from NativeWindow 2021-08-29 15:08:08 -06:00
dahall 7b1304136a Fixed bug in NativeClipboard change event 2021-08-26 17:28:15 -06:00
dahall d52b0d5b18 Updated NuGet package dependencies 2021-08-26 09:05:27 -06:00