大网数据广告活动
Windows 系统接口

Create method of the Win32_ClusterShare class

· 52CE 我爱测

Creates a new Win32_ClusterShare instance.

Creates a new Win32_ClusterShare instance.

Syntax

static uint32 Create(
  [in]           string                   Path,
  [in]           string                   Name,
  [in]           uint32                   Type,
  [in, optional] uint32                   MaximumAllowed,
  [in, optional] string                   Description,
  [in, optional] string                   Password,
  [in, optional] Win32_SecurityDescriptor Access
);

Parameters

Path [in]

Local path of the Windows share.

Example, "C:\Program Files".

Name [in]

The alias to a path set up as a share on a computer system running Windows.

Example, "public".

Type [in]

Type of resource being shared. Types include: disk drives, print queues, interprocess communications (IPC), and general devices.

0 (0x0)

Disk Drive

1 (0x1)

Print Queue

2 (0x2)

Device

3 (0x3)

IPC

2147483648 (0x80000000)

Disk Drive Admin

2147483649 (0x80000001)

Print Queue Admin

2147483650 (0x80000002)

Device Admin

2147483651 (0x80000003)

IPC Admin

MaximumAllowed [in, optional]

Limit on the maximum number of users allowed to use this resource concurrently.

Description [in, optional]

Description of the object.

Password [in, optional]

TBD

Access [in, optional]

Optional embedded instance of a Win32_SecurityDescriptor class that contains the security descriptor for the new share.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Namespace Root\CIMV2
MOF Cimwin32.mof
DLL CIMWin32.dll

See also

Win32_ClusterShare

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。