Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / C++ [игнор отключен] [закрыт для гостей] / Свободное место на диске удаленного компьютера / 9 сообщений из 9, страница 1 из 1
19.12.2005, 12:00
    #33443749
cap83
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
Здраствуйте ВСЕ.
Подскажите как получить свободное место на диске удаленного компьютера .
Заранее благодарен .
...
Рейтинг: 0 / 0
19.12.2005, 12:09
    #33443776
_Балтика
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
GetDiskFreeSpace

The GetDiskFreeSpace function retrieves information about the specified disk, including the amount of free space on the disk.

The GetDiskFreeSpace function cannot report volume sizes that are greater than 2 gigabytes (GB). To ensure that your application works with large capacity hard drives, use the GetDiskFreeSpaceEx function.


BOOL GetDiskFreeSpace(
LPCTSTR lpRootPathName,
LPDWORD lpSectorsPerCluster,
LPDWORD lpBytesPerSector,
LPDWORD lpNumberOfFreeClusters,
LPDWORD lpTotalNumberOfClusters
);

Parameters
lpRootPathName
[in] Pointer to a null-terminated string that specifies the root directory of the disk for which information is to be returned. If this parameter is NULL, the function uses the root of the current disk. If this parameter is a UNC name, it must include a trailing backslash (for example, \\MyServer\MyShare\). Furthermore, a drive specification must have a trailing backslash (for example, C:\).
Windows 95: The initial release of Windows 95 does not support UNC paths. Therefore, you must temporarily map the UNC path to a drive letter, query the free disk space on the drive, then remove the temporary mapping. Windows 95 OSR2 and later support UNC paths.
lpSectorsPerCluster
[out] Pointer to a variable that receives the number of sectors per cluster.
lpBytesPerSector
[out] Pointer to a variable that receives the number of bytes per sector.
lpNumberOfFreeClusters
[out] Pointer to a variable for the total number of free clusters on the disk that are available to the user associated with the calling thread.
If per-user disk quotas are in use, this value may be less than the total number of free clusters on the disk.

lpTotalNumberOfClusters
[out] Pointer to a variable for the total number of clusters on the disk that are available to the user associated with the calling thread.
If per-user disk quotas are in use, this value may be less than the total number of clusters on the disk.

Return Values
If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.
...
Рейтинг: 0 / 0
19.12.2005, 12:44
    #33443893
buser
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
WMI
...
Рейтинг: 0 / 0
20.12.2005, 18:44
    #33447599
foo
foo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
RPC
...
Рейтинг: 0 / 0
20.12.2005, 18:44
    #33447601
foo
foo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
RPC
...
Рейтинг: 0 / 0
20.12.2005, 18:44
    #33447603
foo
foo
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
RPC
...
Рейтинг: 0 / 0
21.12.2005, 11:28
    #33448624
cap83
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
А example можно , плиз ?
...
Рейтинг: 0 / 0
22.12.2005, 09:13
    #33450917
buser
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
...
Рейтинг: 0 / 0
22.12.2005, 09:17
    #33450921
buser
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Свободное место на диске удаленного компьютера
Собственно это из WMI C++ Application Examples
...
Рейтинг: 0 / 0
Форумы / C++ [игнор отключен] [закрыт для гостей] / Свободное место на диске удаленного компьютера / 9 сообщений из 9, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]