Commit Graph

592 Commits (846518843bd17c7b7d91bbc3ad67a846743d9fdb)

Author SHA1 Message Date
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