GetRemovedTextFromDocumentName

 

#include “BlackIceDEVMODE.h”

 

DWORD        GetRemovedTextFromDocumentName (BlackIceDEVMODE* pDevMode, LPTSTR pStr, DWORD* pdwSizeInBytes);

 

Description

 

Gets the current value of the text that is removed automatically from the document name when printing. The Printer Driver will remove the given text from the filename of the output document when printing. If the filename does not contain the given text, the filename of the output document remains the original document name." The “Use the document name” file name generation method must be used. The text is case sensitive.

 

Parameters

BlackIceDEVMODE* pDevMode

Pointer to the BlackIceDEVMODE structure.

 

LPTSTR pStr

Text to be removed from the document name. The maximum length is 259 characters.

 

DWORD* pdwSizeInBytes

Pointer to a variable that contains the size of the buffer pointed to by the pStr parameter, in bytes.

 

Return value

TRUE on success, otherwise FALSE.

 

Programming Notes

None

 

Code Example

None