Esempio n. 1
0
        private void GetLastError()
        {
            switch (EverythingNativeApi.Everything_GetLastError())
            {
            case StateCode.CreateThreadError:
                throw new CreateThreadException();

            case StateCode.CreateWindowError:
                throw new CreateWindowException();

            case StateCode.InvalidCallError:
                throw new InvalidCallException();

            case StateCode.InvalidIndexError:
                throw new InvalidIndexException();

            case StateCode.IPCError:
                throw new IPCErrorException();

            case StateCode.MemoryError:
                throw new MemoryErrorException();

            case StateCode.RegisterClassExError:
                throw new RegisterClassExException();
            }
        }