DirectX SDK

DPCREDENTIALS

The DPCREDENTIALS structure holds the user name, password, and domain to connect to a secure server.

typedef struct {
    DWORD  dwSize;
    DWORD  dwFlags;
    union {
           LPWSTR lpszUsername;
           LPSTR  lpszUsernameA;
          };
    union {
           LPWSTR lpszPassword;
           LPSTR  lpszPasswordA;
          };
    union {
           LPWSTR lpszDomain;
           LPSTR  lpszDomainA;
          };

} DPCREDENTIALS, FAR *LPDPCREDENTIALS;

Members

dwSize
The size of the DPCREDENTIALS structure, dwSize = sizeof(DPCREDENTIALS).
dwFlags
Not used. Must be 0.
lpszUsername, lpszPassword, lpszDomain
Pointers to Unicode strings containing the user name, password, and domain name. Can only be used with a Unicode interface.
lpszUsernameA, lpszPasswordA, lpszDomainA
Pointers to ANSI strings containing the user name, password, and domain name. Can only be used with an ANSI interface.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in dplay.h.

See Also

IDirectPlay4::SecureOpen