Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
How to enumerate, add and delete shares on the local computer (WinNT/XP)
NetShareSetInfo
..msdn    Add comment     W32 Constants      Translate this page
Sets the parameters of a shared resource.
Code examples:
How to enumerate, add and delete shares on the local computer (WinNT/XP)
Declaration:
NET_API_STATUS NetShareSetInfo(
    LPWSTR servername,
    LPWSTR netname,
    DWORD level,
    LPBYTE buf,
    LPDWORD parm_err
);

FoxPro declaration:
DECLARE INTEGER NetShareSetInfo IN netapi32;
    STRING servername,;
    STRING netname,;
    LONG lvl,;
    STRING @buf,;
    LONG @parm_err
Parameters:
servername
[in] Pointer to a string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute.

netname
[in] Pointer to a string that specifies the name of the share to set information on.

level
[in] Specifies the information level of the data (1,2,502,...).

buf
[in] Pointer to the buffer that specifies the data. The format of this data depends on the value of the level parameter.

parm_err
[out] Pointer to a value that receives the index of the first member of the share information structure that causes the ERROR_INVALID_PARAMETER error.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
If the servername parameter is NULL, the local computer is used.
Word Index links for the NetShareSetInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-12-02 12:44:40
Modified: 2005-12-02 12:47:36
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.127.109)
21 sec.Example: 'GDI+: sending image of FoxPro form to printer'
45 sec.Function: 'CreateTransaction'
1.13 min.Function: 'GetUserDefaultLangID'
1.55 min.Function: 'SetupDiGetClassImageListEx'
1.98 min.Function: 'CeGetSystemPowerStatusEx'
2.47 min.Function: 'ScreenToClient'
2.97 min.Function: 'getnameinfo'
Function group: 'Windows Sockets 2 (Winsock)'
3.52 min.Function: 'CombineRgn'
4.07 min.
Function group: 'Raw Input'
4.65 min.Function: 'GetTickCount'
Google
Advertise here!