GetSessionID

 

#include “BlackIceDEVMODE.h”

 

BOOL GetSessionID(BlackIceDEVMODE* pBlackIceDevMode, DWORD* lpSessionID)

Description

Returns the session ID stored in the DEVMODE of the printer driver. This session ID will be used in the message interface name on terminal servers. For example \\.\pipe\ColorMessageInterface2. The 2 is the used session ID.

Parameters

Input value   - pointer to the BlackIceDEVMODE structure

Input value   - pointer to the retrieved session ID. This value will receive the session ID used by the printer driver.

Return value

TRUE on success, otherwise FALSE.

Programming Notes

Only used on Windows Server systems.

Code Example

None