GetSessionID

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.

 

Long GetSessionID(pDevMode As Long)

Only used on Windows Server systems.

 

Input value   - handle to the BlackIceDEVMODE structure

Return value            - The session ID on success, otherwise -1.