EnumPrinters(param, NULL, ENUM_LEVEL, buffer+offset, 512,
EnumPrinters(param, NULL, level, buffer+offset, 512,
static char *printer_add_enum(int param, char *buffer,                              int offset, int *nprinters_ptr){    DWORD needed, nprinters;    buffer = sresize(buffer, offset+512, char);    /*     * Exploratory call to EnumPrinters to determine how much space     * we'll need for the output. Discard the return value since it     * will almost certainly be a failure due to lack of space.     */    EnumPrinters(param, NULL, ENUM_LEVEL, buffer+offset, 512,		 &needed, &nprinters);    if (needed < 512)        needed = 512;    buffer = sresize(buffer, offset+needed, char);    if (EnumPrinters(param, NULL, ENUM_LEVEL, buffer+offset,                     needed, &needed, &nprinters) == 0)        return NULL;    *nprinters_ptr += nprinters;    return buffer;}