Description

Creates a reference to a queue on an open engine created by the CreateEngine function.

Syntax

Error = CreateQueue(Queue, Engine, QueueName, DatabaseName, UserName, Password)

Parameters

The CreateQueue function has the following parameters.

ParameterDescription
QueueHandle for the queue. Pass null. CreateQueue will return a queue handle.
EngineHandle obtained from a call to CreateEngine().
QueueNameUse the same name passed as the named pipe name in the call to CreateEngine().
DatabaseNameThe database .dbt file to use.
UserNameUserName to log into the database.
PasswordDatabase password

See also

CloseQueue()CreateEngine()

Example

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