Descriptionsyscall: dll function load and calling changes
New DLL and Proc types to manage and call dll functions. These were
used to simplify syscall tests in runtime package. They were also
used to implement LazyDLL and LazyProc.
LazyProc, like Proc, now have Call function, that just a wrapper for
SyscallN. It is not as efficient as Syscall, but easier to use.
NewLazyDLL now supports non-ascii filenames.
LazyDLL and LazyProc now have Load and Find methods. These can be used
during runtime to discover if some dll functions are not present.
All dll functions now return errors that fit os.Error interface. They
also contain Windows error number.
Some of these changes are suggested by jp.
Patch Set 1 #Patch Set 2 : diff -r 21dd3105073c https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 21dd3105073c https://go.googlecode.com/hg/ #
Total comments: 14
Patch Set 4 : diff -r dd81822c18a9 https://go.googlecode.com/hg/ #
MessagesTotal messages: 4
|