Commit Graph

1426 Commits (27c00f8281674c3cabc11049c9c34b733385cca1)

Author SHA1 Message Date
dahall eaeb31a11d Added missing ReportIScsiTargetPortals function 2021-01-30 15:25:41 -07:00
dahall 77138c965b Fixed layout problem with MIB_UDP6ROW_OWNER_MODULE (#189) 2021-01-30 10:26:50 -07:00
dahall 9ee04bca80 Completed all functions for SetupAPI 2021-01-30 09:25:37 -07:00
dahall 06a42c155c Reverted HBITMAP.ToBitmap() extension to just call Image.FromHBITMAP to avoid flipping until addressed (#202) 2021-01-29 14:47:34 -07:00
dahall a6d225b6b8 Updated project files with `ImportWindowsDesktopTargets` feature to prevent NETSDK1136 build error (#200) 2021-01-26 07:49:48 -07:00
dahall 2be07af49a Fixes to NtQueryInformationProcess to compensate for bitness issues between processes. #123 2021-01-25 17:04:16 -07:00
dahall adc4a814b2 Added addition PROCESSINFOCLASS values from ProcessHacker and PInvoke.net 2021-01-25 12:12:41 -07:00
dahall 5ba1e9d7b5 Added UNICODE_STRING.ToString(HPROCESS hProc) method 2021-01-25 12:11:56 -07:00
dahall adf48e9d4f Added CreateWindowEx overload taking IntPtr for class name 2021-01-24 18:58:58 -07:00
dahall 3109a2ebbf Fixed disposal bug in BasicMessageWindow 2021-01-24 18:58:16 -07:00
dahall 93efa5648e Added `Macros.MAKEINTATOM` function 2021-01-24 18:57:43 -07:00
dahall aff898c849 Changed Win32Error.GetLastError to use function from Kernel32 instead of Marshal.GetLastError to improve speed. 2021-01-24 18:55:49 -07:00
dahall 4a55c16fee Update project files for release 2021-01-21 10:17:30 -07:00
dahall def1172b25 Added more SetupAPI functions 2021-01-21 09:54:15 -07:00
dahall f9edfeefc1 Finished work with some helper methods on IScsiDsc 2021-01-20 13:56:42 -07:00
dahall 43cf044f87 Updated project files 2021-01-19 19:36:32 -07:00
dahall 51e1dfe133 Added IScsiDsc library 2021-01-19 11:18:23 -07:00
dahall f9e5ae6a68 Added GetVolumePathNamesForVolumeName overload 2021-01-19 11:17:57 -07:00
dahall bee8b44bbc Added details for IOCTL_VOLUME_GET_VOLUME_DISK_EXTENTS 2021-01-15 13:37:38 -07:00
dahall 582811517b Added VOLUME_DISK_EXTENTS 2021-01-15 13:37:15 -07:00
dahall 2aa0834de5 More work on SetupAPI 2021-01-14 20:24:17 -07:00
dahall 9609ce7eee Extended and improved object GetValue(this REG_VALUE_TYPE value) method 2021-01-14 20:23:30 -07:00
dahall 583a0a9f93 Updated project files 2021-01-14 12:02:00 -07:00
dahall 0e22e0f9b4 Added more functions and unit test for WsmSvc 2021-01-11 18:46:28 -07:00
dahall 4a63607d26 Updated project files 2021-01-11 15:30:51 -07:00
dahall 186870006a Added Vanara.PInvoke.WsmSvc assembly (#194) with a portion of the functions. 2021-01-11 15:30:19 -07:00
dahall d92b34e446 Added const property key and Guid values for use by SetupAPI 2021-01-11 11:24:19 -07:00
dahall 9345674ebc Moved PDCAP enum from PowrProf to Shared and added a few other enums and structure to Shared.Wdm.cs from that header file. 2021-01-11 11:20:54 -07:00
dahall 1ae5a59faa Added Vanara.PInvoke.SHCore assembly with all functions (#193) 2021-01-11 11:17:40 -07:00
dahall 0d732be421 Added StructHelper.InitWithSize to simplify the many structures that have to be initialized with their size. 2021-01-11 11:16:52 -07:00
dahall e23d7d2220 Moved DEVICE_SCALE_FACTOR from Shell32 to Shared 2021-01-11 11:16:06 -07:00
dahall 608e0f7d53 Updated project information 2021-01-05 21:55:12 -07:00
dahall a1bed07eac Completed SetupAPI device functions 2021-01-05 21:54:42 -07:00
dahall 5c040e7fd4 Renamed SafeMSIHANDLE to PMSIHANDLE and finished all methods for msi.dll 2021-01-03 14:31:34 -07:00
dahall 8c203d399d Msi and SetupAPI check-in, buildable 2021-01-02 18:42:02 -07:00
dahall a8730903e3 More SendMessage work 2021-01-01 15:05:32 -07:00
dahall eefe24a771 Moved HOTKEYF from ComCtrl32 to User32 to align with WM_GETHOTKEY location 2021-01-01 15:03:01 -07:00
dahall 9b5d6942e7 Finally added XML docs to all items in ComCtl32. 2021-01-01 15:02:15 -07:00
dahall 6dc8b6a749 Updated SendMessage dependencies in ListView code 2020-12-31 20:46:27 -07:00
dahall 4e44329587 Added owner-draw structures and enum to User32. 2020-12-31 20:14:04 -07:00
dahall 1ef28a890a POTENTIALLY BREAKING CHANGE: Revamped SendMessage overloads to reduce accidential use of wrong overload. Most uses still work except passing a class in as lParam. 2020-12-31 20:13:35 -07:00
dahall feba58dafb Added new SendMessage overload for WM_GETTEXT use case (#191). 2020-12-31 10:50:54 -07:00
dahall 06027d381a Updated project files 2020-12-30 21:01:44 -07:00
dahall 16ce539b33 Added Msi (partial), NewDev (complete) and SetupAPI (partial) assemblies 2020-12-30 20:48:39 -07:00
dahall 9212f849c9 Moved OLE types CY, DECIMAL and DATE up to Shared assembly. 2020-12-29 14:59:20 -07:00
dahall de62a4d6bd Added IArrayStruct<byte> inheritance for DRT_DATA 2020-12-28 15:18:35 -07:00
dahall 8eb8b174a1 Added explicit conversion from SOCKADDR_STORAGE to SOCKADDR_IN and SOCKADDR_IN6 2020-12-28 15:17:47 -07:00
dahall 7704160b1e Fixed Int32/UInt32 mismatch on OFN 2020-12-28 13:28:08 -07:00
dahall f4a3b97063 Changed allocated string fields in ComDlg32 to StrPtrAuto rather than String. 2020-12-27 20:40:08 -07:00
dahall 3ad427a190 Updated project files 2020-12-27 18:29:25 -07:00
dahall f489e1ca89 Fixed methods in Shell32 (SHGetFolderLocation, SHGetFolderPath, SHGetFolderPathAndSubDir) that should use CSIDL enum but didn't. Fixed dependencies. 2020-12-27 17:32:52 -07:00
dahall f8e8e6f545 Changed IDropTarget methods to use MouseButtonState param value instead of uint. Fixed dependencies. 2020-12-27 17:31:40 -07:00
dahall f0fd3f0334 Moved MouseButtonState from User32 to Shared assembly and up to PInvoke namespace. Fixed dependencies. 2020-12-27 17:30:06 -07:00
dahall 2066523bd0 BREAKING CHANGE: Changed AppendMenu param from UIntPtr to IntPtr for easier conversion from HMENU and int command ids. Change MENUINFO.dwMenuData to IntPtr for easier conversions. 2020-12-27 16:51:46 -07:00
dahall c1c20171e7 Added IDC_ cursor resource id constants 2020-12-27 16:50:05 -07:00
dahall 777e163e35 Updated project information 2020-12-27 09:28:14 -07:00
dahall f526adbdf6 Doc fixes 2020-12-26 20:34:36 -07:00
dahall 4307eaa01a Added CW_USEDEFAULT constant and fixed return value of CreateWindow function 2020-12-26 16:01:51 -07:00
dahall a9ed619504 Added constants for static controls (msgs, notifications and styles) 2020-12-26 16:00:55 -07:00
dahall 662c8a18c1 Added IDI_* values for static icons and overloaded LoadIcon function to accept a ResourceId param. 2020-12-26 16:00:25 -07:00
dahall e576bd40e7 Updated project information 2020-12-26 11:07:30 -07:00
dahall 966c91c1d3 Completed work on OleDlg 2020-12-26 10:22:22 -07:00
dahall f57fa2af7f Fixed incorrect import attribute 2020-12-26 10:19:51 -07:00
dahall ee3fb03825 Fixed XML comments 2020-12-26 10:19:34 -07:00
dahall 9067493f09 Completed work on ComDlg32 2020-12-25 20:41:41 -07:00
dahall 96ab21f382 Added param to SystemEventHandler constructor to force creation of the message pump in a thread and a PreprocessMessage method that pre-processes messages in the pump. 2020-12-25 20:41:20 -07:00
dahall 4c85c898ce Added constructor for MSG struct 2020-12-25 20:40:00 -07:00
dahall cabf86396c Removed Security.PermissionSetAttribute from all classes, properties and methods. It is now marked Obsolete. 2020-12-24 13:07:32 -07:00
dahall d119c5adbd Updated project information 2020-12-24 11:00:18 -07:00
dahall b0415fd93a Fixed XML comment warnings 2020-12-24 10:58:51 -07:00
dahall 6c92aaab73 Added iaccess.h interfaces to Ole32 2020-12-24 09:18:27 -07:00
dahall 66eb09cade Added ComDlg32 and OleDlg assemblies 2020-12-24 09:17:50 -07:00
dahall 79ceb6112e More work on WTSApi32 2020-12-23 12:14:55 -07:00
dahall 8acca80194 Updated project information 2020-12-22 19:13:59 -07:00
dahall dcefb85f61 Added WTSApi32 library 2020-12-22 16:26:55 -07:00
dahall 8e1057e676 Exposed public properties in SystemEventHandler 2020-12-22 11:45:04 -07:00
dahall aa02808735 Finished work on PowerManager event additions for all power events. (#190) 2020-12-22 10:00:34 -07:00
dahall 1196a4ed48 Added abstract `SystemEventHandler` which provides a smart message window that will automatically spin up a thread, if needed, for the message pump. 2020-12-22 09:59:32 -07:00
dahall 6d0a8b22ea Made serious changes to IOleCommandTarget. It was very broken (#188). Added other missing stuff from docobj.h. 2020-12-20 20:40:01 -07:00
dahall e8d89a085a Moved IOleCommand declaration to Ole Ole32 from Shell32 2020-12-20 13:20:16 -07:00
dahall 5c0f92d07c More work on BasicMessageWindow 2020-12-20 09:16:10 -07:00
dahall c70614bd19 Added BROADCAST_QUERY_DENY return value. 2020-12-20 08:36:22 -07:00
dahall 6aa6d3fd70 More work and tests for BasicMessageWindow 2020-12-20 08:29:09 -07:00
dahall ddfad23ac1 Removed incorrect FlagsAttribute from WindowMessage enum and removed duplicate, unused WM_HSHELL values 2020-12-20 08:28:33 -07:00
dahall 6f0255aa56 Changed ThrowLastErrorIfInvalid to a generic method to return the same type as the delegate 2020-12-20 08:27:17 -07:00
dahall a10fc8fff0 Added CorrespondingTypeAttribute to power GUID values when they support a secondary value 2020-12-20 08:26:29 -07:00
dahall 9f65b87ab7 Added BasicMessageWindow class as a simple alternative to NativeWindow and MessageWindow 2020-12-18 17:49:56 -07:00
dahall 952c6cebe1 Added HWND.HWND_MESSAGE value 2020-12-18 17:49:12 -07:00
dahall 96cc9d8ba9 Added param attributes for CreateWindow(Ex) and CREATESTRUCT structure 2020-12-18 17:48:39 -07:00
dahall 9314a46714 Added LsaQueryCAPs overload taking a pointer for the first param 2020-12-18 17:47:54 -07:00
dahall 6ef8202772 Fixed alignment issue with `MIB_UDPROW_OWNER_MODULE` (#189) 2020-12-18 17:47:17 -07:00
dahall d2dbaad8e6 Fixed warning in INetFwRule.GetInterfaces extension method. 2020-12-17 14:05:46 -07:00
dahall d0a15b7d7c Merge branch 'master' of https://github.com/dahall/Vanara 2020-12-16 16:52:24 -07:00
dahall d1553b057b Fixed packing directive on `MIB_UDP6ROW_OWNER_MODULE` and `MIB_UDPROW_OWNER_MODULE` per issue #189 2020-12-16 16:28:30 -07:00
dahall e214393430 Updated project documentation files 2020-12-16 11:41:02 -07:00
dahall b301a72b50 More work on Rpc assembly 2020-12-16 11:40:33 -07:00
Thorsten Jung b7c54b7c59
Fix misspelled path of file Winternl.cs (#187) 2020-12-15 08:00:19 -07:00
dahall 665de0c258 Added Vanara.PInvoke.Rpc assembly to support Rpc related functions 2020-12-14 16:14:02 -07:00
dahall 9580be2bd0 Added over 100 new COM interfaces to Ole32 2020-12-14 16:13:21 -07:00
dahall 989c9dcf99 BREAKING CHANGE: Moved IObjectWithSite from Shell32 to Ole32 2020-12-14 16:11:36 -07:00
dahall 5f34bc2355 Added ICOMEnum interface to all appropriate COM interfaces. 2020-12-14 16:10:31 -07:00
dahall 1b264636c7 Fixed bug in LookupAccountSid2 where assigned return values incorrectly. 2020-12-14 16:05:26 -07:00
dahall cd75cd654d Added Vanara.Collections.ICOMEnum<T> interface to indicate COM interfaces that support the Enum/Reset pattern. Useful for simplifying getting IEnumerable runs from them. 2020-12-14 16:04:42 -07:00
dahall a2ba62d9fc BREAKING CHANGE: Moved RPC enums from Ole32 to Rpc assembly and static class. 2020-12-14 16:02:45 -07:00
dahall 308b49b8e2 Enhanced HBITMAP.ToBitmap method 2020-12-08 10:42:00 -07:00
dahall aa6085a4a6 Based on Windows error in LookupAccountSid, I've added LookupAccountSid2 based on LsaLookupSid2. 2020-12-08 10:34:12 -07:00
dahall 5789fff072 Fixed declaration of IEnumAssocHandlers.Next 2020-12-07 19:57:52 -07:00
dahall f66e5083cd Added GDI extension methods for HBITMAP - IsBottomUpDIB, IsDIB and simplified ToBitmap 2020-12-07 18:54:45 -07:00
dahall 7ec4f19367 Added SafeHBITMAP.ToBitmap method 2020-12-07 18:53:02 -07:00
dahall 53187c0c0f Fixed bug in GetObject overloads 2020-12-07 18:51:34 -07:00
dahall fd1d4de1c7 Added BITMAPINFO.FromHBITMAP method and default static values for BITMAPINFO and DIBSECTION 2020-12-07 18:50:45 -07:00
dahall 87273d6edb Optimized code for HICON.ToHBITMAP extension method 2020-12-07 18:49:03 -07:00
dahall 4477d18332 Added check for empty icon file in LoadImageFromExtractImage 2020-12-07 18:48:15 -07:00
dahall 4a5b14ded3 Added `LookupAccountSidLocal` per #184 comment. Removed BestFitMapping from methods as it was used incorrectly. Added some parameter attributes. 2020-12-07 18:47:14 -07:00
dahall 81ff24990c Fixes to ShellUtil based on testing 2020-12-03 22:22:38 -07:00
dahall 3aa3f9223d **BREAKING CHANGES:** FIxed structures that could not load due to marshal attribute bugs 2020-12-03 20:34:05 -07:00
dahall 1f0183dcc9 To `Shell32.ShellUtil`, added SHIL to pixel conversions and wrapper methods to handle getting images and icons from shell items and folders. 2020-12-03 19:27:39 -07:00
dahall 5f70c3f434 Added BindToHandler overloads accepting BHID enum values 2020-12-03 19:26:07 -07:00
dahall ab63ec5d26 Added CorrespondingTypeAttributes to all BHID enum values 2020-12-03 19:25:25 -07:00
dahall 47cbd0be0b Added conversion methods from HICON to HBITMAP and BitmapSource. 2020-12-03 19:24:45 -07:00
dahall c904517bf7 Added conversion methods from HBITMAP to Bitmap and BitmapSource 2020-12-03 19:23:44 -07:00
David Hall bffb95b78d Merge branch 'master' of https://github.com/dahall/Vanara 2020-11-28 19:10:30 -07:00
David Hall 9f0a31fdf8 Changed all IContextMenu variants to have PreserveSig model for implementation 2020-11-28 18:29:59 -07:00
Sergey Veselkov 2dbe412881
Added missing ASSOCSTR values (#180) 2020-11-28 07:44:30 -07:00
David Hall 545321357b Updated param attributes for GetCommandString 2020-11-27 10:33:17 -07:00
David Hall b51948f29b Added ResourceId.IsIntResource property 2020-11-27 10:32:29 -07:00
David Hall 169d579c2e Added MADCAP functions to Vanara.PInvoke.Dhcp 2020-11-23 10:50:09 -07:00
dahall 4d71e6ce9b Updated project information markdown files with new format 2020-11-20 18:52:43 -07:00
dahall 4c18661740 Updated project files for 3.3.0 release 2020-11-20 12:38:46 -07:00
dahall 290c053d28 Added DHCP client APIs 2020-11-19 15:00:30 -07:00
dahall 439d77f58d Added HEVENT handle 2020-11-19 14:48:23 -07:00
dahall c7a322c069 Updated project references to Microsoft.Drawing.Common for .NET 5 2020-11-14 10:12:24 -07:00
dahall 04d33e7e1a Added support for .NET 5.0 (windows) 2020-11-13 16:55:23 -07:00
dahall f835313217 Added SHChangeNotify overloads for strings and PIDLs 2020-11-13 16:45:04 -07:00
dahall a07d008347 Updated project files for 3.2.20 2020-11-13 11:33:33 -07:00
dahall ca1ed583bc Added VariantToStrRet function 2020-11-13 11:15:38 -07:00
dahall 3bf535f9ef Added XML comments 2020-11-13 10:38:22 -07:00
dahall b2b32fa929 Added missing VarXX functions from OleAuto32 2020-11-12 22:36:59 -07:00
dahall 726a1a146d Fixed init bugs in CY and DECIMAL 2020-11-12 22:36:08 -07:00
dahall 5806d373d3 Finally a working solution for #176. 2020-11-11 19:58:58 -07:00
dahall 17f615d839 Added OLE types CY, DATE and DECIMAL 2020-11-11 19:58:19 -07:00
dahall 3e4e60433e Changed SafeNativeLinkedList back to supporting struct (not unmanaged) type param and removed unsafe pointer getter. 2020-11-11 07:56:03 -07:00
dahall 3c20988f29 Changed params to GetLogicalProcessorInformationEx overload to return RefEnumerator 2020-11-10 21:38:59 -07:00
dahall 317947d16b Added SafeNativeLinkedList.GetUnsafeItems 2020-11-10 21:34:45 -07:00
dahall 847a47b128 Added UDATE struct 2020-11-10 09:43:47 -07:00
dahall 50363a0286 Added InitVariantFromStrRet 2020-11-10 09:43:25 -07:00
dahall 1c0e428592 Changed GetLogicalProcessorInformationEx helper method to return a SafeNativeLinkedList rather than an array so that the memory of linked, nested child arrays is not disposed before use. (#176) 2020-11-10 09:42:48 -07:00
dahall d805e46f28 Derived SafeNativeLinkedList from SafeNativeListBase and added ability to change way linked list is retrieved. 2020-11-10 09:40:46 -07:00
dahall 274953b061 Added SafeNativeListBase which is a SafeMemoryHandle that acts as a read-only list. 2020-11-10 09:39:55 -07:00
dahall 4fdaf14a55 Updated project files for release 2020-11-08 16:02:41 -07:00