CreateQueue Function
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.
Parameter | Description | |
---|---|---|
Queue | Handle for the queue. Pass null. CreateQueue will return a queue handle. | |
Engine | Handle obtained from a call to CreateEngine(). | |
QueueName | Use the same name passed as the named pipe name in the call to CreateEngine(). | |
DatabaseName | The database .dbt file to use. | |
UserName | UserName to log into the database. | |
Password | Database password |
See Also
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")