Lines Matching refs:array
364 WSANAMESPACE_INFO * array;
367 array = NULL;
375 // Build an array of all the NSPs. Call it first with NULL to get the size, allocate a buffer, then get them into it.
382 array = (WSANAMESPACE_INFO *) malloc( size );
383 require_action( array, exit, err = kNoMemoryErr );
385 n = WSAEnumNameSpaceProviders( &size, array );
393 fprintf( stdout, " NSProviderId: %s\n", GUIDtoString( &array[ i ].NSProviderId, s ) );
394 fprintf( stdout, " dwNameSpace: %d\n", array[ i ].dwNameSpace );
395 fprintf( stdout, " fActive: %s\n", array[ i ].fActive ? "YES" : "NO" );
396 fprintf( stdout, " dwVersion: %d\n", array[ i ].dwVersion );
397 fprintf( stdout, " lpszIdentifier: \"%s\"\n", array[ i ].lpszIdentifier );
403 if( array )
405 free( array );
430 WSANAMESPACE_INFO * array;
434 array = NULL;
442 // Build an array of all the NSPs. Call it first with NULL to get the size, allocate a buffer, then get them into it.
449 array = (WSANAMESPACE_INFO *) malloc( size );
450 require_action( array, exit, err = kNoMemoryErr );
452 n = WSAEnumNameSpaceProviders( &size, array );
460 if( strcmp( array[ i ].lpszIdentifier, "Tcpip" ) == 0 )
469 size = (DWORD) strlen( array[ i ].lpszIdentifier );
471 CharToWCharString( array[ i ].lpszIdentifier, name );
477 err = WSCUnInstallNameSpace( &array[ i ].NSProviderId );
481 err = WSCInstallNameSpace( name, path, NS_DNS, array[ i ].dwVersion, &array[ i ].NSProviderId );
491 if( array )
493 free( array );