====== CloseQueue Function ====== ==== Description ==== Close a queue handle created by an earlier call to the [[createqueue|CreateQueue()]] function. ==== Syntax ==== Error = CloseQueue(Queue) ==== Parameters ==== The CloseQueue function has the following parameters. ^Parameter^Description^ |Queue|Handle for the queue, created by [[createqueue|CreateQueue()]].|| ==== See Also ==== [[createqueue|CreateQueue()]] ==== Example ==== // Close a queue on an engine created by CreateEngine in the SYSPROG account. Error = CreateEngine(Engine, "\\.\REVCAPI_TEST", "SYSPROG",**CREATE_ENGINE_OPEN_ALWAYS$, 1) Error = CreateQueue(Queue, Engine, "", "", "SYSPROG") // keep the queue open as long as necessary Error = CloseQueue(Queue)