不是什么大问题,因为你的函数中,参数有指针类型的,你直接给指针类型的参数赋值<br>当然是错的,错误提示可能是:<br> ‘types of actual and formal var parameters must be identical’,如果是这样的<br>话,只有先给指针类型的参数分配内存空间,使用GETMEU函数,使用完毕后释放FREEMEU,<br>函数可能有错误,不过也产不多,我记不太清了,自己可以查一下去
The process that calls LogonUser must have the SE_TCB_NAME privilege. <br>The privilege does not need to be enabled. The LogonUser function enables <br>the privilege as necessary. If the calling process does not have this <br>privilege, LogonUser fails and GetLastError returns ERROR_PRIVILEGE_NOT_HELD.<br>见MSDN2000 <br><br>
>>程云<br>>>错误代码1314:<br>>>1314 A required privilege is not held by the client. ERROR_PRIVILEGE_NOT_HELD <br>登陆时没有用户名记录,所以要添加该用户名。