source: anotherchoice/tags/jsp-1.4.4-full-UTF8/windev/watcher/watcher_p.c@ 26

Last change on this file since 26 was 26, checked in by ykominami, 10 years ago

initial

File size: 14.6 KB
Line 
1/*
2 * TOPPERS/JSP Kernel
3 * Toyohashi Open Platform for Embedded Real-Time Systems/
4 * Just Standard Profile Kernel
5 *
6 * Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
7 * Toyohashi Univ. of Technology, JAPAN
8 *
9 * 上記著作権者
10は,以下の (1)〜(4) の条件か,Free Software Foundation
11 * によってå…
12¬è¡¨ã•ã‚Œã¦ã„ã‚‹ GNU General Public License の Version 2 に記
13 * 述されている条件を満たす場合に限り,本ソフトウェア(本ソフトウェア
14 * を改変したものを含む.以下同じ)を使用・複製・改変・再é…
15å¸ƒï¼ˆä»¥ä¸‹ï¼Œ
16 * 利用と呼ぶ)することを無償で許諾する.
17 * (1) 本ソフトウェアをソースコードの形で利用する場合には,上記の著作
18 * 権表示,この利用条件および下記の無保証規定が,そのままの形でソー
19 * スコード中に含まれていること.
20 * (2) 本ソフトウェアを,ライブラリ形式など,他のソフトウェア開発に使
21 * 用できる形で再é…
22å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œå†é…
23å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨
24 * 者
25マニュアルなど)に,上記の著作権表示,この利用条件および下記
26 * の無保証規定を掲載すること.
27 * (3) 本ソフトウェアを,機器に組み込むなど,他のソフトウェア開発に使
28 * 用できない形で再é…
29å¸ƒã™ã‚‹å ´åˆã«ã¯ï¼Œæ¬¡ã®ã„ずれかの条件を満たすこ
30 * と.
31 * (a) 再é…
32å¸ƒã«ä¼´ã†ãƒ‰ã‚­ãƒ¥ãƒ¡ãƒ³ãƒˆï¼ˆåˆ©ç”¨è€…
33マニュアルなど)に,上記の著
34 * 作権表示,この利用条件および下記の無保証規定を掲載すること.
35 * (b) 再é…
36å¸ƒã®å½¢æ…
37‹ã‚’,別に定める方法によって,TOPPERSプロジェクトに
38 * 報告すること.
39 * (4) 本ソフトウェアの利用により直接的または間接的に生じるいかなる損
40 * 害からも,上記著作権者
41およびTOPPERSプロジェクトをå…
42è²¬ã™ã‚‹ã“と.
43 *
44 * 本ソフトウェアは,無保証で提供されているものである.上記著作権者
45お
46 * よびTOPPERSプロジェクトは,本ソフトウェアに関して,その適用可能性も
47 * 含めて,いかなる保証も行わない.また,本ソフトウェアの利用により直
48 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない.
49 *
50 * @(#) $Id: watcher_p.c,v 1.3 2003/06/30 15:58:39 takayuki Exp $
51 */
52
53/* this ALWAYS GENERATED file contains the proxy stub code */
54
55
56/* File created by MIDL compiler version 5.01.0164 */
57/* at Fri Nov 01 23:33:21 2002
58 */
59/* Compiler settings for C:\Documents and Settings\Takayuki\My Documents\Visual Studio Projects\JSP Windows Logging Mechanism\watcher\watcher.idl:
60 Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext
61 error checks: allocation ref bounds_check enum stub_data
62*/
63//@@MIDL_FILE_HEADING( )
64
65#define USE_STUBLESS_PROXY
66
67
68/* verify that the <rpcproxy.h> version is high enough to compile this file*/
69#ifndef __REDQ_RPCPROXY_H_VERSION__
70#define __REQUIRED_RPCPROXY_H_VERSION__ 440
71#endif
72
73
74#include "rpcproxy.h"
75#ifndef __RPCPROXY_H_VERSION__
76#error this stub requires an updated version of <rpcproxy.h>
77#endif // __RPCPROXY_H_VERSION__
78
79
80#include "watcher.h"
81
82#define TYPE_FORMAT_STRING_SIZE 7
83#define PROC_FORMAT_STRING_SIZE 163
84
85typedef struct _MIDL_TYPE_FORMAT_STRING
86 {
87 short Pad;
88 unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
89 } MIDL_TYPE_FORMAT_STRING;
90
91typedef struct _MIDL_PROC_FORMAT_STRING
92 {
93 short Pad;
94 unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
95 } MIDL_PROC_FORMAT_STRING;
96
97
98extern const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString;
99extern const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString;
100
101
102/* Object interface: IUnknown, ver. 0.0,
103 GUID={0x00000000,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
104
105
106/* Object interface: IDispatch, ver. 0.0,
107 GUID={0x00020400,0x0000,0x0000,{0xC0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}} */
108
109
110/* Object interface: IKernelLogControl, ver. 0.0,
111 GUID={0x1FFB399D,0x1058,0x40B4,{0xAF,0x62,0xEA,0x43,0xCD,0xDD,0x79,0xB0}} */
112
113
114extern const MIDL_STUB_DESC Object_StubDesc;
115
116
117extern const MIDL_SERVER_INFO IKernelLogControl_ServerInfo;
118
119#pragma code_seg(".orpc")
120
121static const MIDL_STUB_DESC Object_StubDesc =
122 {
123 0,
124 NdrOleAllocate,
125 NdrOleFree,
126 0,
127 0,
128 0,
129 0,
130 0,
131 __MIDL_TypeFormatString.Format,
132 1, /* -error bounds_check flag */
133 0x20000, /* Ndr library version */
134 0,
135 0x50100a4, /* MIDL Version 5.1.164 */
136 0,
137 0,
138 0, /* notify & notify_flag routine table */
139 1, /* Flags */
140 0, /* Reserved3 */
141 0, /* Reserved4 */
142 0 /* Reserved5 */
143 };
144
145static const unsigned short IKernelLogControl_FormatStringOffsetTable[] =
146 {
147 (unsigned short) -1,
148 (unsigned short) -1,
149 (unsigned short) -1,
150 (unsigned short) -1,
151 0,
152 22,
153 44,
154 72,
155 100,
156 128
157 };
158
159static const MIDL_SERVER_INFO IKernelLogControl_ServerInfo =
160 {
161 &Object_StubDesc,
162 0,
163 __MIDL_ProcFormatString.Format,
164 &IKernelLogControl_FormatStringOffsetTable[-3],
165 0,
166 0,
167 0,
168 0
169 };
170
171static const MIDL_STUBLESS_PROXY_INFO IKernelLogControl_ProxyInfo =
172 {
173 &Object_StubDesc,
174 __MIDL_ProcFormatString.Format,
175 &IKernelLogControl_FormatStringOffsetTable[-3],
176 0,
177 0,
178 0
179 };
180
181CINTERFACE_PROXY_VTABLE(13) _IKernelLogControlProxyVtbl =
182{
183 &IKernelLogControl_ProxyInfo,
184 &IID_IKernelLogControl,
185 IUnknown_QueryInterface_Proxy,
186 IUnknown_AddRef_Proxy,
187 IUnknown_Release_Proxy ,
188 0 /* (void *)-1 /* IDispatch::GetTypeInfoCount */ ,
189 0 /* (void *)-1 /* IDispatch::GetTypeInfo */ ,
190 0 /* (void *)-1 /* IDispatch::GetIDsOfNames */ ,
191 0 /* IDispatch_Invoke_Proxy */ ,
192 (void *)-1 /* IKernelLogControl::Open */ ,
193 (void *)-1 /* IKernelLogControl::Close */ ,
194 (void *)-1 /* IKernelLogControl::get_Type */ ,
195 (void *)-1 /* IKernelLogControl::get_Logtim */ ,
196 (void *)-1 /* IKernelLogControl::get_isValid */ ,
197 (void *)-1 /* IKernelLogControl::get_Param */
198};
199
200
201static const PRPC_STUB_FUNCTION IKernelLogControl_table[] =
202{
203 STUB_FORWARDING_FUNCTION,
204 STUB_FORWARDING_FUNCTION,
205 STUB_FORWARDING_FUNCTION,
206 STUB_FORWARDING_FUNCTION,
207 NdrStubCall2,
208 NdrStubCall2,
209 NdrStubCall2,
210 NdrStubCall2,
211 NdrStubCall2,
212 NdrStubCall2
213};
214
215CInterfaceStubVtbl _IKernelLogControlStubVtbl =
216{
217 &IID_IKernelLogControl,
218 &IKernelLogControl_ServerInfo,
219 13,
220 &IKernelLogControl_table[-3],
221 CStdStubBuffer_DELEGATING_METHODS
222};
223
224#pragma data_seg(".rdata")
225
226#if !defined(__RPC_WIN32__)
227#error Invalid build platform for this stub.
228#endif
229
230#if !(TARGET_IS_NT40_OR_LATER)
231#error You need a Windows NT 4.0 or later to run this stub because it uses these features:
232#error -Oif or -Oicf, more than 32 methods in the interface.
233#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
234#error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
235#endif
236
237
238static const MIDL_PROC_FORMAT_STRING __MIDL_ProcFormatString =
239 {
240 0,
241 {
242
243 /* Procedure Open */
244
245 0x33, /* FC_AUTO_HANDLE */
246 0x6c, /* Old Flags: object, Oi2 */
247/* 2 */ NdrFcLong( 0x0 ), /* 0 */
248/* 6 */ NdrFcShort( 0x7 ), /* 7 */
249#ifndef _ALPHA_
250/* 8 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
251#else
252 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
253#endif
254/* 10 */ NdrFcShort( 0x0 ), /* 0 */
255/* 12 */ NdrFcShort( 0x8 ), /* 8 */
256/* 14 */ 0x4, /* Oi2 Flags: has return, */
257 0x1, /* 1 */
258
259 /* Return value */
260
261/* 16 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
262#ifndef _ALPHA_
263/* 18 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
264#else
265 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
266#endif
267/* 20 */ 0x8, /* FC_LONG */
268 0x0, /* 0 */
269
270 /* Procedure Close */
271
272/* 22 */ 0x33, /* FC_AUTO_HANDLE */
273 0x6c, /* Old Flags: object, Oi2 */
274/* 24 */ NdrFcLong( 0x0 ), /* 0 */
275/* 28 */ NdrFcShort( 0x8 ), /* 8 */
276#ifndef _ALPHA_
277/* 30 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
278#else
279 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
280#endif
281/* 32 */ NdrFcShort( 0x0 ), /* 0 */
282/* 34 */ NdrFcShort( 0x8 ), /* 8 */
283/* 36 */ 0x4, /* Oi2 Flags: has return, */
284 0x1, /* 1 */
285
286 /* Return value */
287
288/* 38 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
289#ifndef _ALPHA_
290/* 40 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
291#else
292 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
293#endif
294/* 42 */ 0x8, /* FC_LONG */
295 0x0, /* 0 */
296
297 /* Procedure get_Type */
298
299/* 44 */ 0x33, /* FC_AUTO_HANDLE */
300 0x6c, /* Old Flags: object, Oi2 */
301/* 46 */ NdrFcLong( 0x0 ), /* 0 */
302/* 50 */ NdrFcShort( 0x9 ), /* 9 */
303#ifndef _ALPHA_
304/* 52 */ NdrFcShort( 0xc ), /* x86, MIPS, PPC Stack size/offset = 12 */
305#else
306 NdrFcShort( 0x18 ), /* Alpha Stack size/offset = 24 */
307#endif
308/* 54 */ NdrFcShort( 0x0 ), /* 0 */
309/* 56 */ NdrFcShort( 0x10 ), /* 16 */
310/* 58 */ 0x4, /* Oi2 Flags: has return, */
311 0x2, /* 2 */
312
313 /* Parameter pVal */
314
315/* 60 */ NdrFcShort( 0x2150 ), /* Flags: out, base type, simple ref, srv alloc size=8 */
316#ifndef _ALPHA_
317/* 62 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
318#else
319 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
320#endif
321/* 64 */ 0x8, /* FC_LONG */
322 0x0, /* 0 */
323
324 /* Return value */
325
326/* 66 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
327#ifndef _ALPHA_
328/* 68 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
329#else
330 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
331#endif
332/* 70 */ 0x8, /* FC_LONG */
333 0x0, /* 0 */
334
335 /* Procedure get_Logtim */
336
337/* 72 */ 0x33, /* FC_AUTO_HANDLE */
338 0x6c, /* Old Flags: object, Oi2 */
339/* 74 */ NdrFcLong( 0x0 ), /* 0 */
340/* 78 */ NdrFcShort( 0xa ), /* 10 */
341#ifndef _ALPHA_
342/* 80 */ NdrFcShort( 0xc ), /* x86, MIPS, PPC Stack size/offset = 12 */
343#else
344 NdrFcShort( 0x18 ), /* Alpha Stack size/offset = 24 */
345#endif
346/* 82 */ NdrFcShort( 0x0 ), /* 0 */
347/* 84 */ NdrFcShort( 0x10 ), /* 16 */
348/* 86 */ 0x4, /* Oi2 Flags: has return, */
349 0x2, /* 2 */
350
351 /* Parameter pVal */
352
353/* 88 */ NdrFcShort( 0x2150 ), /* Flags: out, base type, simple ref, srv alloc size=8 */
354#ifndef _ALPHA_
355/* 90 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
356#else
357 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
358#endif
359/* 92 */ 0x8, /* FC_LONG */
360 0x0, /* 0 */
361
362 /* Return value */
363
364/* 94 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
365#ifndef _ALPHA_
366/* 96 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
367#else
368 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
369#endif
370/* 98 */ 0x8, /* FC_LONG */
371 0x0, /* 0 */
372
373 /* Procedure get_isValid */
374
375/* 100 */ 0x33, /* FC_AUTO_HANDLE */
376 0x6c, /* Old Flags: object, Oi2 */
377/* 102 */ NdrFcLong( 0x0 ), /* 0 */
378/* 106 */ NdrFcShort( 0xb ), /* 11 */
379#ifndef _ALPHA_
380/* 108 */ NdrFcShort( 0xc ), /* x86, MIPS, PPC Stack size/offset = 12 */
381#else
382 NdrFcShort( 0x18 ), /* Alpha Stack size/offset = 24 */
383#endif
384/* 110 */ NdrFcShort( 0x0 ), /* 0 */
385/* 112 */ NdrFcShort( 0x10 ), /* 16 */
386/* 114 */ 0x4, /* Oi2 Flags: has return, */
387 0x2, /* 2 */
388
389 /* Parameter pVal */
390
391/* 116 */ NdrFcShort( 0x2150 ), /* Flags: out, base type, simple ref, srv alloc size=8 */
392#ifndef _ALPHA_
393/* 118 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
394#else
395 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
396#endif
397/* 120 */ 0x8, /* FC_LONG */
398 0x0, /* 0 */
399
400 /* Return value */
401
402/* 122 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
403#ifndef _ALPHA_
404/* 124 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
405#else
406 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
407#endif
408/* 126 */ 0x8, /* FC_LONG */
409 0x0, /* 0 */
410
411 /* Procedure get_Param */
412
413/* 128 */ 0x33, /* FC_AUTO_HANDLE */
414 0x6c, /* Old Flags: object, Oi2 */
415/* 130 */ NdrFcLong( 0x0 ), /* 0 */
416/* 134 */ NdrFcShort( 0xc ), /* 12 */
417#ifndef _ALPHA_
418/* 136 */ NdrFcShort( 0x10 ), /* x86, MIPS, PPC Stack size/offset = 16 */
419#else
420 NdrFcShort( 0x20 ), /* Alpha Stack size/offset = 32 */
421#endif
422/* 138 */ NdrFcShort( 0x8 ), /* 8 */
423/* 140 */ NdrFcShort( 0x10 ), /* 16 */
424/* 142 */ 0x4, /* Oi2 Flags: has return, */
425 0x3, /* 3 */
426
427 /* Parameter index */
428
429/* 144 */ NdrFcShort( 0x48 ), /* Flags: in, base type, */
430#ifndef _ALPHA_
431/* 146 */ NdrFcShort( 0x4 ), /* x86, MIPS, PPC Stack size/offset = 4 */
432#else
433 NdrFcShort( 0x8 ), /* Alpha Stack size/offset = 8 */
434#endif
435/* 148 */ 0x8, /* FC_LONG */
436 0x0, /* 0 */
437
438 /* Parameter pVal */
439
440/* 150 */ NdrFcShort( 0x2150 ), /* Flags: out, base type, simple ref, srv alloc size=8 */
441#ifndef _ALPHA_
442/* 152 */ NdrFcShort( 0x8 ), /* x86, MIPS, PPC Stack size/offset = 8 */
443#else
444 NdrFcShort( 0x10 ), /* Alpha Stack size/offset = 16 */
445#endif
446/* 154 */ 0x8, /* FC_LONG */
447 0x0, /* 0 */
448
449 /* Return value */
450
451/* 156 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
452#ifndef _ALPHA_
453/* 158 */ NdrFcShort( 0xc ), /* x86, MIPS, PPC Stack size/offset = 12 */
454#else
455 NdrFcShort( 0x18 ), /* Alpha Stack size/offset = 24 */
456#endif
457/* 160 */ 0x8, /* FC_LONG */
458 0x0, /* 0 */
459
460 0x0
461 }
462 };
463
464static const MIDL_TYPE_FORMAT_STRING __MIDL_TypeFormatString =
465 {
466 0,
467 {
468 NdrFcShort( 0x0 ), /* 0 */
469/* 2 */
470 0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
471/* 4 */ 0x8, /* FC_LONG */
472 0x5c, /* FC_PAD */
473
474 0x0
475 }
476 };
477
478const CInterfaceProxyVtbl * _watcher_ProxyVtblList[] =
479{
480 ( CInterfaceProxyVtbl *) &_IKernelLogControlProxyVtbl,
481 0
482};
483
484const CInterfaceStubVtbl * _watcher_StubVtblList[] =
485{
486 ( CInterfaceStubVtbl *) &_IKernelLogControlStubVtbl,
487 0
488};
489
490PCInterfaceName const _watcher_InterfaceNamesList[] =
491{
492 "IKernelLogControl",
493 0
494};
495
496const IID * _watcher_BaseIIDList[] =
497{
498 &IID_IDispatch,
499 0
500};
501
502
503#define _watcher_CHECK_IID(n) IID_GENERIC_CHECK_IID( _watcher, pIID, n)
504
505int __stdcall _watcher_IID_Lookup( const IID * pIID, int * pIndex )
506{
507
508 if(!_watcher_CHECK_IID(0))
509 {
510 *pIndex = 0;
511 return 1;
512 }
513
514 return 0;
515}
516
517const ExtendedProxyFileInfo watcher_ProxyFileInfo =
518{
519 (PCInterfaceProxyVtblList *) & _watcher_ProxyVtblList,
520 (PCInterfaceStubVtblList *) & _watcher_StubVtblList,
521 (const PCInterfaceName * ) & _watcher_InterfaceNamesList,
522 (const IID ** ) & _watcher_BaseIIDList,
523 & _watcher_IID_Lookup,
524 1,
525 2,
526 0, /* table of [async_uuid] interfaces */
527 0, /* Filler1 */
528 0, /* Filler2 */
529 0 /* Filler3 */
530};
Note: See TracBrowser for help on using the repository browser.