Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.006 c
14-8996
Antuan
2001-12-10 21:49
2002.02.04
Бил Гейтс похоронил Win 95


1-8875
Rust_br
2002-01-16 13:27
2002.02.04
Проблема с Caption ом у MDIChild а


14-8998
Мимо проходил 2001:
2001-12-11 12:35
2002.02.04
Вот многие здесь говорят что оффтопик, а мне так кажется что просто топик лучше на девушке будет смотреться.


4-9024
Leviathan
2001-12-07 15:24
2002.02.04
Разрешение экрана


1-8844
Vovochka_guest
2002-01-21 08:53
2002.02.04
Какой компонент для создания отчетов лучше?




   Наверх