#include “BlackIceDEVMODE.h”
BOOL GetWatermarkFirstImageFile (BlackIceDEVMODE* pDevMode, LPTSTR pPath, DWORD& dwSize, BOOL bPortrait);
Description
Gets the path and name of the watermark image. This image will be the watermark on the first printed image, when the ‘Unique watermark on the first page’ option is enabled. The path and filename of the image file is stored in the registry under the HKEY_CURRENT_USER key.
Parameters
BlackIceDEVMODE* pDevMode - pointer to the BlackIceDEVMODE structure.
LPTSTR pPath - Path and name of the watermark image. This pointer must be valid value.
DWORD& dwSize - Size of the pPath parameter. The dwSize value is given in bytes.
BOOL bPortrait - If this parameter is TRUE, you get the path and filename of the watermark for portrait pages, otherwise you get the path and filename of the watermark for landscape pages.
Return value
TRUE on success, otherwise FALSE. If the size of the pPath parameter is small, the function returns FALSE, and the dwSize value will contains the required size in bytes.
Programming Notes
None
Code Example
None