RemoveDeveloperLicense 函数 (wsdevlicensing.h)

删除开发人员许可证。

Syntax

HRESULT RemoveDeveloperLicense(
  [in, optional] HWND hwndParent
);

参数

[in, optional] hwndParent

父窗口的处理程序。

返回值

返回一个 HResult 结构 ,其中包含发生的任何错误代码。

注解

下面是此函数返回的常见错误代码列表:

错误代码 Description
S_OK 函数成功。
E_INVALIDARG 一个或多个参数无效。
E_OUTOFMEMORY 内存不足。
HRESULT_FROM_WIN32(ERROR_NOT_FOUND) 找不到许可证。
HRESULT_FROM_WIN32(ERROR_NOT_AUTHENTICATED) 调用需要身份验证。
HRESULT_FROM_WIN32(ERROR_NETWORK_UNREACHABLE) 无法访问网络。
HRESULT_FROM_WIN32(ERROR_ACCESS_DENIED) 调用方无权访问资源(许可证)。

要求

Requirement 价值
目标平台 Windows操作系统
Header wsdevlicensing.h
Library wsclient.lib
DLL WSClient.dll