MBN_CONTEXT_CONSTANTS enumeration (mbnapi.h)

Important

Starting in Windows 10, version 1803, the Win32 APIs described in this section are replaced by the Windows Runtime APIs in the Windows.Networking.Connectivity namespace.

The MBN_CONTEXT_CONSTANTS enumerated type specifies the maximum string lengths supported by members of the MBN_CONTEXT structure.

Syntax

typedef enum MBN_CONTEXT_CONSTANTS {
  MBN_ACCESSSTRING_LEN = 100,
  MBN_USERNAME_LEN = 255,
  MBN_PASSWORD_LEN = 255,
  MBN_CONTEXT_ID_APPEND = 0xffffffff
} ;

Constants

 
MBN_ACCESSSTRING_LEN
Value: 100
Maximum string length of the accessString member of the MBN_CONTEXT structure.
MBN_USERNAME_LEN
Value: 255
Maximum string length of the userName member of the MBN_CONTEXT structure.
MBN_PASSWORD_LEN
Value: 255
Maximum string length of the password member of the MBN_CONTEXT structure.
MBN_CONTEXT_ID_APPEND
Value: 0xffffffff
The device will find the appropriate index to store a context into.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server None supported
Header mbnapi.h