#include<windows.h> #include<stdio.h> #include<stdlib.h> #define BUFF 1024 int main() { CHAR szLogicalDrierStrings[BUFF]; ZeroMemory(szLogicalDrierStrings,BUFF); GetLogicalDriveStrings(BUFF, szLogicalDrierStrings); PCHAR pLogical = NULL; pLogical = (PCHAR)szLogicalDrierStrings; //C:\0D:\0...... do { printf("%s ", pLogical); pLogical += (lstrlen(szLogicalDrierStrings) + 1); } while (*pLogical != '