DllImport如何确定CreateFileA和CreateFileW之间?

时间:2018-09-01 15:18:23

标签: c# windows pinvoke

当我使用P / Invoke来调用CreateFile时,

[DllImport("kernel32.dll")]
public static extern SafeFileHandle CreateFile(
    string lpFileName,
    uint dwDesiredAccess,
    uint dwShareMode,
    IntPtr SecurityAttributes,
    uint dwCreationDisposition,
    uint dwFlagsAndAttributes,
    IntPtr hTemplateFile
);

Windows如何决定调用CreateFileACreateFileW

0 个答案:

没有答案