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
x/sys/windows: a way to load dll functions by ordinal (not only by name) #16507
Comments
The syscall package is frozen (see its package docs) but maybe something can be added to the https://godoc.org/golang.org/x/sys/windows package (it's a bug that those docs don't show anything: #16509). |
I don't see usefulness of that. You have mentioned "SHCreateMemStream", but I have never used that function. What is the problem that you are trying to solve? And you can do it now. You can copy syscall.GetProcAddress and change the function to pass integer to syscall.Syscall instead of string. I just don't see how this can be used to justify us adding this functionality even in golang.org/x/sys/windows. Alex |
SHCreateMemStream is exported by ordinal in WindowsXP. I needed it to Finally, I solved the problem by using GlobalAlloc/Free and Le ven. 5 août 2016 à 07:54, Alex Brainman notifications@github.com a
|
Do you have some references? Just for my curiosity. Thank you.
Cool. I take it you don't need ability to find DLL procedure by cardinal number then. Alex |
Reference: MSDN In fact, I don't need it anymore but using SHCreateMemStream would have Thanks. Le Lun 8 Aoû 2016 2:43, Alex Brainman notifications@github.com a écrit :
|
How do I use this reference? I was hoping you have some official links on the Internet. I tried implementing this, but I cannot even write a test for it - what should my test do? Alex |
Example: https://msdn.microsoft.com/en-us/library/windows/desktop/bb773795.aspx tells me to import |
@hillu thank you for the reference. I will try to implement this when I have spare time. Unless someone beats me to it. Alex |
@hillu I have found your CL 70690. I will review it when I have time. Thank you. Alex |
Change https://golang.org/cl/70690 mentions this issue: |
It would be usefull to be able to load DLL functions by ordinal in syscall package.
Example: to use the SHCreateMemStream function on Windows XP
Thanks :)
The text was updated successfully, but these errors were encountered: