hacks_other.go 448 B

12345678910111213141516
  1. // +build !windows
  2. package winloader
  3. import "errors"
  4. // MakePEBEntryForModule is a hack that inserts an entry for the loaded module
  5. // into the PEB loader data to make it appear to Windows functions.
  6. func MakePEBEntryForModule() error {
  7. return errors.New("platform not supported")
  8. }
  9. // GetProcessHInstance gets the HINSTANCE for the current process.
  10. func GetProcessHInstance() (uintptr, error) {
  11. return errors.New("platform not supported")
  12. }