Ejemplo n.º 1
0
        private unsafe CTL_INFO?GetCtlInfo()
        {
            try
            {
                var ctlContext = *((CTL_CONTEXT *)safeHandle.DangerousGetHandle());
                return((CTL_INFO)Marshal.PtrToStructure(ctlContext.pCtlInfo, typeof(CTL_INFO)));
            }
            catch (Exception ex)
            {
                var debugEx = ex; // for debugging purpose
            }

            return(null);
        }