Using Win32 functions in Visual FoxPro Image Gallery
Network Management
..msdn
NetApiBufferFree
NetApiBufferSize
NetConnectionEnum
NetFileClose
NetFileEnum
NetFileGetInfo
NetGetDCName
NetGroupEnum
NetLocalGroupEnum
NetMessageBufferSend
NetMessageNameAdd
NetMessageNameDel
NetMessageNameEnum
NetScheduleJobAdd
NetScheduleJobDel
NetScheduleJobEnum
NetServerEnum
NetServerGetInfo
NetSessionEnum
NetShareAdd
NetShareDel
NetShareEnum
NetShareSetInfo
NetUserAdd
NetUserChangePassword
NetUserDel
NetUserEnum
NetUserGetGroups
NetUserGetInfo
NetUserGetLocalGroups
NetUserSetInfo
NetWkstaGetInfo
NetWkstaTransportEnum
NetWkstaUserEnum
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
NetScheduleJobDel
..msdn    Add comment     W32 Constants      Translate this page
The NetScheduleJobDel function deletes a range of jobs queued to run at a computer.
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Declaration:
NET_API_STATUS NetScheduleJobDel(
  LPCWSTR Servername,
  DWORD MinJobId,
  DWORD MaxJobId
);

FoxPro declaration:
DECLARE SHORT NetScheduleJobDel IN netapi32;
    STRING  Servername,;
    INTEGER MinJobId,;
    INTEGER MaxJobId

Parameters:
Servername
[in] Pointer to a constant string that specifies the DNS or NetBIOS name of the remote server on which the function is to execute.

MinJobId
[in] Specifies a minimum job identifier. Jobs with a job identifier smaller than MinJobId will not be deleted.

MaxJobId
[in] Specifies a 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 (0).
My comment:
This function requires that the schedule service be started at the computer to which the job deletion request is being sent.

Only members of the Administrators local group can successfully execute the NetScheduleJobDel function on a remote server.

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.
Word Index links for the NetScheduleJobDel :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-07-27 07:03:05
Modified: 2005-07-27 07:05:45
Visited in last 7 days: 5
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.87.70.14)
1.15 min.Function: 'CryptEnumProviders'
Function group: 'Cryptography Reference'
4.37 min.Function: 'NetApiBufferFree'
3 day(s)Function: 'GetForegroundWindow'
Function group: 'Window'
 Example: 'GDI+: how to make VFP controls visually shake and shudder'
 Function: 'GetTextExtentPoint32'
 Function: 'CeOpenDatabase'
Function group: 'Remote Application Programming (RAPI)'
 Function: 'timeGetDevCaps'
Function group: 'Windows Multimedia'
6 day(s)Function: 'JetCommitTransaction'
Function group: 'Extensible Storage Engine (ESE, Jet Blue)'
 Example: 'Running a regular FoxPro form while main VFP window is minimized'
 Example: 'GDI+: sending image of FoxPro form to printer'
Google
Advertise here!