Esempio n. 1
0
        /// <include file='doc\ProjectConfig.uex' path='docs/doc[@for="ProjectConfig.ISpecifyPropertyPages.GetPages"]/*' />
        /// <internalonly/>
        void ISpecifyPropertyPages.GetPages(CAUUID[] ppages)
        {
            ppages[0] = new CAUUID();
            Guid[] guids = project.GetConfigPropertyPageGuids(this.configName);
            ppages[0].cElems = (uint)guids.Length;
            int size = Marshal.SizeOf(typeof(Guid));

            ppages[0].pElems = Marshal.AllocCoTaskMem(guids.Length * size);
            IntPtr ptr = ppages[0].pElems;

            for (int i = 0; i < guids.Length; i++)
            {
                Marshal.StructureToPtr(guids[i], ptr, false);
                ptr = new IntPtr(ptr.ToInt64() + size);
            }
        }