Commit Graph

1086 Commits (d89a9df2a534a55d9929a422394d35110600b78e)

Author SHA1 Message Date
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
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 84f2765b20 Updated unit tests to indicate where tests were not complete by adding tasks 2019-06-09 09:58:51 -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 3917d01d59 Updated NUnit reference 2019-06-07 19:03:58 -06:00
David Hall a055a0d6fa Update NUnit references in unit test projects 2019-06-07 12:49:41 -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