diff options
| author | Barry Golden <[email protected]> | 2019-09-25 07:54:18 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-09-25 07:54:18 -0700 |
| commit | 2e237713e298495b141560a5e7c76d6b1efa0153 (patch) | |
| tree | 552f09c62562d62e3b8f2701f223f6f53792403e /print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md | |
| parent | 16022c593787aef040b8a37ef697316e07f1322e (diff) | |
Update README.md (#424)87280872798727887277872768727587274872738727287271872708726987268872678726687265872648726387262872618726087259872588725787255872548725387252
Diffstat (limited to 'print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md')
| -rw-r--r-- | print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md b/print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md index bf0c4bbf..a98abd5f 100644 --- a/print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md +++ b/print/v4PrintDriverSamples/v4PrintDriver-ConstraintScript/README.md @@ -8,34 +8,25 @@ products: - windows-wdk --- - - -<!--- - name: Print Driver Constraints Sample - platform: Utility - language: js - category: Print - description: Demonstrates how to implement advanced constraint handling and PrintTicket/PrintCapabilities handling using JavaScript. - samplefwlink: http://go.microsoft.com/fwlink/p/?LinkId=617946 ----> - # Print Driver Constraints Sample This sample demonstrates how to implement advanced constraint handling, and also PrintTicket/PrintCapabilities handling using JavaScript. The Constraints.js file in this sample demonstrates the implementation of JavaScript-based constraints to be used with a v4 print driver. The file implements the following two of the four functions used by JavaScript constraint files, as well as several helper functions: -- **ValidatePrintTicket** takes a given [IPrintSchemaTicket](http://msdn.microsoft.com/en-us/library/hh451398(v=vs.85).aspx) object and validates it for the current printer. The function may determine that the Print Ticket was already valid, modify the Print Ticket to make it valid, or determine that the Print Ticket is invalid and could not be made valid. -- **CompletePrintCapabilities** takes a given **IPrintSchemaTicket** object and the [IPrintSchemaCapabilities](http://msdn.microsoft.com/en-us/library/hh451256(v=vs.85).aspx) object that was produced by the configuration module and augments it as needed. This can be used to establish positive constraint situations. +- **ValidatePrintTicket** takes a given [IPrintSchemaTicket](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/printerextension/nn-printerextension-iprintschematicket) object and validates it for the current printer. The function may determine that the Print Ticket was already valid, modify the Print Ticket to make it valid, or determine that the Print Ticket is invalid and could not be made valid. + +- **CompletePrintCapabilities** takes a given **IPrintSchemaTicket** object and the [IPrintSchemaCapabilities](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/printerextension/nn-printerextension-iprintschemacapabilities) object that was produced by the configuration module and augments it as needed. This can be used to establish positive constraint situations. This sample does not demonstrate **ConvertPrintTicketToDevMode** or **ConvertDevModeToPrintTicket**, which utilize a property bag to store data in the private section of the DEVMODE structure. -**Note** This sample is for the v4 print driver model. +> [!NOTE] +> This sample is for the v4 print driver model. -# Related topics +## Related topics -[Building a Driver](http://msdn.microsoft.com/en-us/library/windows/hardware/ff554644) +[Building a Driver with Visual Studio and the WDK](https://docs.microsoft.com/windows-hardware/drivers/develop/building-a-driver) -[IPrintSchemaCapabilities](http://msdn.microsoft.com/en-us/library/hh451256(v=vs.85).aspx) +[IPrintSchemaCapabilities](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/printerextension/nn-printerextension-iprintschemacapabilities) -[IPrintSchemaTicket](http://msdn.microsoft.com/en-us/library/hh451398(v=vs.85).aspx) +[IPrintSchemaTicket](https://docs.microsoft.com/windows-hardware/drivers/ddi/content/printerextension/nn-printerextension-iprintschematicket) |
