loader_other.go 628 B

1234567891011121314151617181920212223
  1. // +build !windows
  2. package winloader
  3. import "fmt"
  4. // LoadFromFile loads a Windows module from file using the native Windows
  5. // loader.
  6. func LoadFromFile(name string) (Module, error) {
  7. return nil, fmt.Errorf("unsupported platform")
  8. }
  9. // LoadFromMemory loads a Windows module from memory.
  10. func LoadFromMemory(data []byte) (Module, error) {
  11. return nil, fmt.Errorf("unsupported platform")
  12. }
  13. // AddToCache adds a module to the loader cache, allowing in-memory libraries
  14. // to link to it. Note that modules in the cache must exist in the same
  15. // address space.
  16. func AddToCache(name string, module Module) error {
  17. return nil
  18. }