Lei fang » 23 янв 2006, 19:20
Спасибо вам. Попробую теперь разобраться что именно значат эти параметры
server
[in] Pointer to a string that specifies the DNS or NetBIOS name of the server on which the function is to execute. If this parameter is NULL, the local computer is used.
Вот это чего такое?
"Указатель на строку содержащую DNS или NetBIOS имя сервера, на котором выполняется эта функция. Если параметр равен 0, то будет использован локальный комп."
Хм... Что же это такое? Какой-то ip адрес? Я так понял мне 0 надо писать?
service
[in] Pointer to a string that specifies the name of the service about which to get the statistics. Only the values SERVICE_SERVER and SERVICE_WORKSTATION are currently allowed.
"Строка, определяющая имя сервиса с которого берется статистика"
Ладно, думаю с двумя параметрами разрулю. Но, все же, это что такое?
level
[in] Specifies the information level of the data. This parameter can be the following value.
Return statistics about a workstation or a server. The bufptr parameter points to a STAT_WORKSTATION_0 or a STAT_SERVER_0 structure.
Перевести могу, но понять нет
bufptr
[out] Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function.
А это по идее указатель на буфер где хранится принятые байты... Что-то тут не то... по-моему. Ведь когда я что-то качаю оно вроде не в какой-то буфер идет, а туда, куда я его сохранил. Или в этом буфере хранится лишь отсчет о принятых байтах?
Спасибо вам. Попробую теперь разобраться что именно значат эти параметры
server
[in] Pointer to a string that specifies the DNS or NetBIOS name of the server on which the function is to execute. If this parameter is NULL, the local computer is used.
Вот это чего такое?
"Указатель на строку содержащую DNS или NetBIOS имя сервера, на котором выполняется эта функция. Если параметр равен 0, то будет использован локальный комп."
Хм... Что же это такое? Какой-то ip адрес? Я так понял мне 0 надо писать?
service
[in] Pointer to a string that specifies the name of the service about which to get the statistics. Only the values SERVICE_SERVER and SERVICE_WORKSTATION are currently allowed.
"Строка, определяющая имя сервиса с которого берется статистика"
Ладно, думаю с двумя параметрами разрулю. Но, все же, это что такое?
level
[in] Specifies the information level of the data. This parameter can be the following value.
Return statistics about a workstation or a server. The bufptr parameter points to a STAT_WORKSTATION_0 or a STAT_SERVER_0 structure.
Перевести могу, но понять нет
bufptr
[out] Pointer to the buffer that receives the data. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function.
А это по идее указатель на буфер где хранится принятые байты... Что-то тут не то... по-моему. Ведь когда я что-то качаю оно вроде не в какой-то буфер идет, а туда, куда я его сохранил. Или в этом буфере хранится лишь отсчет о принятых байтах?