ServiceInfo.cs 444 B

1234567891011121314151617181920
  1. using Ryujinx.Horizon.Sdk.Sm;
  2. namespace Ryujinx.Horizon.Sm.Impl
  3. {
  4. struct ServiceInfo
  5. {
  6. public ServiceName Name;
  7. public ulong OwnerProcessId;
  8. public int PortHandle;
  9. public void Free()
  10. {
  11. HorizonStatic.Syscall.CloseHandle(PortHandle);
  12. Name = ServiceName.Invalid;
  13. OwnerProcessId = 0L;
  14. PortHandle = 0;
  15. }
  16. }
  17. }