Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.02.04;
Скачать: CL | DM;

Вниз

Физические и логические диски   Найти похожие ветки 

 
Аркадий   (2002-01-20 00:27) [0]

Как узнать какие диски (физ. и лог.) доступны на компьютере и как их добавить в listbox?
Примерно в listboxe это выглядеть это должно так:
A:\
C:\
D:\
Заранее спасибо.


 
Adder ©   (2002-01-20 04:03) [1]

GetLogicalDriveStrings
The GetLogicalDriveStrings function fills a buffer with strings that specify valid drives in the system.

DWORD GetLogicalDriveStrings(
DWORD nBufferLength, // size of buffer
LPTSTR lpBuffer // drive strings buffer
);

Parameters
nBufferLength
[in] Specifies the maximum size, in characters, of the buffer pointed to by lpBuffer. This size does not include the terminating null character.
lpBuffer
[out] Pointer to a buffer that receives a series of null-terminated strings, one for each valid drive in the system, that end with a second null character. The following example shows the buffer contents with <null> representing the terminating null character.
c:\<null>d:\<null><null>
Return Values
If the function succeeds, the return value is the length, in characters, of the strings copied to the buffer, not including the terminating null character.



Страницы: 1 вся ветка

Текущий архив: 2002.02.04;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.009 c
7-9010
Grey
2001-10-26 00:05
2002.02.04
Работа с библиотеками


3-8759
Ars P
2002-01-04 13:30
2002.02.04
BDE Error!


3-8774
Sergant
2002-01-06 17:03
2002.02.04
Просмотр БД в Dos и Win-кодровках без BDE


1-8892
szap
2002-01-15 19:32
2002.02.04
Какая дата была была 5 дней назад?


3-8770
maxi
2002-01-03 11:19
2002.02.04
Как в Делфи работать с разделителями полей к базе ASCII ?