Passwording

Started by
0 comments, last by stragglerJ 20 years, 9 months ago
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
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

This topic is closed to new replies.

Advertisement