Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shobjidl_core.h #231

Closed
youk opened this issue May 22, 2021 · 9 comments
Closed

shobjidl_core.h #231

youk opened this issue May 22, 2021 · 9 comments
Labels
com Issues relating to COM support enhancement New feature or request

Comments

@youk
Copy link

youk commented May 22, 2021

Hello there,

Would it be possible to provide wrappers to interfaces from shobjidl_core.h? I am particularly interested in IShellLinkA/IShellLinkW.

Thanks.

@timsneath timsneath added com Issues relating to COM support enhancement New feature or request labels May 26, 2021
@timsneath
Copy link
Contributor

Of course! I've added IShellLink and a few related ones to the main branch. At the moment, I'm still adding these interfaces manually as I improve and verify the generation code, so please let me know if you need other ones and I'll add them as quickly as I can.

@timsneath
Copy link
Contributor

v2.1.2 is published, including these changes: https://pub.dev/packages/win32

@youk
Copy link
Author

youk commented May 31, 2021

Thanks!

Can we also have factory method just as in https://github.com/timsneath/win32/blob/main/lib/src/com/IShellItem.dart#L92?

@timsneath
Copy link
Contributor

Oh -- good catch. The Unicode name (IShellLinkW) messed up my code generator. I've fixed this in b91ad90, but I'd like to write a small test to make sure that this works correctly. I'll do that and then publish.

@timsneath
Copy link
Contributor

v2.1.3 includes a working version.

I've created a small example of its use: https://github.com/timsneath/win32/blob/d8f04121d5ed5c42b9e4c89098adf626f471b267/example/shortcut.dart

@youk
Copy link
Author

youk commented Jun 1, 2021

Thanks for quick response. I was able to create and persist a link.

BTW, https://github.com/timsneath/win32/blob/d8f04121d5ed5c42b9e4c89098adf626f471b267/example/shortcut.dart#L35 gives me STATUS_HEAP_CORRUPTION. I didn't look much into it – is the memory already freed at that point?

@timsneath
Copy link
Contributor

timsneath commented Jun 2, 2021 via email

@timsneath
Copy link
Contributor

I think I've caught it -- can you try again?

@timsneath timsneath reopened this Jun 3, 2021
@youk
Copy link
Author

youk commented Jun 4, 2021

It's ok now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
com Issues relating to COM support enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants