Commit Graph

163 Commits (7c032ba708e713ba65ec96e544d9226bc487e97d)

Author SHA1 Message Date
David Hall c254e5e62d Added constructor to SID_AND_ATTRIBUTES 2019-06-09 10:00:03 -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 138412c3a4 Fixed problem with CREDENTIAL layout, added managed equivalent and fixed CredEnum #54 2019-06-04 16:01:09 -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 ddf0c5f0a6 Changed UInt32 to ACCESS_MASK where appropriate 2019-05-27 19:37:44 -06:00
David Hall 49b489d4be Cleaned up code on marshalers 2019-05-13 14:43:03 -06:00
David Hall d69470a78a Added partially documented LogonUserExExW 2019-05-09 17:42:36 -06:00
David Hall 136340947c Fixed sizing of LSA_UNICODE_STRING 2019-05-08 09:30:53 -06:00
David Hall 769d045df2 More security additions (advapi32, secur32) 2019-04-30 07:59:38 -06:00
David Hall 539f56d373 Untested: Complete translation of all Authz and Secur32 functions and structs 2019-04-25 14:40:23 -06:00
David Hall 7164c624b1 Added missing using statement 2019-04-10 13:10:35 -06:00
David Hall 124549d3f5 Added many new AdvApi32 methods 2019-04-10 12:13:59 -06:00
David Hall d007f1babd Lots of work on ACE handling 2019-04-09 11:46:44 -06:00
David Hall a1837a70f5 Added ACCESS_ALLOWED_ACE.GetSid method to extract SafeSID value from structure. Added event structures. Made marshaler for PRIVILEGE_SET safer. Many additions to SafeSecurityDescriptor. 2019-04-08 11:38:00 -06:00
David Hall 9eea42368b Added functions: AccessCheck, AccessCheckByType, AccessCheckByTypeResultList, GetSecurityDescriptorGroup, GetSecurityDescriptorLength, GetSecurityDescriptorSacl, IsValidSecurityDescriptor. Provided helper overloads for GetAclInformation, GetPrivateObjectSecurity. Enhanced SafeHTOKEN class. 2019-04-08 11:35:40 -06:00
David Hall da6113c621 Cleaned up comments 2019-04-08 11:27:09 -06:00
David Hall b8fe8bdf89 Moved GetInheritanceSource helper to PInvoke project 2019-03-16 16:12:25 -06:00
David Hall ffb7879e3f Added AdvApi32 event log methods 2019-03-13 09:58:00 -06:00
David Hall 8a8b265834 ToString methods added to LsaForest structures 2019-02-18 14:28:34 -07:00
David Hall 20adde08ae Added LsaForestTrustInformation.FromBuffer static method to create a new instance from a pointer. 2019-02-16 18:17:18 -07:00
David Hall e99a0eff51 Major rework of LSA_FOREST_TRUST_INFORMATION by supplying a helper class (LsaForestTrustInformation) that makes the creation of it very .NET happy. Simply fill out the class with entries you need and then call DangerousGetLSA_FOREST_TRUST_INFORMATION() to build the structure. Also improved comments as I found more detail. 2019-02-16 17:40:12 -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 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 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 c846af84e5 Added more RegSet overloads 2019-01-17 21:02:28 -08:00
David Hall 635c8d8a33 Added overloads for RegSet* functions 2019-01-17 19:46:32 -08:00
David Hall fd06ac5e0a Moved REG_VALUE_TYPE enum from AdvApi32 to Shared 2019-01-16 08:07:46 -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 8a1355b0af Updated comments 2018-11-28 12:33:55 -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 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 1f54ff7c9c Added ImpersonateLoggedOnUser. 2018-09-05 07:31:39 -06:00
David Hall fc3ebba322 Replaced numerous IntPtr calls to SafeSecurityDescriptor. 2018-09-04 13:43:41 -06:00
David Hall d219c93e7f Major rework to ConvertSecurityDescriptorToStringSecurityDescriptor and ConvertStringSecurityDescriptorToSecurityDescriptor to include SafeHandles and automatic marshaling. 2018-09-04 12:09:56 -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 6fafeaf0b9 Adding 2 byte packing to LSA_UNICODE_STRING 2018-08-30 16:06:36 -06:00
David Hall 09fdb204fa BREAKING CHANGE: Changed class name of NetSecApi to Secur32 so that it matches the project rule of naming the class after the DLL. 2018-08-17 07:40:15 -06:00
David Hall 631ea1be4a CryptXX method stub 2018-08-17 07:38:58 -06:00
David Hall 012e2e7b4e Added CredXX methods to AdvApi32 2018-08-17 07:38:07 -06:00
David Hall 1ee6873cc7 Updated documentation 2018-08-14 11:02:20 -06:00
David Hall 3d5f828a4b Added documentation 2018-08-13 21:46:45 -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 5d907ff3a3 100's of new methods to Kernel32 2018-05-13 21:41:49 -06:00
David Hall 0d8b96fe9b Corrected XML documentation errors 2018-04-03 18:35:18 -06:00
David Hall 79ba7668c8 Changed CorrespondingTypeAttribute to allow for multiple types on an enum or a type and updated existing dependencies 2018-01-06 16:38:01 -07:00
David Hall 9c39eec5f9 * Changed projects to v1.0.3
* Fixed DllImport attributes to match native methods
* Added Crypt32 and Mpr projects
2017-12-06 08:54:01 -07:00
David Hall 403b3f41fb Updated Token related structures to provide all GetTokenInformation results. 2017-11-28 17:11:08 -07:00
David Hall b208f82df4 Updated projects and dependencies to allow for .NET Standard builds for all non-UI projects. 2017-11-27 16:50:18 -07:00
David Hall da627dad2e Initial load: Extra libraries and unit tests 2017-11-27 11:11:20 -07:00