Commit Graph

740 Commits (ddbdbb011df87cfe8de7f4081863cfac60e73475)

Author SHA1 Message Date
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 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 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 2f5ee5e704 Completed import of all WerApi.h from wer.dll. No unit testing done. 2019-07-20 21:14:53 -06:00
David Hall f0be543188 Added support for Wer.dll as new project Vanara.PInvoke.Wer.dll 2019-07-20 18:27:54 -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 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 6126ec8d4c Fixed bugs with constructor not allowing 0 for year and TIcks property not handling default values. 2019-07-19 15:22:26 -06:00
David Hall 1437967f7e Finished unit testing and fixes for threadpoollegacyapiset.h 2019-07-19 10:19:26 -06:00
David Hall e4cd771c40 Added constants from sdkddkver.h 2019-07-17 20:37:06 -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 026367d15a Added SerializableAttribute 2019-07-16 21:08:57 -06:00
David Hall c2b9622085 Added extra char to CallMethodWithStrBuf in cases where string length doesn't include NULL terminator. 2019-07-16 21:08:31 -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 a2088da9aa Added SafePACL and CLAIM_SECURITY_ATTRIBUTES* structures 2019-07-12 13:45:36 -06:00
David Hall 8c0069a1a4 Fixed params on GetAclInformation 2019-07-12 13:44:42 -06:00
David Hall 0ca6f73c23 Added Everyone static field to SafePSID 2019-07-12 13:44:14 -06:00
David Hall 2f5ca286f5 Added BuildSecurityDescriptor overload for NULL values 2019-07-12 13:43:44 -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 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 0d50ee7fc6 Added some missing values 2019-07-10 15:32:17 -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 0dc30ffa2f Added DebuggerDisplayAttribute to all handles to show the handle value. Added implicit conversion from Process to HPROCESS. 2019-07-09 09:22:37 -06:00
David Hall b38d750c51 FIxed missing union in DISPLAYCONFIG_MODE_INFO 2019-07-07 08:45:09 -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 ffed6e252a Added constructor to allow for ReadOnly use. 2019-07-03 14:45:15 -06:00
David Hall b78deacf02 Added CreateProcessAsUser with STARTUPINFOEX param 2019-06-26 17:49:08 -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 0920c029ec Added MandatoryIntegrityLevelSIDRelativeID 2019-06-25 17:19:55 -06:00
David Hall fe11d25a59 Fixed FreeSid declaration 2019-06-25 17:19:33 -06:00
David Hall 0b3d8ba147 Added AdjustTokenPrivileges variations 2019-06-25 17:19:10 -06:00
David Hall 6cd364624e Added support for IComparable 2019-06-25 17:12:56 -06:00
David Hall f7dd0a9cf6 Added NoOptimization attribute to SafeHANDLE disposal method 2019-06-25 17:12:28 -06:00
David Hall 34ce5635ff Added constructor from SecurityIdentifier and Current property to SafePSID. 2019-06-25 17:11:42 -06:00
David Hall d7eaafbb3b Added implicit converstaion from SafeFileHandle to HFILE 2019-06-22 14:18:53 -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 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 6595d81b92 Improved Equals method on SafeHANDLE 2019-06-19 10:04:57 -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 1a444b4fbc Added many more errors 2019-06-15 13:50:40 -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 1bfa7fc977 Update Gdi32 project files with changes 2019-06-11 13:41:42 -06:00
David Hall 70b0cf4393 Added color, OpenGL and region functions to Gdi32 2019-06-11 13:37:18 -06:00
David Hall 36116d7ff2 Reformatted 2019-06-11 08:15:43 -06:00
David Hall 26219195fe Updated % complete info 2019-06-10 19:31:54 -06:00
David Hall e25ce3e64f Added comment with unimplemented functions 2019-06-10 15:30:34 -06:00
David Hall e63be19482 Fixed signatures for implementation rather than use, added marshaling attributes and changed IntPtr to SafeHICON 2019-06-10 15:29:37 -06:00
David Hall 7f16708a16 Added enum to params of SHDefExtractIcon and overlay constants. 2019-06-10 15:28:35 -06:00
David Hall 0865938b33 Fixed bug in CommandLineToArgW by adding helper method, fixed bug in params to ExtractIconEx, added enum to params of SHGetStockIconInfo. 2019-06-10 15:26:59 -06:00
David Hall 9bfe5576f6 Fixed #56 with incorrect return value to CommandLineToArgvW. 2019-06-09 20:10:51 -06:00
David Hall 7b712e2215 Added SetupOverlappedFunction that uses a FileStream and doesn't try to rebind to the handle 2019-06-09 10:01:19 -06:00
David Hall 322ac346df Fixed bug in contructor not storing Guid 2019-06-09 10:00:49 -06:00
David Hall 2c1b24e3e1 Fixed bug in Insert 2019-06-09 10:00:16 -06:00
David Hall c254e5e62d Added constructor to SID_AND_ATTRIBUTES 2019-06-09 10:00:03 -06:00
David Hall 7bbbec2d4e Fixed incorrect storage of ANSI string arrays 2019-06-09 09:59:44 -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 bec657fdad Improved WINTRUST_DATA implementation 2019-06-07 20:32:25 -06:00
David Hall de311c6bf1 Added WinTrust.dll assembly and project. 2019-06-07 19:04:21 -06:00
David Hall 45a356f601 Fixed un-blittable structures 2019-06-07 12:49:14 -06:00
David Hall da8b40b1b9 Corrected more blittability problems 2019-06-07 11:51:47 -06:00
David Hall 68775cdb5b Fixed overlap issue with WAITCHAIN_NODE_INFO 2019-06-07 11:04:53 -06:00
David Hall 10b3aee029 Fixed comments, moved ToString content to DebuggerDisplay attribute where more apprpriate., corrected overlap and blittability problems with structures, add SafeLSA_UNICODE_STRING claass to deal with mem allocations. 2019-06-07 11:04:18 -06:00
David Hall 4b2ad79ab1 Added implicit conversion from PSID to SafePSID which copies the underlying content 2019-06-07 11:01:44 -06:00
David Hall b8564c6984 Fixed overlap problems with INSTALLSPEC 2019-06-07 11:01:03 -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 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 61a8280071 Added LCID wrapper 2019-06-04 12:17:03 -06:00
David Hall 5ee2b906b7 Completed work on AdvApi32 2019-06-04 12:16:41 -06:00
David Hall c8cb9a29d7 Completed work on Wait Chains (wct.h) 2019-05-30 19:07:04 -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 9ca4cf1720 Added winefs.h functions 2019-05-27 19:40:40 -06:00
David Hall 58716021f7 Added Audit functions 2019-05-27 19:40:21 -06:00
David Hall f046f68ad2 Added SafePSID.CreateWellKnown factory method 2019-05-27 19:39:40 -06:00
David Hall dfda94ba24 Separated Audit functions into separate file 2019-05-27 19:39:00 -06:00
David Hall c801a5137a Added SafePACL 2019-05-27 19:38:27 -06:00
David Hall 9c1381f682 Added CertEncodingType 2019-05-27 19:38:00 -06:00
David Hall ddf0c5f0a6 Changed UInt32 to ACCESS_MASK where appropriate 2019-05-27 19:37:44 -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 a7b33578f7 Added ability to support .NET Core and Standard 2019-05-25 20:49:57 -06:00
David Hall 0b83c0a914 Updated projects for version 2.3.9 2019-05-25 19:47:54 -06:00
David Hall c5dec3b510 Removed Windows Search interfaces 2019-05-25 19:47:22 -06:00
David Hall 6e81310eb6 Added Windows Search assembly 2019-05-25 19:46:56 -06:00
David Hall 0771f6b30d Added Windows Accessibility 2019-05-25 19:46:21 -06:00
David Hall 80c83d88d3 Added FOLDERLOGICALVIEWMODE 2019-05-25 19:45:00 -06:00
David Hall 70542ff101 Fixed ISearchCatalogManager2 2019-05-24 14:48:09 -06:00
David Hall e51da313f3 Added Windows Search support interfaces and code 2019-05-24 14:44:44 -06:00
David Hall 9e30668679 Added ICondition2 2019-05-24 14:44:15 -06:00
David Hall 824afbc907 Added helper functions 2019-05-24 14:44:02 -06:00
David Hall 4021b16101 Added lock and layout interfaces 2019-05-24 14:43:19 -06:00
David Hall be34118b68 Moved code around 2019-05-24 14:42:29 -06:00
David Hall c11860bf0c Fixed documentation 2019-05-24 14:42:05 -06:00
David Hall a127151135 Added IEnumFromCom to specialize IEnumFromNext for COM enum interfaces 2019-05-24 14:39:49 -06:00
David Hall 06b70ca748 Solution changes to support new Accessibility project 2019-05-23 11:09:43 -04:00
David Hall 116000593d Added Accessibility functions in new Accessibility project 2019-05-23 11:08:04 -04:00
David Hall 9e25dfe47b Fixed structure alignment bug (#50) in Debug Api calls. 2019-05-21 23:19:07 -04:00
David Hall da3d9d27b9 Updated project information for 2.3.8 2019-05-13 14:55:44 -06: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 e263b567f1 Added SecPkg structures 2019-05-13 14:44:36 -06:00
David Hall 49b489d4be Cleaned up code on marshalers 2019-05-13 14:43:03 -06:00
David Hall 0d8984a840 Added safe pointer parameter to SspiPromptForCredentials 2019-05-13 14:42:34 -06:00