Commit Graph

602 Commits (3df4a4af973a8f8d17f116fd2e75123a13ae5de5)

Author SHA1 Message Date
David Hall 4021b16101 Added lock and layout interfaces 2019-05-24 14:43:19 -06:00
David Hall be34118b68 Moved code around 2019-05-24 14:42:29 -06:00
David Hall c11860bf0c Fixed documentation 2019-05-24 14:42:05 -06:00
David Hall a127151135 Added IEnumFromCom to specialize IEnumFromNext for COM enum interfaces 2019-05-24 14:39:49 -06:00
David Hall 06b70ca748 Solution changes to support new Accessibility project 2019-05-23 11:09:43 -04:00
David Hall 116000593d Added Accessibility functions in new Accessibility project 2019-05-23 11:08:04 -04:00
David Hall 9e25dfe47b Fixed structure alignment bug (#50) in Debug Api calls. 2019-05-21 23:19:07 -04:00
David Hall da3d9d27b9 Updated project information for 2.3.8 2019-05-13 14:55:44 -06:00
David Hall de5426a305 Added and corrected a number of methods and supporting types for Secur32.dll 2019-05-13 14:46:57 -06:00
David Hall e263b567f1 Added SecPkg structures 2019-05-13 14:44:36 -06:00
David Hall 49b489d4be Cleaned up code on marshalers 2019-05-13 14:43:03 -06:00
David Hall 0d8984a840 Added safe pointer parameter to SspiPromptForCredentials 2019-05-13 14:42:34 -06:00
David Hall d48adda2ed Added support for Schannel.dll 2019-05-09 18:41:38 -06:00
David Hall d69470a78a Added partially documented LogonUserExExW 2019-05-09 17:42:36 -06:00
David Hall de44ab8d50 Added ALG_ID and CERT_TRUST_STATUS 2019-05-09 15:57:55 -06:00
David Hall e8f1611fb8 Added Schannel and SspiCli references 2019-05-09 15:57:00 -06:00
David Hall 8d211da1de Fixed bugs on Insert and array set methods 2019-05-09 15:56:31 -06:00
David Hall 3eccb98a50 Added CreateBindCtx method in ShellUtil and migrated existing code to use it 2019-05-08 18:58:46 -06:00
David Hall c5eb2544ec Added IBindCtx (as IBindCtxV) to support newer options and better structure. 2019-05-08 12:49:33 -06:00
David Hall 136340947c Fixed sizing of LSA_UNICODE_STRING 2019-05-08 09:30:53 -06:00
David Hall f5ad3f0755 Extracted SafeNativeArrayBase from SafeNativeArray that allows for a different memory manager to be used and enhances/fixes the ability to insert a header before the array. 2019-05-08 09:30:06 -06:00
David Hall 9f0708719a Added BIND_FLAGS enum 2019-05-08 09:26:02 -06:00
David Hall 56f517d6e9 Updated project information for 2.3.8 2019-04-30 08:00:06 -06:00
David Hall 769d045df2 More security additions (advapi32, secur32) 2019-04-30 07:59:38 -06:00
David Hall 01ae59e0c8 Final tested work on Authz functions 2019-04-29 11:31:13 -06:00
David Hall 69da011101 Converted dwDesiredAccess param type to ACCESS_MASK on OpenProcess and OpenThread 2019-04-29 11:30:33 -06:00
David Hall 58f0175592 Converted ACCESS_MASK from an enum to a struct so that it can be used universally to signify an access mask. 2019-04-29 11:29:50 -06:00
iFeng Huang bdd9f1abda Fix "DeviceIoControlAsync(HFILE hDev, uint ioControlCode, byte[] inputBuffer, byte[] outputBuffer) outputBuffer no response data" issue. 2019-04-27 02:36:20 +08: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 0cc1d914d0 Updated project files for 2.3.7 release 2019-04-24 08:48:29 -06:00
David Hall 27ab71a4f9 Complete addition of all functions and structures in IpHlpApi.dll with testing 2019-04-24 08:37:19 -06:00
David Hall 0d536c9436 Added new functions and structures from winsock2 2019-04-24 08:36:35 -06:00
David Hall 25502eb898 Work to harden and extend functionality of CallMethodWithTypedBuf 2019-04-24 08:28:58 -06:00
David Hall 348fc7b7f7 Added class to handle linked list of native structures in memory 2019-04-24 08:28:18 -06:00
David Hall 0383068abe Added documentation and protected constructor to allocate just raw memory 2019-04-24 08:27:31 -06:00
David Hall 8770bc4bae Updated documentation, added mem-zeroing on array set 2019-04-24 08:26:50 -06:00
David Hall 2fff530939 Added static FromException method 2019-04-24 08:25:33 -06:00
David Hall 6531317528 Completed functions for IpHlpApi. Moved some structures into different files. 2019-04-18 20:39:42 -06:00
David Hall dbdcdd2107 Added default size getter and shortened version to CallMethodWithTypedBuf 2019-04-18 20:38:45 -06:00
David Hall 26f843a69c Updated project data 2019-04-17 12:51:25 -06:00
David Hall 3a56122887 Updated documentation 2019-04-17 12:51:11 -06:00
David Hall 5597d959c2 Updated documentation 2019-04-17 12:25:05 -06:00
David Hall c92d5228ef Major repairs of WinCon functions and structures. Some breaking changes, but only to fix problems. 2019-04-17 11:43:19 -06:00
David Hall 04b9f4f3ae Put some extra effort into ensuring functions and structures for Kernel32 console worked. Some breaking changes, but they would have been broken anyway. 2019-04-15 14:34:32 -06:00
David Hall 5be3e15570 Update project versions to 2.3.6 2019-04-15 13:45:35 -06:00
David Hall 016766658e Updated project file 2019-04-12 11:38:23 -06:00
David Hall 6691b45642 Updated project file with additions 2019-04-10 13:24:47 -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 f0ce103165 Updated project file information 2019-04-09 15:20:49 -06:00
David Hall d007f1babd Lots of work on ACE handling 2019-04-09 11:46:44 -06:00
David Hall 73792290f6 Broke down and finally used an unsafe struct for this. 2019-04-08 19:44:08 -06:00
David Hall b2906f6c9a Converted methods to PreserveSig model for all interfaces 2019-04-08 12:06:17 -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 72a2ceb50c Updated project versions to 2.3.5 2019-03-12 08:05:49 -06:00
David Hall 3d60a65f8d Added full support for cabinet.dll 2019-03-12 08:02:51 -06:00
David Hall 6cffa1feb6 Fixed recursion bug in WNetEnumResources 2019-03-11 08:38:05 -06:00
David Hall 3877cc58bc Pushing point release due to some debug files getting into the NuGet packages 2019-03-08 20:09:11 -07:00
David Hall 1bdbca3d57 Updated projects for version 2.3.3 2019-03-08 12:38:52 -07:00
David Hall 518903ac95 Added CM_RESOURCE_LIST and supporting structures and enums 2019-03-07 10:25:33 -07:00
David Hall 1cef6c3fe4 Reorganized by subgroup settings 2019-03-07 09:43:13 -07:00
David Hall 600cb65672 Fixes and refinements on PowrProf functions 2019-03-07 09:42:35 -07:00
David Hall 1b42ce1df2 Added CorrespondingType attributes and GetValue extension method for REG_VALUE_TYPE 2019-03-07 09:28:20 -07:00
David Hall 708d2fc39d Removed IErrorProvider constraint 2019-03-07 09:27:35 -07:00
David Hall a7cf16cde9 Major overhaul of FormatMessage import functions and helper functions. Minor breaking changes, but worth it! 2019-03-07 09:26:49 -07:00
David Hall dfd7f9a4a2 Derived all error structures from IErrorProvider 2019-03-02 11:09:00 -07:00
David Hall 8c7636aff5 Added PowrProf.dll and all functions 2019-03-01 12:34:56 -07:00
David Hall 00b8227a10 Updated project versions to 2.3.2 2019-02-27 16:53:42 -07:00
David Hall 515fc01852 Completed work on adding all WinUser.h functions 2019-02-27 16:32:18 -07:00
David Hall 89d95791b2 Added High DPI functions from WinUser.h 2019-02-25 14:36:07 -07:00
David Hall 660b895787 Added Pointer Input Messages and Notifications from WinUser.h 2019-02-25 14:08:14 -07:00
David Hall 4e54effcd7 Added input functions from WinUser.h 2019-02-25 12:06:41 -07:00
David Hall ec8fec7902 Updated project files to 2.3.1 2019-02-24 18:54:29 -07:00
David Hall c45e2ddc4c Added DisplayConfigXX functions with all supporting structures and enumerations along with extended methods to simplify coding 2019-02-24 18:41:17 -07:00
David Hall 8b02aed5c5 Added device broadcast message supporting functions and structures 2019-02-24 18:39:30 -07:00
David Hall 8a588b9fc9 Added DefXXXProc functions 2019-02-24 18:38:45 -07:00
David Hall daf01c0de1 Added CopyXX methods for bitmaps, icons and cursors 2019-02-24 18:37:29 -07:00
David Hall eba27e984c Prepped projects for release 2019-02-22 16:11:12 -07:00
David Hall b1e35497d2 Added state flags for offline file caching 2019-02-22 14:29:15 -07:00
David Hall 3af1a60bec Fixed error with WNetCloseEnum when called from SafeWNetEnumHandle, removed redundant WNetOpenEnum function, added wrapper for WNetOpen/Enum/Close called WNetEnumResources. 2019-02-22 09:51:31 -07:00
David Hall 93d6a35e12 Added undocumented structures and enum for access. 2019-02-21 15:32:08 -07:00
David Hall 93a4982951 Changed type of INVALID_FILE_HANDLE to HFILE instead of IntPtr 2019-02-20 15:29:42 -07:00
David Hall 20ad66606d Added code to handle singleton binding of device handles. Risk is if system reuses handle during process execution. 2019-02-20 15:29:06 -07:00
David Hall 91ad5730b6 Update project versions to 2.3.0 2019-02-20 11:08:59 -07:00
David Hall b5774816ad Attempt to fix #41 2019-02-20 11:02:06 -07:00
David Hall f3d5187ef5 Added some winsock2 functions 2019-02-20 10:50:17 -07:00
David Hall b7dccd02f0 Completed work on NetApi32 2019-02-19 21:55:13 -07:00
David Hall bef4a869ba Added SafeHANDLE to HANDLE implicit operator and adjusted SafeHANDLE == operator to address `default` values (#40). 2019-02-19 14:16:44 -07:00
David Hall 8e492cf04c Added more NetApi32 functions (AT and DFS) 2019-02-19 12:44:36 -07:00
David Hall 8a8b265834 ToString methods added to LsaForest structures 2019-02-18 14:28:34 -07:00
David Hall af83c80249 Lots of NetApi32 additions 2019-02-18 14:27:57 -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 6e8a3adabc Added support for testing platform validity against PInvoke.MinClient attribute. 2019-02-16 17:41:14 -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 14aae2dd59 Updated attributes on IOpenControlPanel 2019-02-15 14:40:09 -07:00
David Hall 5d787522b0 Added WebDAV and NetShare functions 2019-02-12 13:26:31 -07:00
David Hall 05887bfac4 Updated project files for release 2019-02-11 19:38:05 -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 ee64aca822 Merge branch 'master' of https://github.com/dahall/Vanara 2019-02-11 18:32:16 -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 4272101c17 Fixed param on DestroyHeap 2019-02-06 07:31:38 -07:00
David Hall eed0971d15 Restructured DEVMODE to work between 32 and 64 bit instances 2019-02-06 07:31:11 -07:00
David Hall 7e183c2b6c Updated project files to 2.2.1 2019-02-05 14:25:27 -07:00
David Hall 5848e17bed Added multiple new GDI related functions 2019-02-05 14:15:17 -07:00
David Hall 9d30be3077 Added display functions 2019-02-05 14:14:27 -07:00
David Hall 47599ad6f2 Added video, accelerator, caret, coordinate space, paint and RECT functions 2019-02-05 14:13:14 -07:00
David Hall c1af977137 Added touch functions 2019-02-05 14:12:17 -07:00
David Hall 2d8d211065 Added DEVMODE 2019-02-05 14:11:42 -07:00
David Hall dcdb27e2c0 Added DISPLAY_DEVICE 2019-02-05 14:11:28 -07:00
David Hall 38fadc70ee Added MapViewOfFile3 and MapViewOfFile3FromApp 2019-02-04 12:41:34 -07:00
David Hall 6150985d6a Updated project information 2019-02-04 12:26:46 -07:00
David Hall 3e0b62f67e Added DwmGetUnmetTabRequirements 2019-02-04 11:04:11 -07:00
David Hall b51aef42d2 Introduced structure based HANDLE for better compatibility 2019-02-04 10:56:15 -07:00
David Hall 8238b1d84d Re-aded SafeHHEAP GetBlock method 2019-02-04 10:55:02 -07:00
David Hall 96596176dd Fixed numerous logic problems with holding and disposing heap handles. 2019-02-04 10:50:28 -07:00
David Hall 190acdcb48 Removed SafeHandle based SafeResourceHandle and replaced with struct based handle HRSRC as it does not need to be released ever. 2019-02-04 10:27:39 -07: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 f37340b0a9 Updated documentation 2019-02-04 09:41:40 -07:00
David Hall 58eb28407c Added SetSystemTimeAdjustmentPrecise 2019-02-04 09:41:09 -07:00
David Hall 6cf624bd8e Added VirtualAlloc2 and VirtualAlloc2FromApp 2019-02-04 09:29:58 -07:00
David Hall 1efc1993f2 Updated project information 2019-02-01 16:41:11 -07:00
David Hall 6a78449bf5 Added overload and updated docs for SHCreateShellItemArray. 2019-02-01 11:38:31 -07:00
David Hall e8095f3c0e Corrected documentation and made all methods PreserveSig 2019-01-27 22:01:12 -05:00
David Hall b2f8dc8c89 Added QueryInterface methods 2019-01-27 00:45:43 -05:00
David Hall d33b14f84f Added IClassFactory2 2019-01-27 00:45:20 -05:00
David Hall 7c99b77589 Added remaining functions and interfaces from ComBaseApi.h 2019-01-25 22:58:31 -05:00
David Hall 946bcb2bba Added FillMemory method 2019-01-25 10:58:00 -05:00
David Hall ec39c32d83 Added IInitializeCommand 2019-01-22 19:54:52 -08:00
David Hall 320a00aa61 Fixed bug with SHCreateItemWithParent 2019-01-21 15:24:14 -08:00
David Hall d782a19271 Added Optional param attributes 2019-01-21 15:23:53 -08:00
David Hall c76791deea Updated project version to 2.2.0 2019-01-21 11:45:29 -08:00
David Hall 8f1e78e0f3 Updated project versions to 2.2.0 as there have been lots of changes, some of which are breaking. 2019-01-21 08:42:39 -08:00
David Hall af7ec7c430 Removed PIDL references 2019-01-20 20:45:04 -08:00
David Hall cb01573d8c Added CIDA (HIDA) structure 2019-01-20 20:44:35 -08:00
David Hall 3cade3a2a8 Added generic helper functions for those where a COM interface is requested 2019-01-20 20:44:04 -08:00
David Hall 62ef41cd2d Add IObjectWithSelection 2019-01-20 20:43:12 -08:00
David Hall e4da66f990 Added IExecuteCommand 2019-01-20 20:42:55 -08:00
David Hall ce4e0b1eb3 Corrected IDropTarget 2019-01-18 00:22:45 -08:00
David Hall 399464a376 Added IDropTarget 2019-01-18 00:08:14 -08:00
David Hall 5f756360a8
Merge pull request #30 from tajbender/master
Fix case insensitivity of folder 'PInvoke/NtDll'
2019-01-18 00:33:09 -07:00
David Hall 94934b3473 In practice, the timer id's work better as IntPtr 2019-01-17 23:30:30 -08:00
David Hall b13ca4eebe Set optional attributes on parameters 2019-01-17 23:27:59 -08:00
David Hall 508f6b0e77 Moved message functions to correct assembly (User32.Gdi) 2019-01-17 23:27:35 -08:00
tajbender e1a832b13a Fix case insensitivity of folder 'PInvoke/NtDll' 2019-01-18 08:12:54 +01:00