Partager via


Add_Share (Windows Embedded CE 6.0)

1/6/2010

This function creates a new share for a file or print server.

Syntax

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 Value

Returns an HRESULT value.

Requirements

Header smbconfig.h
Library Smbconfig.lib
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

File Server Functions
File Server Reference