Platform SDK: DirectX

DPNAME

The DPNAME structure contains name information for a DirectPlay entity, such as a player or group.

typedef struct {
    DWORD dwSize;
    DWORD dwFlags;
    union {
        LPWSTR lpszShortName;
        LPSTR  lpszShortNameA;  
    };
    union {
        LPWSTR lpszLongName;
        LPSTR  lpszLongNameA;
    };
} DPNAME, FAR *LPDPNAME;

Members

dwSize
The size of the DPNAME structure, dwSize = sizeof(DPNAME). Your application must set this member before it uses this structure; otherwise, an error will result.
dwFlags
Structure-specific flags. Currently set to 0.
lpszShortName and lpszLongName
Pointers to Unicode strings containing the short (friendly) and long (formal) names of a player or group. Use these members only if the IDirectPlay4 interface is in use.
lpszShortNameA and lpszLongNameA
Pointers to ANSI strings containing the short (friendly) and long (formal) names of a player or group. Use these members only if the IDirectPlay4A interface is in use.

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::CreateGroup, IDirectPlay4::CreatePlayer, IDirectPlay4::GetGroupName, IDirectPlay4::GetPlayerName, IDirectPlay4::SetGroupName, IDirectPlay4::SetPlayerName