|
|
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
Здраствуйте ВСЕ. Подскажите как получить свободное место на диске удаленного компьютера . Заранее благодарен . ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2005, 12:00 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
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. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2005, 12:09 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
WMI ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 19.12.2005, 12:44 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
RPC ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.12.2005, 18:44 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
RPC ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.12.2005, 18:44 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
RPC ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 20.12.2005, 18:44 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
А example можно , плиз ? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 21.12.2005, 11:28 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
MSDN и тудаже WMI Tasks: Disks and File Systems ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.12.2005, 09:13 |
|
||
|
Свободное место на диске удаленного компьютера
|
|||
|---|---|---|---|
|
#18+
Собственно это из WMI C++ Application Examples ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 22.12.2005, 09:17 |
|
||
|
|

start [/forum/topic.php?desktop=1&fid=57&tid=2032251]: |
0ms |
get settings: |
10ms |
get forum list: |
15ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
42ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
38ms |
get tp. blocked users: |
1ms |
| others: | 233ms |
| total: | 355ms |

| 0 / 0 |
