Add_Share (Windows CE 5.0)
This function creates a new share for a file or print server.
HRESULT Add_Share( const WCHAR* pName, DWORD dwType, const WCHAR* pPath, const WCHAR* pACL, const WCHAR* pROACL, const WCHAR* pDriver, const WCHAR* pComment);
Parameters
- pName
[in] Specifies the name of the share to be added. - dwType
[in] Specifies the server type. A value of 0 specifies a print server; a value of 1 specifies a file server. - pPath
[in] Specifies the path to the file to be shared. - pACL
[in] Specifies the list of users who have read/write privileges. - pROACL
[in] Specifies the list of users who have read-only privileges. - pDriver
[in] Specifies the printer driver. This value is only for printer sharing. - pComment
[in] Specifies the description of the share that is displayed to the user.
Return Values
Returns an HRESULT value.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Smbconfig.h.
Link Library: Smbconfig.lib
See Also
Send Feedback on this topic to the authors