Skip to content

Commit

Permalink
feat: add DROPFILES struct
Browse files Browse the repository at this point in the history
  • Loading branch information
halildurmus committed Oct 28, 2024
1 parent cbbe5f3 commit ee570ed
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/generator/data/win32_structs.json
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@
"Windows.Win32.UI.Shell.Common.SHITEMID": "Defines an item identifier.",
"Windows.Win32.UI.Shell.Common.STRRET": "Contains strings returned from the IShellFolder interface methods.",
"Windows.Win32.UI.Shell.DLLVERSIONINFO": "Receives DLL-specific version information. It is used with the DllGetVersion function.",
"Windows.Win32.UI.Shell.DROPFILES": "Defines the CF_HDROP clipboard format. The data that follows is a double null-terminated list of file names.",
"Windows.Win32.UI.Shell.KNOWNFOLDER_DEFINITION": "Defines the specifics of a known folder.",
"Windows.Win32.UI.Shell.NOTIFYICONDATAW": "Contains information that the system needs to display notifications in the notification area. Used by Shell_NotifyIcon.",
"Windows.Win32.UI.Shell.SHELLEXECUTEINFOW": "Contains information used by ShellExecuteEx.",
Expand Down
4 changes: 4 additions & 0 deletions packages/win32/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to this project will be documented in this file.

## 5.8.0-wip

- Add `DROPFILES` struct

## [5.7.1] - 2024-10-22

- Add `Pointer<VARIANT>` optional parameter to `Dispatcher.invoke` method
Expand Down
17 changes: 17 additions & 0 deletions packages/win32/lib/src/structs.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3432,6 +3432,23 @@ base class DRAWTEXTPARAMS extends Struct {
external int uiLengthDrawn;
}

/// Defines the CF_HDROP clipboard format. The data that follows is a double
/// null-terminated list of file names.
///
/// {@category struct}
base class DROPFILES extends Struct {
@Uint32()
external int pFiles;

external POINT pt;

@Int32()
external int fNC;

@Int32()
external int fWide;
}

/// Contains information about how a device is joined to Microsoft Azure
/// Active Directory.
///
Expand Down
2 changes: 1 addition & 1 deletion packages/win32/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: win32
description: >
Access common Win32 APIs directly from Dart using FFI — no C required!
version: 5.7.1
version: 5.8.0-wip
homepage: https://win32.pub
repository: https://github.com/halildurmus/win32
issue_tracker: https://github.com/halildurmus/win32/issues
Expand Down
1 change: 1 addition & 0 deletions tools/struct_sizes/struct_sizes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ void main()
printf(" 'DOT11_NETWORK_LIST': %zu,\n", sizeof(DOT11_NETWORK_LIST));
printf(" 'DOT11_SSID': %zu,\n", sizeof(DOT11_SSID));
printf(" 'DRAWTEXTPARAMS': %zu,\n", sizeof(DRAWTEXTPARAMS));
printf(" 'DROPFILES': %zu,\n", sizeof(DROPFILES));
printf(" 'DSREG_JOIN_INFO': %zu,\n", sizeof(DSREG_JOIN_INFO));
printf(" 'DSREG_USER_INFO': %zu,\n", sizeof(DSREG_USER_INFO));
printf(" 'DTBGOPTS': %zu,\n", sizeof(DTBGOPTS));
Expand Down

0 comments on commit ee570ed

Please sign in to comment.