Commit Graph

266 Commits (81292aca1de7e254540602c9db6c130b09597683)

Author SHA1 Message Date
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 b531dfc6fa Added functions from versionhelpers.h 2019-07-17 20:36:43 -06:00
David Hall 37c943fe4a Completed unit tests and fixes for threadpoolapiset.h 2019-07-17 15:27:05 -06:00
David Hall 4bb12ff369 Completed unit tests and corrections to systemtopologyapi.h 2019-07-16 21:30:16 -06:00
David Hall c25b34a445 Reorganized 2019-07-16 21:11:38 -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 3454e9d34f Added unsafe CreateThread overload and changed PTHREAD_START_ROUTINE to ThreadProc 2019-07-16 11:53:20 -06:00
David Hall ceff4504f0 Changed to BitHelper broke too much so reverted. 2019-07-16 07:43:10 -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 8a0888da0e Removed empty file 2019-07-13 16:28:02 -06:00
David Hall f9f7068a9d BREAKING CHANGE: Moved SecurityBaseApi.h functions to PInvoke.Security even though they live in Kernel32. Simplifies structure access and Security depends on Kernel32 anyway. 2019-07-12 16:57:28 -06:00
David Hall ba13536089 Added ACL revision constants 2019-07-12 13:46: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 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 c05c582a90 Fixed size of PSAPI_WORKING_SET_INFORMATION 2019-07-11 06:55:15 -06:00
David Hall 9ab48daa88 Updated BitHelper references 2019-07-10 15:32:48 -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 36c538f872 Added SECURITY_CAPABILITIES and UMS_CREATE_THREAD_ATTRIBUTES 2019-06-26 17:48:17 -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 2b99c81de0 Lots of bug fixes for namespace api 2019-06-25 17:21:08 -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 c07f56ebbb Added some Optional attributes 2019-06-22 14:16:25 -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 317fb1e3a6 Improved short para CreateProcess 2019-06-18 18:57:39 -06:00
David Hall 792c3040f9 Added parameter attributes to CreateProcess methods to indicate optional params. Added single param CreateProcess overload. 2019-06-18 15:20:54 -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 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 8250d509ee Added extension methods and reformatted. 2019-06-17 13:45:37 -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 6ae1c9696a Added LCID type to references 2019-06-15 14:11:05 -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 384a2a3caf Changed some import references to KernelBase for better compatibility 2019-06-15 14:05:36 -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 cb45d9fef7 Finally fixed all the FormatMessage code 2019-06-09 09:59:21 -06:00
David Hall 422ab0a7dd Updated project files for 2.8.11 release 2019-06-07 20:42:41 -06:00
David Hall da8b40b1b9 Corrected more blittability problems 2019-06-07 11:51:47 -06:00
David Hall e27a4042c1 Fixed comments 2019-06-07 11:00:32 -06:00
David Hall eaa0dd74d3 Fixed #55 by converting array to values (all reserved/unused so change shouldn't affect anyone) 2019-06-06 09:58:43 -06:00
David Hall f59831bc2c Updated project files for 2.3.10 2019-06-04 12:18:56 -06:00
David Hall 101a7b949e Added overload per #53 2019-05-26 09:50:56 -06:00
David Hall f30cdaf468 Added overload per #52 2019-05-26 09:50:40 -06:00
David Hall 0b83c0a914 Updated projects for version 2.3.9 2019-05-25 19:47:54 -06:00
David Hall 9e25dfe47b Fixed structure alignment bug (#50) in Debug Api calls. 2019-05-21 23:19:07 -04:00
David Hall 56f517d6e9 Updated project information for 2.3.8 2019-04-30 08:00:06 -06:00
David Hall 69da011101 Converted dwDesiredAccess param type to ACCESS_MASK on OpenProcess and OpenThread 2019-04-29 11:30:33 -06:00
iFeng Huang bdd9f1abda Fix "DeviceIoControlAsync(HFILE hDev, uint ioControlCode, byte[] inputBuffer, byte[] outputBuffer) outputBuffer no response data" issue. 2019-04-27 02:36:20 +08:00
David Hall 0cc1d914d0 Updated project files for 2.3.7 release 2019-04-24 08:48:29 -06:00
David Hall 26f843a69c Updated project data 2019-04-17 12:51:25 -06:00
David Hall c92d5228ef Major repairs of WinCon functions and structures. Some breaking changes, but only to fix problems. 2019-04-17 11:43:19 -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 72a2ceb50c Updated project versions to 2.3.5 2019-03-12 08:05:49 -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 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 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 91ad5730b6 Update project versions to 2.3.0 2019-02-20 11:08:59 -07:00
David Hall 4272101c17 Fixed param on DestroyHeap 2019-02-06 07:31:38 -07:00
David Hall 7e183c2b6c Updated project files to 2.2.1 2019-02-05 14:25:27 -07:00
David Hall 38fadc70ee Added MapViewOfFile3 and MapViewOfFile3FromApp 2019-02-04 12:41:34 -07:00
David Hall 6150985d6a Updated project information 2019-02-04 12:26:46 -07:00
David Hall 8238b1d84d Re-aded SafeHHEAP GetBlock method 2019-02-04 10:55:02 -07:00
David Hall 96596176dd Fixed numerous logic problems with holding and disposing heap handles. 2019-02-04 10:50:28 -07:00
David Hall 190acdcb48 Removed SafeHandle based SafeResourceHandle and replaced with struct based handle HRSRC as it does not need to be released ever. 2019-02-04 10:27:39 -07:00
David Hall f1085cd3a5 Change SafeHandle derived base class HANDLE to SafeHANDLE. Yes, bonehead move to not do this correctly from the beginning. 2019-02-04 09:51:08 -07:00
David Hall 58eb28407c Added SetSystemTimeAdjustmentPrecise 2019-02-04 09:41:09 -07:00
David Hall 6cf624bd8e Added VirtualAlloc2 and VirtualAlloc2FromApp 2019-02-04 09:29:58 -07:00
David Hall 1efc1993f2 Updated project information 2019-02-01 16:41:11 -07:00
David Hall 946bcb2bba Added FillMemory method 2019-01-25 10:58:00 -05: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 8fa7d0aafa Changed project versions to 2.1.3 2019-01-14 14:46:49 -07:00
David Hall 1e16ceed27 Updated copyright and PackageTags formatting in project files 2019-01-07 15:00:20 -07:00
David Hall b35d873906 Changed project versions to 2.1.2 2019-01-02 20:30:36 -07:00
David Hall 4356d92c71 Changed project versions to 2.1.1. 2018-12-17 11:45:32 -07:00
David Hall eb902e4595 Fixed build errors and warnings due to XML comments and obsolete license reference in project files. 2018-12-15 13:44:33 -07:00
David Hall 1042b528db Accepted changes to #26 and reformatted code 2018-12-14 16:25:25 -07:00
David Hall 478929c533
Merge pull request #26 from GreatFireWall/master
Add 'Task<TOut?> DeviceIoControlAsync<TIn, TOut>(HFILE hDevice, uint ioControlCode, TIn? inVal)'
2018-12-14 16:19:03 -07:00
David Hall 53df4ac64a Modified projects to support .NET Core 2.0 and 2.1 2018-12-14 15:10:31 -07:00
David Hall 8d0813cd51 Changed netstandard20 to netstandard2.0 in all project files to comply with updated MS preferences 2018-12-14 13:07:18 -07:00
iFeng Huang 6bf69058c6 Add 'Task<TOut?> DeviceIoControlAsync<TIn, TOut>(HFILE hDevice, uint ioControlCode, TIn? inVal)' for instead of 'DeviceIoControlAsync<TIn, TOut>(HFILE hDevice, uint ioControlCode, TIn? inVal, TOut? outVal)'. 2018-12-14 23:09:48 +08: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 33b358033d Updated project information to version 2.0.1 and signed all assemblies. 2018-12-07 13:53:39 -07:00
David Hall ef801b11a9 Added conversion methods 2018-12-02 12:18:50 -07:00
David Hall fed13f093c Updated project files for 2.0.1 2018-11-30 14:34:07 -07:00
David Hall 3dff214bad Cleaned files - no code changes 2018-11-30 14:09:03 -07:00
iFeng Huang 1c8cb0c1cc BeginDeviceIoControl expose an interface that using byte[] as input/output parameter.
Add xml doc.
2018-11-30 16:31:51 +08:00
iFeng Huang fa4441f8b7 DeviceIoControlAsync expose an interface that using byte[] as input/output parameter. 2018-11-30 16:02:13 +08:00
David Hall 8a1355b0af Updated comments 2018-11-28 12:33:55 -07:00
David Hall cb9bcbcad8 Fixed header for GetSystemTimeAdjustmentPrecise 2018-11-28 08:55:29 -07:00
David Hall d434ec4527 Updated project files for 2.0 release 2018-11-28 08:53:23 -07:00
David Hall f6b7c3892d Added new Win10 functions 2018-11-28 08:53:05 -07:00
David Hall 88489e84bd Applied fixes from @GreatFireWall to BeginDeviceIoControl 2018-11-27 12:04:46 -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 bfd2730324 Changed project builds to use latest C# minor version 2018-09-27 09:46:40 -05: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 6602bdf12c Updated project information for 1.1.0 2018-09-10 16:56:45 -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 bbc22f6646 Changed calls from conversion operator to DangerousGetHandle for all GenericSafeHandle derivatives. 2018-09-04 13:42:49 -06:00
David Hall cb6b39b449 Added SEC_xx enum for allocation flags 2018-09-04 12:07:20 -06:00
David Hall 47c5a94497 Updated more SafeHandles 2018-09-04 12:06:48 -06:00
David Hall 4f061faa74 Fixed signature problem with GetProcessHeaps. Replaced IntPtr references with appropriate SafeHandles. 2018-09-04 12:06:22 -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 1532bc461f Merge branch 'master' of https://github.com/dahall/Vanara 2018-09-04 08:19:33 -06:00
Konstantin Sharon ea2f5b0126 Add IntPtr overload for CreateProcess and CreateProcessAsUser 2018-09-04 09:53:25 +03:00
David Hall 6dd91de7c4 Changed PHANDLER_ROUTINE return value to BOOL 2018-08-30 16:05:39 -06:00
David Hall 0f476165ca Updated all versions to 1.0.19 2018-08-18 21:37:35 -06:00
David Hall 75c59640c3 Added PathCchXX methods to Kernel32 2018-08-17 07:38:29 -06:00
David Hall 0bf090b5b3 Replaced all references to SECURITY_ATTRIBUTES class with direct calls. Classes are already passed by reference. 2018-08-13 15:05:37 -06:00
David Hall f844f6a8f2 Updated projects for 1.0.18 release 2018-08-10 11:54:21 -06:00
David Hall 13e3259f8b Completed additional of all methods and supporting elements to Kernel32 2018-08-07 17:23:17 -06:00
David Hall 38db67b78b Updated project files for 1.0.17 release 2018-07-26 22:54:41 -06:00
David Hall f6ec55bb20 Added file disposition constants 2018-07-26 21:11:55 -06:00
David Hall 6c77595ea2 Updated correlation reports and project files after fixing analysis tool 2018-07-07 21:35:28 -06:00
David Hall a69e19ebc6 Updated project files and information to 1.0.16 2018-07-02 16:22:56 -06:00
David Hall c85b8d8fc4 Version 1.0.15 project file updates 2018-06-27 13:25:04 -06:00
David Hall d4d804e7a3 Updated project files for 1.0.14 2018-06-08 12:00:08 -06:00
David Hall a406749d98 Updated for build 1.0.13 2018-06-06 12:05:52 -06:00
David Hall dce7e85fb6 Removed Interlocked... functions as they are only referenced by Kernel32 2018-06-06 10:01:08 -06:00
David Hall 95b9a685d4 Simplified use cases for SendMessage across all projects. 2018-05-31 14:39:11 -06:00
David Hall cd5f69ffd8 Fixed updates to project comments 2018-05-30 14:27:48 -06:00
David Hall 8df9eba7bb Updated project files with new versions and comments 2018-05-30 12:32:03 -06:00
David Hall 214ca4bb5f Minor fixes related to Kernel32 build 2018-05-29 17:49:10 -06:00
David Hall 5d907ff3a3 100's of new methods to Kernel32 2018-05-13 21:41:49 -06:00
David Hall 2cfce3c7d3 Updated versions to 1.0.12 and corresponding release notes 2018-04-05 14:54:36 -06:00
David Hall 0d8b96fe9b Corrected XML documentation errors 2018-04-03 18:35:18 -06:00
David Hall 6551700381 Updated versions to 1.0.11 and corresponding release notes 2018-04-03 17:58:52 -06:00
David Hall 84b7a3bada Updated to version 1.0.10 2018-03-26 19:19:38 -06:00
David Hall cd9e856f77 Changed version to 1.0.9 2018-03-26 15:06:12 -06:00
David Hall dbf2e68121 Updated projects to version 1.0.8 2018-02-07 09:44:01 -07:00
David Hall c5885b4c17 Updated projects for 1.0.7 build. 2018-01-27 15:07:38 -07:00