Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- NetLib for Clipper, Version 6.0 - n_aredirect( [ <adevice>, <anetpath> ] ) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_AREDIRECT( [ <aDevice>, <aNetpath> ] )


Parameters

<aDevice>
Array to receive a list of names (drive letter or printer name) for 
devices that have been redirected.

<aNetpath>
Array to receive a list of corresponding network paths to the devices. 
The size of the array should be equal to or greater than the size of 
the array <aDevice>.


Returns

The number of redirected devices.

You can call the function with no parameters, use the return value to 
size the arrays, and then pass them as arguments in a second call to 
N_AREDIRECT().

Clipper 5.x  If <aDevice> and <aNetpath> are initialized to size 
zero, the function will resize them correctly.


Description

N_AREDIRECT(<aDevice>, <aNetpath>) fills the array <aDevice> with a 
list of names for local devices (drive letter or printer name) that 
have been redirected and <aNetpath> with a list of corresponding 
network paths to the devices.

The form N_AREDIRECT(<aDevice>, <aNetpath>) requires that the arrays 
passed as arguments be large enough to hold the entire redirection 
table. Use N_AREDIRECT() with no parameters to size the arrays 
properly.

This function will work only on networks running NetBIOS or NetBIOS 
emulation.

Use N_REDIRECT() to redirect or cancel redirection of local devices.


Example

// Get list of redirected devices
DECLARE aDevice[N_AREDIRECT()]
DECLARE aNpath[LEN(aDevice)]

N_AREDIRECT(aDevice, aNpath)
FOR k = 1 TO LEN(aDevice)
    ? aDevice[k], 'redirected to ', aNpath[k]
NEXT



See Also: N_REDIRECT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson