"Alessandro Pignotti" alex.pigna@inventati.org wrote:
+BOOL FAR PASCAL EnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnection,
- DWORD dwConnectionSize, LPCDPNAME lpName, DWORD dwFlags,
- LPVOID lpContext)
+{
This doesn't look like a proper type of callb ack for IDirectPlayX_EnumConnections.
- bzero(&sessionDesc,sizeof(DPSESSIONDESC2));
- bzero(&zeroGuid,16);
Use memset instead of non-portable bzero.
- LPDIRECTPLAY4 pDP = NULL;
This initialization is redundant.
If you also could use 4 spaces indents instead of tabs, and add an empty line after data declarations that would be nice as well.
And a personal opinion: all that lines without a single space delimiting variables, functions, equal signs are absolutely not readable.
On 27/02/07, Dmitry Timoshkov dmitry@codeweavers.com wrote:
+BOOL FAR PASCAL EnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnection,
- DWORD dwConnectionSize, LPCDPNAME lpName, DWORD dwFlags,
- LPVOID lpContext)
+{
This doesn't look like a proper type of callb ack for IDirectPlayX_EnumConnections.
I wondered about that as well, but it does appear to be what the DXSDK headers specify.