KMSServer_s2_mingw_gcc.c 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. /* this ALWAYS GENERATED file contains the RPC server stubs */
  2. /* WARNING! manually edited by Hotbird64 to work with MingW */
  3. /* File created by MIDL compiler version 8.00.0595 */
  4. /* at Thu Oct 18 15:24:14 2012
  5. */
  6. /* Compiler settings for KMSServer.idl:
  7. Oicf, W1, Zp8, env=Win32 (32b run), target_arch=X86 8.00.0595
  8. protocol : dce , ms_ext, c_ext, robust
  9. error checks: allocation ref bounds_check enum stub_data
  10. VC __declspec() decoration level:
  11. __declspec(uuid()), __declspec(selectany), __declspec(novtable)
  12. DECLSPEC_UUID(), MIDL_INTERFACE()
  13. */
  14. /* @@MIDL_FILE_HEADING( ) */
  15. #if !defined(_M_IA64) && !defined(_M_AMD64) && !defined(_ARM_)
  16. #pragma warning( disable: 4049 ) /* more than 64k source lines */
  17. #if _MSC_VER >= 1200
  18. #pragma warning(push)
  19. #endif
  20. #pragma warning( disable: 4211 ) /* redefine extern to static */
  21. #pragma warning( disable: 4232 ) /* dllimport identity*/
  22. #pragma warning( disable: 4024 ) /* array to pointer mapping*/
  23. #pragma warning( disable: 4100 ) /* unreferenced arguments in x86 call */
  24. #pragma optimize("", off )
  25. #include <string.h>
  26. #include "KMSServer_h.h"
  27. #define TYPE_FORMAT_STRING_SIZE 43
  28. #define PROC_FORMAT_STRING_SIZE 59
  29. #define EXPR_FORMAT_STRING_SIZE 1
  30. #define TRANSMIT_AS_TABLE_SIZE 0
  31. #define WIRE_MARSHAL_TABLE_SIZE 0
  32. typedef struct _KMSServer_MIDL_TYPE_FORMAT_STRING
  33. {
  34. short Pad;
  35. unsigned char Format[ TYPE_FORMAT_STRING_SIZE ];
  36. } KMSServer_MIDL_TYPE_FORMAT_STRING;
  37. typedef struct _KMSServer_MIDL_PROC_FORMAT_STRING
  38. {
  39. short Pad;
  40. unsigned char Format[ PROC_FORMAT_STRING_SIZE ];
  41. } KMSServer_MIDL_PROC_FORMAT_STRING;
  42. typedef struct _KMSServer_MIDL_EXPR_FORMAT_STRING
  43. {
  44. long Pad;
  45. unsigned char Format[ EXPR_FORMAT_STRING_SIZE ];
  46. } KMSServer_MIDL_EXPR_FORMAT_STRING;
  47. static const RPC_SYNTAX_IDENTIFIER _RpcTransferSyntax =
  48. {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}};
  49. extern const KMSServer_MIDL_TYPE_FORMAT_STRING KMSServer__MIDL_TypeFormatString;
  50. extern const KMSServer_MIDL_PROC_FORMAT_STRING KMSServer__MIDL_ProcFormatString;
  51. extern const KMSServer_MIDL_EXPR_FORMAT_STRING KMSServer__MIDL_ExprFormatString;
  52. /* Standard interface: KMSServer, ver. 1.0,
  53. GUID={0x51C82175,0x844E,0x4750,{0xB0,0xD8,0xEC,0x25,0x55,0x55,0xBC,0x06}} */
  54. extern const MIDL_SERVER_INFO KMSServer_ServerInfo;
  55. extern const RPC_DISPATCH_TABLE KMSServer_v1_0_DispatchTable;
  56. int ProcessActivationRequest(
  57. /* [in] */ handle_t IDL_handle,
  58. /* [in] */ int requestSize,
  59. /* [size_is][in] */ unsigned char *request,
  60. /* [out] */ int *responseSize,
  61. /* [size_is][size_is][out] */ unsigned char **response);
  62. static const RPC_SERVER_INTERFACE KMSServer___RpcServerInterface =
  63. {
  64. sizeof(RPC_SERVER_INTERFACE),
  65. {{0x51C82175,0x844E,0x4750,{0xB0,0xD8,0xEC,0x25,0x55,0x55,0xBC,0x06}},{1,0}},
  66. {{0x8A885D04,0x1CEB,0x11C9,{0x9F,0xE8,0x08,0x00,0x2B,0x10,0x48,0x60}},{2,0}},
  67. (RPC_DISPATCH_TABLE*)&KMSServer_v1_0_DispatchTable,
  68. 0,
  69. 0,
  70. 0,
  71. &KMSServer_ServerInfo,
  72. 0x04000000
  73. };
  74. RPC_IF_HANDLE KMSServer_v1_0_s_ifspec = (RPC_IF_HANDLE)& KMSServer___RpcServerInterface;
  75. extern const MIDL_STUB_DESC KMSServer_StubDesc;
  76. #if !defined(__RPC_WIN32__)
  77. #error Invalid build platform for this stub.
  78. #endif
  79. #if !(TARGET_IS_NT50_OR_LATER)
  80. #error You need Windows 2000 or later to run this stub because it uses these features:
  81. #error /robust command line switch.
  82. #error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
  83. #error This app will fail with the RPC_X_WRONG_STUB_VERSION error.
  84. #endif
  85. const KMSServer_MIDL_PROC_FORMAT_STRING KMSServer__MIDL_ProcFormatString =
  86. {
  87. 0,
  88. {
  89. /* Procedure RequestActivation */
  90. 0x0, /* 0 */
  91. 0x48, /* Old Flags: */
  92. /* 2 */ NdrFcLong( 0x0 ), /* 0 */
  93. /* 6 */ NdrFcShort( 0x0 ), /* 0 */
  94. /* 8 */ NdrFcShort( 0x18 ), /* x86 Stack size/offset = 24 */
  95. /* 10 */ 0x32, /* FC_BIND_PRIMITIVE */
  96. 0x0, /* 0 */
  97. /* 12 */ NdrFcShort( 0x0 ), /* x86 Stack size/offset = 0 */
  98. /* 14 */ NdrFcShort( 0x8 ), /* 8 */
  99. /* 16 */ NdrFcShort( 0x24 ), /* 36 */
  100. /* 18 */ 0x47, /* Oi2 Flags: srv must size, clt must size, has return, has ext, */
  101. 0x5, /* 5 */
  102. /* 20 */ 0x8, /* 8 */
  103. 0x7, /* Ext Flags: new corr desc, clt corr check, srv corr check, */
  104. /* 22 */ NdrFcShort( 0x1 ), /* 1 */
  105. /* 24 */ NdrFcShort( 0x1 ), /* 1 */
  106. /* 26 */ NdrFcShort( 0x0 ), /* 0 */
  107. /* Parameter IDL_handle */
  108. /* 28 */ NdrFcShort( 0x48 ), /* Flags: in, base type, */
  109. /* 30 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
  110. /* 32 */ 0x8, /* FC_LONG */
  111. 0x0, /* 0 */
  112. /* Parameter requestSize */
  113. /* 34 */ NdrFcShort( 0x10b ), /* Flags: must size, must free, in, simple ref, */
  114. /* 36 */ NdrFcShort( 0x8 ), /* x86 Stack size/offset = 8 */
  115. /* 38 */ NdrFcShort( 0x6 ), /* Type Offset=6 */
  116. /* Parameter request */
  117. /* 40 */ NdrFcShort( 0x2150 ), /* Flags: out, base type, simple ref, srv alloc size=8 */
  118. /* 42 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
  119. /* 44 */ 0x8, /* FC_LONG */
  120. 0x0, /* 0 */
  121. /* Parameter responseSize */
  122. /* 46 */ NdrFcShort( 0x2013 ), /* Flags: must size, must free, out, srv alloc size=8 */
  123. /* 48 */ NdrFcShort( 0x10 ), /* x86 Stack size/offset = 16 */
  124. /* 50 */ NdrFcShort( 0x16 ), /* Type Offset=22 */
  125. /* Parameter response */
  126. /* 52 */ NdrFcShort( 0x70 ), /* Flags: out, return, base type, */
  127. /* 54 */ NdrFcShort( 0x14 ), /* x86 Stack size/offset = 20 */
  128. /* 56 */ 0x8, /* FC_LONG */
  129. 0x0, /* 0 */
  130. 0x0
  131. }
  132. };
  133. const KMSServer_MIDL_TYPE_FORMAT_STRING KMSServer__MIDL_TypeFormatString =
  134. {
  135. 0,
  136. {
  137. NdrFcShort( 0x0 ), /* 0 */
  138. /* 2 */
  139. 0x11, 0x0, /* FC_RP */
  140. /* 4 */ NdrFcShort( 0x2 ), /* Offset= 2 (6) */
  141. /* 6 */
  142. 0x1b, /* FC_CARRAY */
  143. 0x0, /* 0 */
  144. /* 8 */ NdrFcShort( 0x1 ), /* 1 */
  145. /* 10 */ 0x28, /* Corr desc: parameter, FC_LONG */
  146. 0x0, /* */
  147. /* 12 */ NdrFcShort( 0x4 ), /* x86 Stack size/offset = 4 */
  148. /* 14 */ NdrFcShort( 0x1 ), /* Corr flags: early, */
  149. /* 16 */ 0x2, /* FC_CHAR */
  150. 0x5b, /* FC_END */
  151. /* 18 */
  152. 0x11, 0xc, /* FC_RP [alloced_on_stack] [simple_pointer] */
  153. /* 20 */ 0x8, /* FC_LONG */
  154. 0x5c, /* FC_PAD */
  155. /* 22 */
  156. 0x11, 0x14, /* FC_RP [alloced_on_stack] [pointer_deref] */
  157. /* 24 */ NdrFcShort( 0x2 ), /* Offset= 2 (26) */
  158. /* 26 */
  159. 0x12, 0x0, /* FC_UP */
  160. /* 28 */ NdrFcShort( 0x2 ), /* Offset= 2 (30) */
  161. /* 30 */
  162. 0x1b, /* FC_CARRAY */
  163. 0x0, /* 0 */
  164. /* 32 */ NdrFcShort( 0x1 ), /* 1 */
  165. /* 34 */ 0x28, /* Corr desc: parameter, FC_LONG */
  166. 0x54, /* FC_DEREFERENCE */
  167. /* 36 */ NdrFcShort( 0xc ), /* x86 Stack size/offset = 12 */
  168. /* 38 */ NdrFcShort( 0x1 ), /* Corr flags: early, */
  169. /* 40 */ 0x2, /* FC_CHAR */
  170. 0x5b, /* FC_END */
  171. 0x0
  172. }
  173. };
  174. static const unsigned short KMSServer_FormatStringOffsetTable[] =
  175. {
  176. 0
  177. };
  178. typedef void *(__RPC_API *midl_allocate_t)(size_t);
  179. const MIDL_STUB_DESC KMSServer_StubDesc =
  180. {
  181. (void *)& KMSServer___RpcServerInterface,
  182. (midl_allocate_t)MIDL_user_allocate,
  183. MIDL_user_free,
  184. 0,
  185. 0,
  186. 0,
  187. 0,
  188. 0,
  189. KMSServer__MIDL_TypeFormatString.Format,
  190. 1, /* -error bounds_check flag */
  191. 0x50002, /* Ndr library version */
  192. 0,
  193. 0x8000253, /* MIDL Version 8.0.595 */
  194. 0,
  195. 0,
  196. 0, /* notify & notify_flag routine table */
  197. 0x1, /* MIDL flag */
  198. 0, /* cs routines */
  199. 0, /* proxy/server info */
  200. 0
  201. };
  202. static const RPC_DISPATCH_FUNCTION KMSServer_table[] =
  203. {
  204. NdrServerCall2,
  205. 0
  206. };
  207. const RPC_DISPATCH_TABLE KMSServer_v1_0_DispatchTable =
  208. {
  209. 1,
  210. (RPC_DISPATCH_FUNCTION*)KMSServer_table
  211. };
  212. static const SERVER_ROUTINE KMSServer_ServerRoutineTable[] =
  213. {
  214. (SERVER_ROUTINE)ProcessActivationRequest
  215. };
  216. const MIDL_SERVER_INFO KMSServer_ServerInfo =
  217. {
  218. &KMSServer_StubDesc,
  219. KMSServer_ServerRoutineTable,
  220. KMSServer__MIDL_ProcFormatString.Format,
  221. KMSServer_FormatStringOffsetTable,
  222. 0,
  223. 0,
  224. 0,
  225. 0};
  226. #pragma optimize("", on )
  227. #if _MSC_VER >= 1200
  228. #pragma warning(pop)
  229. #endif
  230. #endif /* !defined(_M_IA64) && !defined(_M_AMD64) && !defined(_ARM_) */