Table of Contents

Namespace SunamoPInvoke.PInvoke

Classes

FileOperationAPIWrapper

Provides wrapper methods for Windows shell file operations such as sending files to the recycle bin.

GlobalKeyboardHook

Provides a global keyboard hook for capturing keyboard events system-wide. Based on https://gist.github.com/Stasonix

IconExtractor

Provides constants and utilities for extracting file and folder icons via the Windows Shell API. Icon extraction methods are not available in .NET Core (require System.Drawing).

KeysCatcher

Provides key state detection utilities. Key state methods require System.Windows.Forms.Keys which is not available in .NET Core.

KnownFoldersGuid

Contains GUIDs for well-known Windows shell folders.

W32

Provides P/Invoke declarations for Windows API functions from kernel32, user32, shell32, psapi, gdi32 and advapi32.

W32Base

Provides base delegate definitions for Windows hook procedures used in P/Invoke operations.

Structs

SHFILEINFO

Contains information about a file object retrieved by the SHGetFileInfo function.

W32.BY_HANDLE_FILE_INFORMATION

Contains information about a file retrieved by handle.

Enums

FileOperationAPIWrapper.FileOperationFlags

Possible flags for the SHFileOperation method.

FileOperationAPIWrapper.FileOperationType

File operation function type for SHFileOperation.

GlobalKeyboardHook.KeyboardState

Specifies the state of a keyboard key event.

KeysCatcher.KeyStates

Specifies the possible states of a keyboard key.

Delegates

W32Base.HookProc

Delegate for a general hook procedure.

W32Base.LowLevelKeyboardProc

Delegate for a low-level keyboard hook procedure.