Array Passing

vbimport

#1

Hai All,
I want to store all available devices in a CString Array as a return value from a function getdevices.
void CBurn_Cd::AddDeviceName(CString *Device_Name,int Device_Count)
{
//I am Trying To add Device Name in a Array
CString DeviceName[5];

for(DWORD deviceCounter=0;deviceCounter<m_NeroDeviceInFos->nsdisNumDevInfos;deviceCounter++)
{
	DeviceName[deviceCounter]=m_NeroDeviceInFos->nsdisDevInfos[deviceCounter].nsdiDeviceName;
	AfxMessageBox(DeviceName[deviceCounter]);
}
strcpy((char *)Device_Name,DeviceName[0]); 
Device_Count=(int)deviceCounter;

}

I want Device_Name to contain the list of devices if i move how do i do.
Manjula.M