SetQRErrorCorrectionLevel

 

 

#include “BlackIceDEVMODE.h”

 

BOOL SetQRErrorCorrectionLevel (BlackIceDEVMODE* pDevMode, DWORD dwECLevel);

Description

Sets the strength of the error correction used in QR codes. The QR code size increases with the error correction level. The following table lists the approximate error correction capability at each of the four levels:

Level L (Low)                      7% of codewords can be restored.

Level M (Medium)               15% of codewords can be restored.

Level Q (Quartile)[33]        25% of codewords can be restored.

Level H (High)                     30% of codewords can be restored.

Parameters

BlackIceDEVMODE* pDevMode            - pointer to the BlackIceDEVMODE structure

DWORD dwECLevel                                  - The error correction level. Can be one of the values of the QRECLevel enumeration:

 

enum QRECLevel

{

            QR_ECC_LEVEL_L = 0,    // 0

            QR_ECC_LEVEL_M,         // 1

            QR_ECC_LEVEL_Q,         // 2

            QR_ECC_LEVEL_H          // 3

};

Return value

TRUE on success, FALSE otherwise.