[6672] | 1 | /* $Id: schedule.cpp,v 1.1 2001-09-06 22:23:40 phaller Exp $ */
|
---|
| 2 |
|
---|
| 3 | /*
|
---|
| 4 | *
|
---|
| 5 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 6 | *
|
---|
| 7 | */
|
---|
| 8 | /*
|
---|
| 9 | * NETAPI32 schedule APIs
|
---|
| 10 | *
|
---|
| 11 | * Copyright 1998 Patrick Haller
|
---|
| 12 | *
|
---|
| 13 | * Note: functions that return structures/buffers seem to append strings
|
---|
| 14 | * at the end of the buffer. Currently, we just allocate the strings
|
---|
| 15 | * "normally". Therefore a caller that just does a NetApiBufferFree() on the
|
---|
| 16 | * returned buffer will leak all allocated strings.
|
---|
| 17 | *
|
---|
| 18 | */
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | /****************************************************************************
|
---|
| 22 | * Includes *
|
---|
| 23 | ****************************************************************************/
|
---|
| 24 |
|
---|
| 25 | #include <odin.h>
|
---|
| 26 | #include <odinwrap.h>
|
---|
| 27 | #include <os2win.h>
|
---|
| 28 | #include <misc.h>
|
---|
[21916] | 29 | #include <string.h>
|
---|
[6672] | 30 | #include <unicode.h>
|
---|
| 31 | #include <heapstring.h>
|
---|
| 32 | #include <winconst.h>
|
---|
| 33 |
|
---|
| 34 | #include "oslibnet.h"
|
---|
| 35 | #include "lanman.h"
|
---|
| 36 |
|
---|
| 37 | ODINDEBUGCHANNEL(WNETAP32-SCHEDULE)
|
---|
| 38 |
|
---|
| 39 |
|
---|
| 40 | /****************************************************************************
|
---|
| 41 | * Module Global Variables *
|
---|
| 42 | ****************************************************************************/
|
---|
| 43 |
|
---|
| 44 | #define NCBNAMSZ 16
|
---|
| 45 | #define MAX_LANA 254
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 | /*****************************************************************************
|
---|
| 49 | * Name : NET_API_STATUS NetScheduleJobAdd
|
---|
| 50 | * Purpose :
|
---|
| 51 | * Parameters: LPWSTR Servername
|
---|
| 52 | * LPBYTE Buffer
|
---|
| 53 | * LPDWORD JobId
|
---|
| 54 | * Variables :
|
---|
| 55 | * Result :
|
---|
| 56 | * Remark :
|
---|
| 57 | * Status : UNTESTED STUB
|
---|
| 58 | *
|
---|
| 59 | * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
|
---|
| 60 | *
|
---|
| 61 | * Author : Markus Montkowski [09.07.98 21:55:41]
|
---|
| 62 | *****************************************************************************/
|
---|
| 63 | ODINFUNCTION3(NET_API_STATUS, OS2NetScheduleJobAdd,
|
---|
| 64 | LPWSTR, Servername,
|
---|
| 65 | LPBYTE, Buffer,
|
---|
| 66 | LPDWORD, JobId)
|
---|
| 67 |
|
---|
| 68 | {
|
---|
| 69 |
|
---|
| 70 | dprintf(("NETAPI32: NetScheduleJobAdd(%08x, %08x, %08x) not implemented\n"
|
---|
| 71 | ,Servername, Buffer, JobId
|
---|
| 72 | ));
|
---|
| 73 |
|
---|
| 74 | return (NERR_BASE);
|
---|
| 75 | }
|
---|
| 76 |
|
---|
| 77 | /*****************************************************************************
|
---|
| 78 | * Name : NET_API_STATUS NetScheduleJobDel
|
---|
| 79 | * Purpose :
|
---|
| 80 | * Parameters: LPWSTR Servername
|
---|
| 81 | * DWORD MinJobId
|
---|
| 82 | * DWORD MaxJobId
|
---|
| 83 | * Variables :
|
---|
| 84 | * Result :
|
---|
| 85 | * Remark :
|
---|
| 86 | * Status : UNTESTED STUB
|
---|
| 87 | *
|
---|
| 88 | * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
|
---|
| 89 | *
|
---|
| 90 | * Author : Markus Montkowski [09.07.98 21:55:50]
|
---|
| 91 | *****************************************************************************/
|
---|
| 92 | ODINFUNCTION3(NET_API_STATUS, OS2NetScheduleJobDel,
|
---|
| 93 | LPWSTR, Servername,
|
---|
| 94 | DWORD, MinJobId,
|
---|
| 95 | DWORD, MaxJobId)
|
---|
| 96 |
|
---|
| 97 | {
|
---|
| 98 |
|
---|
| 99 | dprintf(("NETAPI32: NetScheduleJobDel(%08x, %d, %d) not implemented\n"
|
---|
| 100 | ,Servername, MinJobId, MaxJobId
|
---|
| 101 | ));
|
---|
| 102 |
|
---|
| 103 | return (NERR_BASE);
|
---|
| 104 | }
|
---|
| 105 |
|
---|
| 106 | /*****************************************************************************
|
---|
| 107 | * Name : NET_API_STATUS NetScheduleJobEnum
|
---|
| 108 | * Purpose :
|
---|
| 109 | * Parameters: LPWSTR Servername
|
---|
| 110 | * LPBYTE *PointerToBuffer
|
---|
| 111 | * DWORD PreferredMaximumLength
|
---|
| 112 | * LPDWORD EntriesRead
|
---|
| 113 | * LPDWORD TotalEntries
|
---|
| 114 | * LPDWORD ResumeHandle
|
---|
| 115 | * Variables :
|
---|
| 116 | * Result :
|
---|
| 117 | * Remark :
|
---|
| 118 | * Status : UNTESTED STUB
|
---|
| 119 | *
|
---|
| 120 | * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
|
---|
| 121 | *
|
---|
| 122 | * Author : Markus Montkowski [09.07.98 21:56:02]
|
---|
| 123 | *****************************************************************************/
|
---|
| 124 | ODINFUNCTION6(NET_API_STATUS, OS2NetScheduleJobEnum,
|
---|
| 125 | LPWSTR, Servername,
|
---|
| 126 | LPBYTE *, PointerToBuffer,
|
---|
| 127 | DWORD, PreferredMaximumLength,
|
---|
| 128 | LPDWORD, EntriesRead,
|
---|
| 129 | LPDWORD, TotalEntries,
|
---|
| 130 | LPDWORD, ResumeHandle)
|
---|
| 131 |
|
---|
| 132 | {
|
---|
| 133 |
|
---|
| 134 | dprintf(("NETAPI32: NetScheduleJobEnum(%08x, %08x, %d, %08x, %08x, %08x) not implemented\n"
|
---|
| 135 | ,Servername, *PointerToBuffer, PreferredMaximumLength, EntriesRead, TotalEntries, ResumeHandle
|
---|
| 136 | ));
|
---|
| 137 |
|
---|
| 138 | return (NERR_BASE);
|
---|
| 139 | }
|
---|
| 140 |
|
---|
| 141 | /*****************************************************************************
|
---|
| 142 | * Name : NET_API_STATUS NetScheduleJobGetInfo
|
---|
| 143 | * Purpose :
|
---|
| 144 | * Parameters: LPWSTR Servername
|
---|
| 145 | * DWORD JobId
|
---|
| 146 | * LPBYTE *PointerToBuffer
|
---|
| 147 | * Variables :
|
---|
| 148 | * Result :
|
---|
| 149 | * Remark :
|
---|
| 150 | * Status : UNTESTED STUB
|
---|
| 151 | *
|
---|
| 152 | * Stub Generated through PE2LX Stubwizard 0.02 from Markus Montkowski
|
---|
| 153 | *
|
---|
| 154 | * Author : Markus Montkowski [09.07.98 21:56:23]
|
---|
| 155 | *****************************************************************************/
|
---|
| 156 | ODINFUNCTION3(NET_API_STATUS, OS2NetScheduleJobGetInfo,
|
---|
| 157 | LPWSTR, Servername,
|
---|
| 158 | DWORD, JobId,
|
---|
| 159 | LPBYTE *, PointerToBuffer)
|
---|
| 160 |
|
---|
| 161 | {
|
---|
| 162 |
|
---|
| 163 | dprintf(("NETAPI32: NetScheduleJobGetInfo(%08x, %d, %08x) not implemented\n"
|
---|
| 164 | ,Servername, JobId, *PointerToBuffer
|
---|
| 165 | ));
|
---|
| 166 |
|
---|
| 167 | return (NERR_BASE);
|
---|
| 168 | }
|
---|