10x.But i have a question.
This code scan for drivers.But how to add the strings to the combo box.How to show them?
Code:
int main()
{
char buf[1000];
DWORD buf_size, cnt;
buf_size = GetLogicalDriveStrings(1000, buf);
cout << "buf_size= " << buf_size << endl;
cout << &buf[4] << endl;
int i;
for(i=0;i<buf_size;i=i+strlen(&buf[i])+1)
{cout << &buf[i] << " ";}
return 0;
}