我有一个 C# 编译错误
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows.Forms;
using System.Security.Principal;
using System.Security.Permissions;
using System.Runtime.ConstrainedExecution;
using System.Runtime.InteropServices;
using Microsoft.Win32.SafeHandles;
[DllImport("advapi32.dll", SetLastError = true,CharSet = CharSet.Unicode)]
public static extern bool ***LogonUser***(string lpszUsername, string lpszDomain, string lpszPassword,
int dwLogonType, int dwLogonProvider, out ***SafeTokenHandle*** phToken);
In the word at the * sign (LogonUser and SafeTokenHandle). 由于类型未知,我的 C# 编译器无法编译。我使用 Visual Studio 2012、Windows 64、Framework 4.0 进行开发。
请帮忙。