## Structures

Some structures have changed for DirectPlay 5, with new data members added to the end. Applications that use the IDirectPlay2 interface but are compiled using the DirectX 5 header files can have problems. An application might crash if it is run on a computer that has the DirectX 3 run time installed and the application references data members that were added for DirectX 5.

Applications that need to be backward compatible with older run times should either:

- use the structures that existed in the DirectX 3 header files
- check the dwSize member in each structure before attempting to access to members of the structure

The structures that have new members for DirectPlay 5 are:

Structure | New Members
DPCREDENTIALS | union of
| LPWSTR lpszDomain
| LPSTR lpszDomainA

The DirectPlay structures are:

- DPACCOUNTDESC
- DPCAPS
- DPCHAT
- DPCOMPORTADDRESS
- DPCOMPOUNDADDRESSELEMENT
- DPCREDENTIALS
- DPLAPPINFO
- DPLCONNECTION
- DPNAME
- DPSECURITYDESC
- DPSESSIONDESC2

© 1997 Microsoft Corporation. All rights reserved. Terms of Use.