call GetLastError.The following error codes can be set by the SCM. Other error codes can be set by the registry functions that are called by the SCM.Return code Description ERROR_ACCESS_DENIED The requested access was denied.
ERROR_DATABASE_DOES_NOT_EXIST The specified database does not exist.
ERROR_INVALID_PARAMETER A specified parameter is invalid.
ERROR_ACCESS_DENIED The requested access was denied.
ERROR_DATABASE_DOES_NOT_EXIST The specified database does not exist.
ERROR_INVALID_PARAMETER A specified parameter is invalid.
另外,我是用administrator,应该不是权限问题吧
谢谢大家