コード例 #1
0
ファイル: lwhost.cs プロジェクト: wolewd/Windows-Server-2003
        }// AddLog

        //-------------------------------------------------------
        // IPropertySheetProvider functions that we're going to implement
        //-------------------------------------------------------
        public void CreatePropertySheet(String title, int type, int cookie, Microsoft.CLRAdmin.IDataObject pIDataObject, uint dwOptions)
        {
            Log("CreatePropertySheet called");
            m_psh         = new PROPSHEETHEADER();
            m_psh.dwSize  = 52;
            m_psh.dwFlags = PSH.DEFAULT | PSH.NOCONTEXTHELP;
            // Set the flags

            if ((dwOptions & MMC_PSO.NOAPPLYNOW) > 0)
            {
                m_psh.dwFlags |= PSH.NOAPPLYNOW;
            }
            if ((dwOptions & MMC_PSO.HASHELP) > 0)
            {
                m_psh.dwFlags |= PSH.HASHELP;
            }
            // They want to do a wizard
            if (type == 0)
            {
                if ((dwOptions & MMC_PSO.NEWWIZARDTYPE) > 0)
                {
                    m_psh.dwFlags |= PSH.WIZARD97;
                }
                else
                {
                    m_psh.dwFlags |= PSH.WIZARD;
                }
            }
            if ((dwOptions & MMC_PSO.NO_PROPTITLE) == 0)
            {
                m_psh.dwFlags |= PSH.PROPTITLE;
            }

            m_psh.hwndParent = this.Handle;
            m_psh.hInstance  = Marshal.GetHINSTANCE(this.GetType().Module);
            m_psh.pszCaption = title;
            m_psh.nStartPage = 0;
            m_doForPropSheet = pIDataObject;
            m_alPropPages    = new ArrayList();
        }// CreatePropertySheet
コード例 #2
0
ファイル: lwhost.cs プロジェクト: wolewd/Windows-Server-2003
 public static extern int PropertySheet(ref PROPSHEETHEADER psp);