Commit Graph

1054 Commits (ee72119e36ec1db4196081f3f76cb2b72676d261)

Author SHA1 Message Date
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
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 ea5e8d6c2b Consolidated code and fixed bug in ToFileTimeStruct that mixed up UTC conversion. 2019-06-15 13:50:10 -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 49f249104a Added some Shell32 method tests 2019-06-10 15:30:03 -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