Hi
i wish to use openprinter method and print raw data . i have given the codes which i used below.but some error comes;
error:
undefined reference to `OpenPrinterW@12'

I included

#include "windows.h"
#include "winspool.h".

LIB+=-lwinspool also added in .pro file.but error comes

coding:
LPTSTR pPrinterName;
HANDLE hPrinter;
PRINTER_DEFAULTSW DefaultW, *pDefaultW = NULL;

OpenPrinterW(pPrinterName, &hPrinter, NULL);

Please help.Thanks in advance