Description

Close a queue handle created by an earlier call to the CreateQueue() function.

Syntax

Error = CloseQueue (Queue)

Parameters

The CloseQueue function has the following parameters.

ParameterDescription
QueueHandle for the queue, created by CreateQueue().

See also

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)
  • No labels