Ejemplo n.º 1
0
        private unsafe void InitializeContents(Guid pipeGuid)
        {
            SafeViewOfFileHandle view = this.GetView(true);

            try
            {
                SharedMemoryContents *handle = (SharedMemoryContents *)view.DangerousGetHandle();
                handle->pipeGuid = pipeGuid;
                Thread.MemoryBarrier();
                handle->isInitialized = true;
            }
            finally
            {
                view.Close();
            }
        }