The PrtFilterAlloc function is called to obtain a data buffer from the user filter DLL in which to pass it the print data.
void * WINAPI PrtFilterAlloc(
DWORD BufLen
);
The PrtFilterAlloc function allocates a memory block of BufLen size and returns a pointer to the buffer. This function should return a NULL pointer on failure.