Exemple #1
0
 public unsafe Status OpenProtocol <T>(Handle handle, ref Guid protocol, out ReadonlyNativeReference <T> iface, Handle agent, Handle controller, uint attr) where T : unmanaged {
     fixed(Guid *_protocol = &protocol)
     fixed(ReadonlyNativeReference <T> *_iface = &iface)
     return((Status)RawCalliHelper.StdCall(_OpenProtocol, handle, _protocol, _iface, agent, controller, attr));
 }
Exemple #2
0
 static long EfiMain(EFI.Handle imageHandle, ReadonlyNativeReference <EFI.SystemTable> systemTable)
 {
     EFI.EFI.Initialise(systemTable);
     ref var st = ref systemTable.Ref;