示例#1
0
		public IOReceivePort (OSMessageID msgType) : base (IntPtr.Zero)
		{
			IntPtr receivePort;
			var result = IOCreateReceivePort ((uint)msgType, out receivePort);
			IOObject.ThrowIfError (result);
			Handle = receivePort;
		}
示例#2
0
        public IOReceivePort(OSMessageID msgType) : base(IntPtr.Zero)
        {
            IntPtr receivePort;
            var    result = IOCreateReceivePort((uint)msgType, out receivePort);

            IOObject.ThrowIfError(result);
            Handle = receivePort;
        }