Пример #1
0
        public static void Init()
        {
            //
            // Initialize DUser
            //

            INITGADGET ig = new INITGADGET();

            ig.cbSize      = 12;
            ig.nThreadMode = 1;
            ig.nMsgMode    = 2;
            ig.hctxShare   = 0;
            if (!InitGadgets(ig))
            {
                throw new DUserException(GetLastError(), "Unable to initialized DUser");
            }

            if (!InitBridge())
            {
                throw new DUserException(GetLastError(), "Unable to initialized DUser Bridge");
            }


            //
            // Initialize all of the DUser classes
            //

            BaseGadget.InitBaseGadget();
            MsgGadget.InitMsgGadget();
            Extension.InitExtension();
            DropTarget.InitDropTarget();
            Visual.InitVisual();
            Root.InitRoot();
        }
Пример #2
0
 public static extern bool InitGadgets(INITGADGET ig);