You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just want to get other exe-file icon bytes, but I've gotten the error "0x3b02 User stopped resource enumeration." while I used the ExtractIcon. I have not found out any effective answer by google.
Well, I used the api in my local application built by electron.
Any idea about this?
Thank you!
The text was updated successfully, but these errors were encountered:
Working with the syscall package I have found that it is safer to only use the first of the three return values of Call. In your example you check the err in
ret, _, err := procExtractIcon.Call(
but just ignore that and interpret the ret value according the the MSDN docs. This is the result that the function gives you and it usually contains everything you need to know. I have found in the past that the err might be set but really the function did not fail. I think this is some global error code that might be set by some other function as well and is not reset or something along those lines.
Your link to the code does not actually use the err value anymore which supports my point. It seems to not work for others either.
If you want to use my actively supported fork of this repo, here it is:
w32/shell32.go
Line 146 in 9a4ee0f
I just want to get other exe-file icon bytes, but I've gotten the error "0x3b02 User stopped resource enumeration." while I used the ExtractIcon. I have not found out any effective answer by google.
Well, I used the api in my local application built by electron.
Any idea about this?
Thank you!
The text was updated successfully, but these errors were encountered: