Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Система";
Текущий архив: 2004.02.17;
Скачать: [xml.tar.bz2];

Вниз

>>> Как программно расшарить папку? <<<   Найти похожие ветки 

 
Alien   (2003-11-29 10:19) [0]

Подскажите пжлуста, как мне средствами дельфи расшарить папку на локальном (и удаленном {если это возможно})компьютере...


 
Рамиль   (2003-11-29 11:04) [1]

Насчет API не знаю, но можно запустить net share


 
K.o.Z   (2003-11-29 16:56) [2]

на локальном компьютере:

The NetShareAdd function shares a server resource.

Security Requirements

Only members of the Administrators or Account Operators local group or those with Communication, Print, or Server operator group membership can successfully execute NetShareAdd. The Print operator can add only Printer queues. The Communication operator can add only communication-device queues.

NET_API_STATUS NetShareAdd(

LPTSTR servername,
DWORD level,
LPBYTE buf,
LPDWORD parm_err
);


Parameters

servername

Pointer to a Unicode string containing the name of the remote server on which the function is to execute. A NULL pointer or string specifies the local computer.

level

Specifies one of the following values to set the level of information provided.

Value Meaning
2 The buf parameter points to an array of SHARE_INFO_2 structures.
502 The buf parameter points to an array of SHARE_INFO_502 structures.


buf

Pointer to the buffer in which the data set with the level parameter is stored.

parm_err

Optional pointer to a DWORD that contains the index of the first parameter that causes ERROR_INVALID_PARAMETER. If NULL, the parameter is not returned on error.

на удаленном:
троян


 
Alien   (2003-12-01 07:32) [3]

А поподробнее можно...
Что есть servername
level
buff
parm_err - а то с инглишем - просто беда...
И вааще, при компиляции Дельфя грит, что NetShareAdd - Undeclered identifire - vj; я чот не дописал... :(
Подскажите, плиз... Я в Дельфи недавно...



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

Форум: "Система";
Текущий архив: 2004.02.17;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.45 MB
Время: 0.007 c
1-53605
Grinder
2004-02-06 19:52
2004.02.17
Создание класса


11-53444
EAccessViolation
2003-05-24 13:31
2004.02.17
MainMenu???!


7-53777
Kinder
2003-11-20 16:14
2004.02.17
Как узнать закрыт или открыт сидюк?


1-53561
tria
2004-02-09 12:41
2004.02.17
Как сохранить dfm в текстовом виде?


6-53669
vvv2002
2003-12-09 10:36
2004.02.17
Как подключиться к сети через прокси сервер через idftp ?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский