## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### SplQueryPath

Select an item:

    Syntax
    Parameters
    Returns
    Remarks
    Glossary

Description:

This function returns the path to get printer drivers or port drivers.

When a new printer is being installed that requires a printer driver not yet installed, the print object calls this function to get the path to the print drivers.

    #define INCL_SPL

    #define INCL_SPLBIDI

    #include <os2.h>

    PSZ       pszComputerName;     /*  Name of the computer for which a network print object is being created. */

    PSZ       pszRemoteQueueName;  /*  Name of the remote queue the network print object is referencing. */

    ULONG     ulLevel;             /*  Level of information to return. */

    PVOID     pBuf;                /*  Receives the path to printer drivers for level 0. */

    ULONG     cbBuf;               /*  Length of buffer pointed to by pBuf, in bytes. */

    PULONG    pcbNeeded;           /*  Receives length, in bytes, of buffer needed to return path. */

    ULONG     rc;                  /*  Return codes. */

    rc = SplQueryPath(pszComputerName, pszRemoteQueueName,

           ulLevel, pBuf, cbBuf, pcbNeeded);