Archived

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

stragglerJ

Passwording

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
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