Commit Graph

919 Commits (025e6529de4fb1aa1bfd2e95e05e3f597197b73b)

Author SHA1 Message Date
David Hall 025e6529de Added CreateOrDefault method to get best default value for a structure. Added InvokeStaticMethod to allow for calling a static method generically. 2019-07-09 09:23:41 -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 63c67871aa Added DebuggerDisplayAttribute for all classes to show pointer and string values. 2019-07-08 11:37:32 -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 a360548771 Added Equals override and new GuidPtr structure. 2019-07-03 14:44:16 -06:00
David Hall c374ab2cff Added ability to read nullable structure, fixed bug in WriteObject 2019-07-03 14:43:47 -06:00
David Hall 4905441377 Added pointer value in front of string with optional params to remove. 2019-07-03 14:42:51 -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 19d8a8d396 Fixed XML comments 2019-06-25 17:28:19 -06:00
David Hall 2b99c81de0 Lots of bug fixes for namespace api 2019-06-25 17:21:08 -06:00
David Hall a13ad1f3c8 Corrected based on changes to resource data handle. 2019-06-25 17:20:30 -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 369f22fae7 Updated unit tests 2019-06-25 17:14:17 -06:00
David Hall e109316787 Added project to run code in or out of process 2019-06-25 17:13:32 -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 7ce7b96209 * Derived SafeCoTaskMemString from base class SafeMemString derived from SafeMemHandle<T>.
* BREAKING CHANGE: Removed CharCapacity and made Capacity show char allocation. Size (from parent) shows byte capacity. Mimics StringBuilder.
2019-06-25 17:10:57 -06:00
David Hall f4110f89d5 Fixed build issue 2019-06-25 17:07:36 -06:00
David Hall d1bf221c4d Setup for solution build filter 2019-06-25 17:07:12 -06:00
David Hall 6b5cea3719 Exposed TempFile to all tests in Kernel32 2019-06-22 14:19:16 -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 cdde65e3ca Renamed tests for better descriptions 2019-06-18 12:55:20 -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 badc08c7e5 Extended StructureToPtr so that it works with `enum` values. 2019-06-17 13:44:46 -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 1f79a47573 Attempt 2019-06-15 14:10:16 -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