Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

stragglerJ

Passwording

This topic is 5536 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In directplay how would you detect a password has been set on the session, for client side, i know how to set the password but how am i suppose to compare the two so i can have the client connect to the session? do i do a GetApplicationDesc type of thing? im clueless on what to do so if anyone can shed some light that would be coo. thanks ~stragglerJ

Share this post


Link to post
Share on other sites
Advertisement
You should receive a DPNERR_INVALIDPASSWORD error if you try to connect with an invalid (or empty) password. Otherwise, examining the DPN_APPLICATION_DESC structure you get when enumerating hosts will suffice; the dwFlags member will have its DPNSESSION_REQUIREPASSWORD bit set.

-cb

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!