Get the list of connected drives.

Get the list of connected drives.

GetLogicalDrives

See version :

Pas de dépendances

Download :

#include <windows.h>
#include <stdio.h>

int main()
{
    int i;
    unsigned long n = GetLogicalDrives();
    for(i=0;i<26;i++)
        if ((n>>i)&1)
            printf("Trouve lecteur : %c\n",'A'+i);
    return 0;
}



Explanations

	No explanations yet.