The GetOutputData method gets the specified output data coming back from the printer.
HRESULT GetOutputData( const DWORD dwIndex, LPWSTR *ppszSchema, DWORD *pdwType, BYTE **ppData, ULONG *uSize );
A zero-based index of the output data that is requested. For more information, see Remarks.
A pointer to a NULL-terminated string that receives the schema string. The caller must call the CoTaskMemFree function to free this pointer.
A pointer to a variable that receives the type of the output data. This parameter can be one of the following values.
A pointer to the variable that receives a pointer to the byte array containing the output data. The buffer is allocated by the COM interface to store the output data. The caller is responsible for calling CoTaskMemFree to free the buffer.
A pointer to a variable that receives the size of the byte array specified by **ppData.
The method returns one of the following values. For more information about COM error codes, see Error Handling.
||The operation was successfully carried out.|
||The interface handle was invalid.|
||At least one of the pointer variable parameters did not reference a valid memory location.|
||The HRESULT contains an error code corresponding to the last error.|
A single bidi request can have multiple results. The application calls GetEnumCount to get the number of results from the bidi request.
If an application calls GetOutputData with the same index twice, the interface allocates two different buffers and thus the application must free both buffers.
|Minimum supported client||Windows XP|
|Minimum supported server||Windows Server 2003|