sylin
sylin

Reputation: 1

How to calculate CRC that's used in printer inf file?

As mentioned in https://learn.microsoft.com/en-us/windows-hardware/drivers/install/identifiers-generated-by-usbprint-sys, Windows calculte a CRC value according to printer's manufacturer name and the model of the device to match the printer driver. But how to calculate it? I try many ways but still can't get the same result as the example that's given by Microsoft.

Upvotes: 0

Views: 87

Answers (1)

Mark Adler
Mark Adler

Reputation: 112627

This document provides code to compute the CRC. Note that the example given on your linked page is fake -- the CRC is not 3115. Do you have any examples of actual IDs that you're trying to match?

Upvotes: 0

Related Questions