## Printer Device Driver

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

### QueryBlockFromKeyword

With a given keyword string, this function finds the matching block for the given keyword. The keyword must be the same keyword that is found in the PPD:

    "*OpenUI *keyword"

except the keyword should not include the asterisk.

This function not only returns the pointer to the matching block, but it also returns (if requested) the zero-based offset of the returned block in respect to the location of that block in the list. For example, if the block returned is the first block in the list, 0 is returned; if the block returned is the second block in the list, 1 is returned.