I call EnumPrintersA/EnumPrintersW functions using node-ffi to get list of local printers accessible from my PC. You should create the buffer which will be filled with information by EnumPrinters function. But you do not know the required size of the buffer. In this case you need to execute EnumPrintersA/EnumPrintersW twice. During the first call this function calculates the amount of