Commit Graph

389 Commits (4f2f789088929117d6f28639e359a625d257f0a3)

Author SHA1 Message Date
David Hall 915b508eb2 Added tests for IConetextMenu functions 2020-11-28 18:30:26 -07:00
David Hall eea310d41f Added tests for `IContextMenu` 2020-11-23 15:02:43 -07:00
dahall 290c053d28 Added DHCP client APIs 2020-11-19 15:00:30 -07:00
dahall 23c5886ee5 Fixed Shell32 tests for API changes 2020-11-13 11:16:08 -07:00
dahall 721f6d14e6 Removed all Framework entries from unit test project files and into root Directory.Build.props 2020-11-12 22:38:00 -07:00
dahall 5806d373d3 Finally a working solution for #176. 2020-11-11 19:58:58 -07:00
dahall 3c20988f29 Changed params to GetLogicalProcessorInformationEx overload to return RefEnumerator 2020-11-10 21:38:59 -07:00
dahall 1c0e428592 Changed GetLogicalProcessorInformationEx helper method to return a SafeNativeLinkedList rather than an array so that the memory of linked, nested child arrays is not disposed before use. (#176) 2020-11-10 09:42:48 -07:00
dahall c3a6add0a4 Fixed #175 per detail for GetLogicalProcessorInformationEx 2020-11-04 13:05:34 -07:00
dahall 6e19a4be23 Updated tests based on Shell32 syntax changes 2020-11-02 07:51:09 -07:00
dahall bf1e030ec6 Fixed a number of bugs with IUri and IUriBuilder 2020-10-22 20:13:58 -06:00
dahall 857e7c4703 Changed all methods that returned `SafeCoTaskMemString` to `string`. After much reading and testing I determined this was redundant with marshaling code in .NET. 2020-10-21 18:44:25 -06:00
dahall 8686a6723d Updated project and build files for 3.2.18. Converted all project files to new SDK format. 2020-10-21 08:27:54 -06:00
dahall 1d39cd0f05 BREAKING CHANGES: Fixed all the profile functions for ease of use and proper function.
Added Vanara.Configuration.InitializationFile wrapper class for all PrivateProfile functions.
2020-10-18 15:34:03 -06:00
dahall 1fb8a2dc8a Test for IPropertySetStorage 2020-10-12 21:37:15 -06:00
dahall 87ce74835c Fixed unit tests for BITS Cabinet and ShlwApi pinvoke libs 2020-09-19 16:25:49 -06:00
dahall 37e78ae321 Fixed code causing warnings during Debug build 2020-09-19 08:47:48 -06:00
dahall 6f0789ce03 Initial implementation of FirewallApi.dll. Yes, it is in VB instaead of C#. Ony VB support parameterized properties and the underlying COM objects have these. Plus, it was a fun experiment. 2020-09-18 21:28:36 -06:00
dahall e94d44d48a Added LsaOpenPolicy test for remote machine (#169) 2020-09-14 10:27:58 -06:00
dahall d214434cda Initial implementation of P2P.dll 2020-08-26 21:04:19 -06:00
dahall 67e344975f Updated unit tests with changes to TestCaseSources class 2020-08-26 13:49:55 -06:00
dahall 8d875a0010 Completed initial work on DbgHelp library that also includes ImageHlp.dll functions 2020-08-19 20:55:22 -06:00
dahall 78ce3ad034 Buildable update checkin of DbgHelp code 2020-08-16 16:01:35 -06:00
dahall ad40568425 More work on dbghelp 2020-08-15 11:34:13 -06:00
dahall 4a14a25d1c New DbgHelp lib addition - check-in 2020-08-07 12:37:42 -06:00
dahall d7f382e5f2 Added initial methods and structures for Magnification.dll 2020-07-28 15:40:32 -06:00
dahall 091352956e Fixed (#152) bug in base class SafeMemoryHandleExt that caused ToString(int...) to fail if memory size was not specifically set (like in parameter assignment). 2020-07-20 10:44:01 -06:00
dahall e073e09526 Fixed enumeration failures with EnumServiceStatus, EnumServiceStatusEx and EnumDependentServices (#145) 2020-07-13 08:39:38 -06:00
dahall d124115570 Changed compiler option on IEnumNextworkXX interfaces and array parameter on Next methods along with unit test. 2020-07-12 14:10:58 -06:00
NN bc139f52a7 Add zero copy GetIpNetTable2. 2020-07-12 10:09:39 +03:00
dahall 79c906186c Fixed problems with DNS struct alignment and added XML docs with tests 2020-06-27 18:42:50 -06:00
NN bb12636c7f
Fix DNS_QUERY_OPTIONS. Make tests always work correctly. (#140) 2020-06-25 13:55:17 -06:00
NN be237732c1
Add DnsApi tests. (#138)
* DNS_QUERY_OPTIONS are uint.

* Add DnsApi tests.
2020-06-24 14:44:39 -06:00
dahall ca577d062f Fixed and tested #135, #136 and #137 2020-06-23 15:38:22 -06:00
dahall a9162da80f Fixed XML docs, cleaned code, added parameter attributes and missing CoClass values for IShellFolder, added Vanara.Windows.Shell.RecycleBin class and tests 2020-06-20 12:10:20 -06:00
dahall c31890cf6a Added string methods to ShellFileOperations and some tests for Recycle Bin. 2020-06-15 09:22:37 -06:00
dahall fdcd7e93a1 Updated NuGet packages 2020-06-11 11:52:26 -06:00
dahall e886ea1b7a Fixed minor build errors and warnings 2020-06-11 10:27:59 -06:00
dahall 729345e24a Added all remaining shobjidl_core.h interfaces to Shell32 and SearchApi 2020-06-10 20:37:25 -06:00
dahall 5104c4c6e0 Added DirectWrite, DXGI and WIC references to Vanara.PInvoke.Graphics 2020-06-02 21:54:48 -06:00
dahall fe7c5d2763 BREAKING CHANGE: FIxed UNICODE_STRING so it would work across process boundries (thanks @Enigmatrix) and tested. Now #123 is implemented. 2020-05-27 22:32:53 -06:00
dahall a76f009ad9 Added test to enum Recycle Bin contents 2020-05-27 22:12:11 -06:00
dahall b06faf0596 Added another NtQueryProcessInformation test 2020-05-26 06:42:19 -06:00
dahall ecb5ca90de Added NtQueryInformationProcess (#123) and supporting constants and structures along with unit test. 2020-05-20 12:27:58 -06:00
dahall ab586bd279 Updated tests to check on #120 2020-05-17 09:46:40 -06:00
dahall 2004134da4 Removed CoreAudio project and unit tests. Decided to sack this work as there are other, more complete implementations already on GitHub and NuGet. 2020-05-14 10:17:33 -06:00
dahall 6ac3605005 Updated tests for #122 2020-05-14 10:12:53 -06:00
dahall efcd560dbd Added DnsGetCacheDataTable w/ unit test (#121) 2020-05-11 10:24:10 -06:00
dahall 88ad038496 Updated unit tests for errors based on underlying type changes. 2020-05-04 12:41:48 -06:00
dahall 1efa3a860a Completed work on CldApi with unit tests 2020-05-01 15:26:16 -06:00
dahall ed51271853 Committed work in progress on cldapi.dll 2020-04-30 09:34:04 -06:00
dahall a124fb4531 MAJOR BREAKING CHANGE: Changed underlying type of HRESULT and NTStatus to Int32 and Win32Error to UInt32 (reversed) due to a major miss on my part in reading the header files. Sorry everyone. 2020-04-27 21:25:47 -06:00
dahall 90078984c2 Updated build type 2020-04-22 20:57:29 -06:00
dahall 03f79ef1d2 Added CldApi.dll functions, constants and structures along with basic unit test. 2020-04-22 19:36:24 -06:00
dahall 7615b0ebd7 Corrected for breaking changes in Ws2_32 2020-04-21 08:04:08 -06:00
dahall 3d7d44f1ec Fixed TypeLoadException by 'DSREG_JOIN_INFO' (#117) 2020-04-17 19:50:59 -06:00
dahall 875507407f Corrected spelling of SOCKET_ADDRESS.lpSockaddr 2020-04-17 18:05:06 -06:00
dahall e9cf62fca3 Changed all Int32 return values to Win32Error values. Added WSASocket overload for optional param. Added SafeWSA class to call and cleanup WSA init. Added conversion operators to SOCKADDR_STORAGE. 2020-04-17 14:35:58 -06:00
dahall 590ca01d38 BREAKING CHANGES: Changed NLM_SOCKADDR to a class and changed all parameters that were IntPtr to that class where called. Changed functions of all **Events interfaces to return HRESULT and removed invalid CoClass attributes. Updated dependent tests and wrappers. 2020-04-16 19:39:41 -06:00
dahall 70b1163881 Fixed multiple bugs in DnsApi mostly stemming from trying to use structures in callback delegates. 2020-04-15 06:57:58 -06:00
dahall 8ab0e57f17 Fixed unit test projects after intro of Directory.Build.Props 2020-04-13 14:24:28 -06:00
dahall aabf8e7ca5 Added Vanara.PInvoke.DnsApi and supporting unit test supporting dnsapi.dll. 2020-04-11 16:17:06 -06:00
dahall c0ff453a20 Moved much of the individual project file detail to root Directory.Build.* files for consistency. Fixed build errors due to bad or missing project tags. Cleaned up project files. 2020-04-03 14:51:10 -06:00
dahall e3ec48600f Updated and extended tests for WCM and WLAN APIs. 2020-04-03 10:04:35 -06:00
dahall 02c4896b98 Fixed build warnings for missing XML docs and obsolete marshal directives 2020-04-02 19:14:40 -06:00
dahall d1a938dffe Added PInvoke libs for wlanapi.dll and wcmapi.dll. 2020-03-31 16:04:41 -06:00
dahall 0f0d699cb2 Added GetNamedSecurityInfo test 2020-03-27 17:07:17 -06:00
dahall 2cf271b8c0 Updated methods to use string overload of CertFindCertificateInStore 2020-03-27 17:04:18 -06:00
dahall f48cc975fe Added multiple winsock tests 2020-03-24 16:14:59 -06:00
dahall 34550984da Added remainder of winsock2.h functions and some tests 2020-03-23 13:34:30 -06:00
dahall 4c4d8cad8d Updated tests with new Crypt32 function definitions 2020-03-09 10:18:53 -06:00
dahall cc7170875f Fix and test for #101 - Bug when using SafeAnysizeStruct. 2020-01-17 07:54:15 -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 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
David Hall eb1bf547c2 Added unit tests for newly added functions and applied needed fixes. 2019-12-13 14:28:25 -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 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 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 9771eadebc Converted structures from using IVanaraMarshaler to using SafeAnysizeStructMarshaler attribute 2019-11-16 15:51:16 -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 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 6aacdf6d91 Updated test with shared code 2019-10-07 22:00:35 -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 d086778902 Consolidated test file reference to TestCaseSources 2019-09-17 10:36:00 -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 83560454ab Added assembly for KtmW32.dll functions and supporting unit tests 2019-08-28 15:23:56 -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 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 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 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 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 c09b2ec246 Completed unit testing and fixes for aclapi.h functions 2019-08-02 13:42:47 -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 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