示例#1
0
        public bool SetServerVisible()

        {
            uint uInt32_1;

            DebugLog.Write("SetServerVisible");
            if ((uInt32_1 = SSAPIInterface.SS_GetServerObj(out this.hServerObj)) != uint.MinValue)
            {
                DebugLog.Write(("SS_GetServerObj ERROR: " + uInt32_1.ToString()));
                return(false);
            }
            else if (SSAPIInterface.SS_ServerSetVisible(this.hServerObj) == uint.MinValue)
            {
                return(true);
            }
            else
            {
                DebugLog.Write("SS_ServerSetVisible Error");
                return(false);
            }
        }
示例#2
0
        public bool SetServerNotVisible()

        {
            bool b1 = true;

            DebugLog.Write("SetServerVisible");
            if (SSAPIInterface.SS_ServerSetNotVisible(this.hServerObj) != uint.MinValue)
            {
                DebugLog.Write("SS_ServerSetNotVisible Error");
                b1 = false;
            }
            if (SSAPIInterface.SS_DestroyObj(this.hServerObj) == uint.MinValue)
            {
                return(b1);
            }
            else
            {
                DebugLog.Write("SS_DestroyObj Error");
                return(false);
            }
        }