Skip to content

Commit

Permalink
Enhance XML docs, null safety, and add CreateLink method
Browse files Browse the repository at this point in the history
- Added XML documentation comments to `IShellLinkW` methods and `CreateLink` method.
- Changed `LinkDisplayMode` visibility from `public` to `internal`.
- Updated `LargeIcon` and `SmallIcon` properties to return nullable `Icon` types.
- Modified `GetIcon` method to return a nullable `Icon` type and use nullable `IntPtr` arrays.
- Added null checks and exception handling in various properties to handle null `linkA` and `linkW`.
- Renamed `UnManagedMethods` to `UnmanagedMethods` and updated `ExtractIconEx` method to use nullable `IntPtr` arrays.
- Added `CreateLink` method in `WinApi.cs` for creating shortcut files with detailed exception handling and validation.
  • Loading branch information
bvdcode committed Nov 15, 2024
1 parent a0fa959 commit 91d5c9d
Show file tree
Hide file tree
Showing 2 changed files with 263 additions and 139 deletions.
Loading

0 comments on commit 91d5c9d

Please sign in to comment.