网站首页  词典首页

请输入您要查询的函数:

 

术语 netschedulejobdel
释义 NetScheduleJobDel
语法:
C++
NET_API_STATUS NetScheduleJobDel(
__in_opt LPCWSTR Servername,
__in DWORD MinJobId,
__in DWORD MaxJobId
);
NetScheduleJobDel功能
该NetScheduleJobDel函数删除了排队在电脑上运行的工作范围。此函数需要服务的时间将在哪些工作删除请求被发送计算机上启动。
参数
服务器名称[中,可选]
一个常量字符串,它指定的DNS或NetBIOS的远程服务器上的功能是执行名称的指针。如果该参数为NULL,则使用本地计算机。
MinJobId [in]
最低工作标识符。标识符的工作比MinJobId小乔布斯将不会被删除。
MaxJobId [in]
最高工作标识符。标识符的工作比MaxJobId较大的工作不会被删除。
返回值
如果函数成功,返回值是NERR_Success。
如果函数失败,返回值是一个系统错误代码。对于一个错误代码的列表,请参见系统错误代码。
备注
通常只有会员的本地管理员组的工作日程安排下正在删除可以成功地执行这一功能的电脑。如果服务器名称的字符串传递指向的服务器名参数是一个远程服务器,然后本地Administrators组的成员可以在服务器上成功地执行这一职能。
如果以下注册表值最低有效位设置(例如,0x00000001),然后用户属于Server Operators组也可以成功地执行这一功能。
HKLM \\系统\\ CurrentControlSet \\控制\\唾液酸\\ SubmitControl
调用NetScheduleJobEnum函数来检索一个或多个计划作业工作标识符。
该NetScheduleJobDel函数删除所有的工作,其工作标识符通过MaxJobId MinJobId的范围内。
要删除服务器上所有预定的工作,您可以调用NetScheduleJobDel指定MinJobId等于0,MaxJobId等于- 1。若要删除一个工作,同时指定MinJobId参数和MaxJobId参数工作的标识符。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderLmat.h(包括Lmat.h)
LibraryNetapi32.lib
DLLNetapi32.dll
参见
网络管理概述
网络管理功能
附表功能
NetScheduleJobAdd
NetScheduleJobEnum
NetScheduleJobGetInfo
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年8月13日
==英文原文==NetScheduleJobDel Function
The NetScheduleJobDel function deletes a range of jobs queued to run at a computer. This function requires that the schedule service be started at the computer to which the job deletion request is being sent.
Syntax
C++
NET_API_STATUS NetScheduleJobDel(
__in_opt LPCWSTR Servername,
__in DWORD MinJobId,
__in DWORD MaxJobId
);
Parameters
Servername [in, optional]
A pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute. If this parameter is NULL, the local computer is used.
MinJobId [in]
The minimum job identifier. Jobs with a job identifier smaller than MinJobId will not be deleted.
MaxJobId [in]
The maximum job identifier. Jobs with a job identifier larger than MaxJobId will not be deleted.
Return Value
If the function succeeds, the return value is NERR_Success.
If the function fails, the return value is a system error code. For a list of error codes, see System Error Codes .
Remarks
Normally only members of the local Administrators group on the computer where the schedule job is being deleted can successfully execute this function. If the server name passed in the string pointed to by the Servername parameter is a remote server, then only members of the local Administrators group on the server can successfully execute this function.
If the following registry value has the least significant bit set (for example, 0x00000001), then users belonging to the Server Operators group can also successfully execute this function.
HKLM\\System\\CurrentControlSet\\Control\\Lsa\\SubmitControl
Call the NetScheduleJobEnum function to retrieve the job identifier for one or more scheduled jobs.
The NetScheduleJobDel function deletes all jobs whose job identifiers are in the range MinJobId through MaxJobId.
To delete all scheduled jobs at the server, you can call NetScheduleJobDel specifying MinJobId equal to 0 and MaxJobId equal to – 1. To delete one job, specify the job's identifier for both the MinJobId parameter and the MaxJobId parameter.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderLmat.h (include Lmat.h)
LibraryNetapi32.lib
DLLNetapi32.dll
See Also
Network Management Overview
Network Management Functions
Schedule Functions
NetScheduleJobAdd
NetScheduleJobEnum
NetScheduleJobGetInfo
Send comments about this topic to Microsoft
Build date: 8/13/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa370615(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:27:17