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
NetScheduleJobEnum
..msdn    Add comment     W32 Constants      Translate this page
Lists the jobs queued on a specified computer.
Code examples:
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Declaration:
NET_API_STATUS NetScheduleJobEnum(
    LPCWSTR Servername,
    LPBYTE* PointerToBuffer,
    DWORD PreferredMaximumLength,
    LPDWORD EntriesRead,
    LPDWORD TotalEntries,
    LPDWORD ResumeHandle
);

FoxPro declaration:
DECLARE SHORT NetScheduleJobEnum IN netapi32;
    STRING    Servername,;
    INTEGER @ PointerToBuffer,;
    INTEGER   PreferredMaximumLength,;
    INTEGER @ EntriesRead,;
    INTEGER @ TotalEntries,;
    INTEGER   ResumeHandle

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.

PointerToBuffer
[out] Pointer to the buffer that receives the data. The return information is an array of AT_ENUM structures.

PreferredMaximumLength
[in] Specifies a value that indicates the preferred maximum length of the returned data, in bytes.

EntriesRead
[out] Pointer to a value that receives the count of elements actually enumerated.

TotalEntries
[out] Pointer to a value that receives the total number of entries that could have been enumerated from the current resume position.

ResumeHandle
[in, out] Pointer to a value that contains a resume handle which is used to continue a job enumeration.
Return value:
If the function succeeds, the return value is NERR_Success (0).
My comment:
This function requires that the schedule service be started.

The PointerToBuffer is allocated by the system and must be freed using a single call to the NetApiBufferFree function.

Only members of the Administrators local group can successfully execute the NetScheduleJobEnum function on a remote server.
Word Index links for the NetScheduleJobEnum :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2005-07-26 15:31:27
Modified: 2005-07-26 15:35:52
Visited in last 7 days: 14
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 (107.20.30.170)
6 sec.Function: 'GetWindowLong'
4 day(s)Solution: 'LanguageBar ActiveX Control'
Google
Advertise here!