CM_SESSION_HANDLE (Compact 2013)

3/26/2014

This data type represents an instance of a session that can be used by an application.

Syntax

DECLARE_HANDLE(CM_SESSION_HANDLE);

Remarks

DECLARE_HANDLE is defined in winnt.h as:

#define DECLARE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name

This implies that if a variable such as hsession, is of type CM_SESSION_HANDLE, as in:

CM_SESSION_HANDLE hconfig; 

hsession is actually of the type:

struct CM_SESSION_HANDLE__ { int unused; } *

which is different than HANDLE, which is defined in winnt.h as:

typedef void *HANDLE;

Requirements

Header

cmnet.h

Library

cmnet.lib

See Also

Reference

Connection Manager Connectivity Data Types