点击或拖拽改变大小

KernelCreateFile 方法

Sweet 开发框架

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <summary> 文档]

命名空间:  Sweet.Common.Win32
程序集:  Sweet.Common (在 Sweet.Common.dll 中) 版本:3.10.1.0 (3.10.1.0)
语法
public static int CreateFile(
	string lpFileName,
	int dwDesiredAccess,
	int dwShareMode,
	ref SECURITY_ATTRIBUTES lpSecurityAttributes,
	int dwCreationDisposition,
	int dwFlagsAndAttributes,
	IntPtr hTemplateFile
)

参数

lpFileName
类型:SystemString

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="lpFileName"/> 文档]

dwDesiredAccess
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="dwDesiredAccess"/> 文档]

dwShareMode
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="dwShareMode"/> 文档]

lpSecurityAttributes
类型:Sweet.Common.Win32SECURITY_ATTRIBUTES

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="lpSecurityAttributes"/> 文档]

dwCreationDisposition
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="dwCreationDisposition"/> 文档]

dwFlagsAndAttributes
类型:SystemInt32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="dwFlagsAndAttributes"/> 文档]

hTemplateFile
类型:SystemIntPtr

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <param name="hTemplateFile"/> 文档]

返回值

类型:Int32

[缺少 "M:Sweet.Common.Win32.Kernel.CreateFile(System.String,System.Int32,System.Int32,Sweet.Common.Win32.SECURITY_ATTRIBUTES@,System.Int32,System.Int32,System.IntPtr)" 的 <returns> 文档]

参见
SweetUI 控件库、工具类库、扩展类库、多页面开发框架