public void EndSession(DebugEnd mode) { InitDelegate(ref _endSession, VTable.EndSession); using IDisposable holder = _sys.Enter(); int hr = _endSession(Self, mode); DebugOnly.Assert(hr == 0); }
public IMAGE_FILE_MACHINE GetEffectiveProcessorType() { InitDelegate(ref _getEffectiveProcessorType, VTable.GetEffectiveProcessorType); using IDisposable holder = _sys.Enter(); int hr = _getEffectiveProcessorType(Self, out IMAGE_FILE_MACHINE result); if (hr == 0) { return(result); } return(IMAGE_FILE_MACHINE.UNKNOWN); }