看起来是这几个函数
DLL-Netapi32.dll
NET_API_STATUSNetScheduleJobAdd(
__inLPCWSTRServername,
__inLPBYTEBuffer,
__outLPDWORDJobId
);
NET_API_STATUSNetScheduleJobDel(
__inLPCWSTRServername,
__inDWORDMinJobId,
__inDWORDMaxJobId
);
NET_API_STATUSNetScheduleJobEnum(
__inLPCWSTRServername,
__outLPBYTE*PointerToBuffer,
__inDWORDPreferredMaximumLength,
__outLPDWORDEntriesRead,
__outLPDWORDTotalEntries,
__in_outLPDWORDResumeHandle
);
NET_API_STATUSNetScheduleJobGetInfo(
__inLPCWSTRServername,
__inDWORDJobId,
__outLPBYTE*PointerToBuffer
);
codeproject上有个com接口的实现 |