Beispiel #1
0
            internal static bool Open()
            {
                try
                {
                    UOHandle = UODLL.Open();
                    int ver = UODLL.Version();
                    if (ver != 3)
                    {
                        return(false);
                    }
                    UODLL.SetTop(UOHandle, 0);
                    UODLL.PushStrVal(UOHandle, "Set");
                    UODLL.PushStrVal(UOHandle, "CliNr");
                    UODLL.PushInteger(UOHandle, 1);
                    if (UODLL.Execute(UOHandle) != 0)
                    {
                        return(false);
                    }

                    Lock_Item = new object();
                    return(true);
                }
                catch
                {
                    return(false);
                }
            }