| OLD | NEW |
| 1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
| 2 // pump.py dispatch_win.h.pump | 2 // pump.py dispatch_win.h.pump |
| 3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
| 4 | 4 |
| 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 5 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 6 // Use of this source code is governed by a BSD-style license that can be | 6 // Use of this source code is governed by a BSD-style license that can be |
| 7 // found in the LICENSE file. | 7 // found in the LICENSE file. |
| 8 | 8 |
| 9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 9 #ifndef REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| 10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 10 #define REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 if (FAILED(hr)) | 127 if (FAILED(hr)) |
| 128 return hr; | 128 return hr; |
| 129 | 129 |
| 130 // Request the return value if asked by the caller. | 130 // Request the return value if asked by the caller. |
| 131 internal::ScopedVariantArg result; | 131 internal::ScopedVariantArg result; |
| 132 VARIANT* disp_result = NULL; | 132 VARIANT* disp_result = NULL; |
| 133 if (result_out != NULL) | 133 if (result_out != NULL) |
| 134 disp_result = &result; | 134 disp_result = &result; |
| 135 | 135 |
| 136 | 136 |
| 137 // Invoke the method. | 137 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 138 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 139 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 140 // structure members should be initialized. |
| 138 DISPPARAMS disp_params = { NULL, NULL, 0, 0 }; | 141 DISPPARAMS disp_params = { NULL, NULL, 0, 0 }; |
| 142 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 143 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 144 disp_params.cNamedArgs = 1; |
| 145 disp_params.rgdispidNamedArgs = &dispid_named; |
| 146 } |
| 147 |
| 139 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 148 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 140 &disp_params, disp_result, NULL, NULL); | 149 &disp_params, disp_result, NULL, NULL); |
| 141 if (FAILED(hr)) | 150 if (FAILED(hr)) |
| 142 return hr; | 151 return hr; |
| 143 | 152 |
| 144 | 153 |
| 145 // Unwrap the return value. | 154 // Unwrap the return value. |
| 146 if (result_out != NULL) { | 155 if (result_out != NULL) { |
| 147 result.Unwrap(result_out); | 156 result.Unwrap(result_out); |
| 148 } | 157 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 168 VARIANT* disp_result = NULL; | 177 VARIANT* disp_result = NULL; |
| 169 if (result_out != NULL) | 178 if (result_out != NULL) |
| 170 disp_result = &result; | 179 disp_result = &result; |
| 171 | 180 |
| 172 // Wrap the parameters into an array of VARIANT structures. | 181 // Wrap the parameters into an array of VARIANT structures. |
| 173 internal::ScopedVariantArg disp_args[1]; | 182 internal::ScopedVariantArg disp_args[1]; |
| 174 hr = disp_args[1 - 1].Wrap(p1); | 183 hr = disp_args[1 - 1].Wrap(p1); |
| 175 if (FAILED(hr)) | 184 if (FAILED(hr)) |
| 176 return hr; | 185 return hr; |
| 177 | 186 |
| 178 // Invoke the method. | 187 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 188 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 189 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 190 // structure members should be initialized. |
| 179 DISPPARAMS disp_params = { disp_args, NULL, 1, 0 }; | 191 DISPPARAMS disp_params = { disp_args, NULL, 1, 0 }; |
| 192 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 193 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 194 disp_params.cNamedArgs = 1; |
| 195 disp_params.rgdispidNamedArgs = &dispid_named; |
| 196 } |
| 197 |
| 180 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 198 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 181 &disp_params, disp_result, NULL, NULL); | 199 &disp_params, disp_result, NULL, NULL); |
| 182 if (FAILED(hr)) | 200 if (FAILED(hr)) |
| 183 return hr; | 201 return hr; |
| 184 | 202 |
| 185 // Unwrap the parameters. | 203 // Unwrap the parameters. |
| 186 disp_args[1 - 1].Unwrap(p1); | 204 disp_args[1 - 1].Unwrap(p1); |
| 187 | 205 |
| 188 // Unwrap the return value. | 206 // Unwrap the return value. |
| 189 if (result_out != NULL) { | 207 if (result_out != NULL) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 215 | 233 |
| 216 // Wrap the parameters into an array of VARIANT structures. | 234 // Wrap the parameters into an array of VARIANT structures. |
| 217 internal::ScopedVariantArg disp_args[2]; | 235 internal::ScopedVariantArg disp_args[2]; |
| 218 hr = disp_args[2 - 1].Wrap(p1); | 236 hr = disp_args[2 - 1].Wrap(p1); |
| 219 if (FAILED(hr)) | 237 if (FAILED(hr)) |
| 220 return hr; | 238 return hr; |
| 221 hr = disp_args[2 - 2].Wrap(p2); | 239 hr = disp_args[2 - 2].Wrap(p2); |
| 222 if (FAILED(hr)) | 240 if (FAILED(hr)) |
| 223 return hr; | 241 return hr; |
| 224 | 242 |
| 225 // Invoke the method. | 243 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 244 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 245 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 246 // structure members should be initialized. |
| 226 DISPPARAMS disp_params = { disp_args, NULL, 2, 0 }; | 247 DISPPARAMS disp_params = { disp_args, NULL, 2, 0 }; |
| 248 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 249 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 250 disp_params.cNamedArgs = 1; |
| 251 disp_params.rgdispidNamedArgs = &dispid_named; |
| 252 } |
| 253 |
| 227 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 254 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 228 &disp_params, disp_result, NULL, NULL); | 255 &disp_params, disp_result, NULL, NULL); |
| 229 if (FAILED(hr)) | 256 if (FAILED(hr)) |
| 230 return hr; | 257 return hr; |
| 231 | 258 |
| 232 // Unwrap the parameters. | 259 // Unwrap the parameters. |
| 233 disp_args[2 - 1].Unwrap(p1); | 260 disp_args[2 - 1].Unwrap(p1); |
| 234 disp_args[2 - 2].Unwrap(p2); | 261 disp_args[2 - 2].Unwrap(p2); |
| 235 | 262 |
| 236 // Unwrap the return value. | 263 // Unwrap the return value. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 267 hr = disp_args[3 - 1].Wrap(p1); | 294 hr = disp_args[3 - 1].Wrap(p1); |
| 268 if (FAILED(hr)) | 295 if (FAILED(hr)) |
| 269 return hr; | 296 return hr; |
| 270 hr = disp_args[3 - 2].Wrap(p2); | 297 hr = disp_args[3 - 2].Wrap(p2); |
| 271 if (FAILED(hr)) | 298 if (FAILED(hr)) |
| 272 return hr; | 299 return hr; |
| 273 hr = disp_args[3 - 3].Wrap(p3); | 300 hr = disp_args[3 - 3].Wrap(p3); |
| 274 if (FAILED(hr)) | 301 if (FAILED(hr)) |
| 275 return hr; | 302 return hr; |
| 276 | 303 |
| 277 // Invoke the method. | 304 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 305 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 306 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 307 // structure members should be initialized. |
| 278 DISPPARAMS disp_params = { disp_args, NULL, 3, 0 }; | 308 DISPPARAMS disp_params = { disp_args, NULL, 3, 0 }; |
| 309 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 310 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 311 disp_params.cNamedArgs = 1; |
| 312 disp_params.rgdispidNamedArgs = &dispid_named; |
| 313 } |
| 314 |
| 279 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 315 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 280 &disp_params, disp_result, NULL, NULL); | 316 &disp_params, disp_result, NULL, NULL); |
| 281 if (FAILED(hr)) | 317 if (FAILED(hr)) |
| 282 return hr; | 318 return hr; |
| 283 | 319 |
| 284 // Unwrap the parameters. | 320 // Unwrap the parameters. |
| 285 disp_args[3 - 1].Unwrap(p1); | 321 disp_args[3 - 1].Unwrap(p1); |
| 286 disp_args[3 - 2].Unwrap(p2); | 322 disp_args[3 - 2].Unwrap(p2); |
| 287 disp_args[3 - 3].Unwrap(p3); | 323 disp_args[3 - 3].Unwrap(p3); |
| 288 | 324 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 hr = disp_args[4 - 2].Wrap(p2); | 360 hr = disp_args[4 - 2].Wrap(p2); |
| 325 if (FAILED(hr)) | 361 if (FAILED(hr)) |
| 326 return hr; | 362 return hr; |
| 327 hr = disp_args[4 - 3].Wrap(p3); | 363 hr = disp_args[4 - 3].Wrap(p3); |
| 328 if (FAILED(hr)) | 364 if (FAILED(hr)) |
| 329 return hr; | 365 return hr; |
| 330 hr = disp_args[4 - 4].Wrap(p4); | 366 hr = disp_args[4 - 4].Wrap(p4); |
| 331 if (FAILED(hr)) | 367 if (FAILED(hr)) |
| 332 return hr; | 368 return hr; |
| 333 | 369 |
| 334 // Invoke the method. | 370 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 371 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 372 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 373 // structure members should be initialized. |
| 335 DISPPARAMS disp_params = { disp_args, NULL, 4, 0 }; | 374 DISPPARAMS disp_params = { disp_args, NULL, 4, 0 }; |
| 375 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 376 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 377 disp_params.cNamedArgs = 1; |
| 378 disp_params.rgdispidNamedArgs = &dispid_named; |
| 379 } |
| 380 |
| 336 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 381 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 337 &disp_params, disp_result, NULL, NULL); | 382 &disp_params, disp_result, NULL, NULL); |
| 338 if (FAILED(hr)) | 383 if (FAILED(hr)) |
| 339 return hr; | 384 return hr; |
| 340 | 385 |
| 341 // Unwrap the parameters. | 386 // Unwrap the parameters. |
| 342 disp_args[4 - 1].Unwrap(p1); | 387 disp_args[4 - 1].Unwrap(p1); |
| 343 disp_args[4 - 2].Unwrap(p2); | 388 disp_args[4 - 2].Unwrap(p2); |
| 344 disp_args[4 - 3].Unwrap(p3); | 389 disp_args[4 - 3].Unwrap(p3); |
| 345 disp_args[4 - 4].Unwrap(p4); | 390 disp_args[4 - 4].Unwrap(p4); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 hr = disp_args[5 - 3].Wrap(p3); | 431 hr = disp_args[5 - 3].Wrap(p3); |
| 387 if (FAILED(hr)) | 432 if (FAILED(hr)) |
| 388 return hr; | 433 return hr; |
| 389 hr = disp_args[5 - 4].Wrap(p4); | 434 hr = disp_args[5 - 4].Wrap(p4); |
| 390 if (FAILED(hr)) | 435 if (FAILED(hr)) |
| 391 return hr; | 436 return hr; |
| 392 hr = disp_args[5 - 5].Wrap(p5); | 437 hr = disp_args[5 - 5].Wrap(p5); |
| 393 if (FAILED(hr)) | 438 if (FAILED(hr)) |
| 394 return hr; | 439 return hr; |
| 395 | 440 |
| 396 // Invoke the method. | 441 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 442 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 443 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 444 // structure members should be initialized. |
| 397 DISPPARAMS disp_params = { disp_args, NULL, 5, 0 }; | 445 DISPPARAMS disp_params = { disp_args, NULL, 5, 0 }; |
| 446 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 447 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 448 disp_params.cNamedArgs = 1; |
| 449 disp_params.rgdispidNamedArgs = &dispid_named; |
| 450 } |
| 451 |
| 398 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 452 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 399 &disp_params, disp_result, NULL, NULL); | 453 &disp_params, disp_result, NULL, NULL); |
| 400 if (FAILED(hr)) | 454 if (FAILED(hr)) |
| 401 return hr; | 455 return hr; |
| 402 | 456 |
| 403 // Unwrap the parameters. | 457 // Unwrap the parameters. |
| 404 disp_args[5 - 1].Unwrap(p1); | 458 disp_args[5 - 1].Unwrap(p1); |
| 405 disp_args[5 - 2].Unwrap(p2); | 459 disp_args[5 - 2].Unwrap(p2); |
| 406 disp_args[5 - 3].Unwrap(p3); | 460 disp_args[5 - 3].Unwrap(p3); |
| 407 disp_args[5 - 4].Unwrap(p4); | 461 disp_args[5 - 4].Unwrap(p4); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 454 hr = disp_args[6 - 4].Wrap(p4); | 508 hr = disp_args[6 - 4].Wrap(p4); |
| 455 if (FAILED(hr)) | 509 if (FAILED(hr)) |
| 456 return hr; | 510 return hr; |
| 457 hr = disp_args[6 - 5].Wrap(p5); | 511 hr = disp_args[6 - 5].Wrap(p5); |
| 458 if (FAILED(hr)) | 512 if (FAILED(hr)) |
| 459 return hr; | 513 return hr; |
| 460 hr = disp_args[6 - 6].Wrap(p6); | 514 hr = disp_args[6 - 6].Wrap(p6); |
| 461 if (FAILED(hr)) | 515 if (FAILED(hr)) |
| 462 return hr; | 516 return hr; |
| 463 | 517 |
| 464 // Invoke the method. | 518 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 519 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 520 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 521 // structure members should be initialized. |
| 465 DISPPARAMS disp_params = { disp_args, NULL, 6, 0 }; | 522 DISPPARAMS disp_params = { disp_args, NULL, 6, 0 }; |
| 523 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 524 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 525 disp_params.cNamedArgs = 1; |
| 526 disp_params.rgdispidNamedArgs = &dispid_named; |
| 527 } |
| 528 |
| 466 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 529 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 467 &disp_params, disp_result, NULL, NULL); | 530 &disp_params, disp_result, NULL, NULL); |
| 468 if (FAILED(hr)) | 531 if (FAILED(hr)) |
| 469 return hr; | 532 return hr; |
| 470 | 533 |
| 471 // Unwrap the parameters. | 534 // Unwrap the parameters. |
| 472 disp_args[6 - 1].Unwrap(p1); | 535 disp_args[6 - 1].Unwrap(p1); |
| 473 disp_args[6 - 2].Unwrap(p2); | 536 disp_args[6 - 2].Unwrap(p2); |
| 474 disp_args[6 - 3].Unwrap(p3); | 537 disp_args[6 - 3].Unwrap(p3); |
| 475 disp_args[6 - 4].Unwrap(p4); | 538 disp_args[6 - 4].Unwrap(p4); |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 hr = disp_args[7 - 5].Wrap(p5); | 590 hr = disp_args[7 - 5].Wrap(p5); |
| 528 if (FAILED(hr)) | 591 if (FAILED(hr)) |
| 529 return hr; | 592 return hr; |
| 530 hr = disp_args[7 - 6].Wrap(p6); | 593 hr = disp_args[7 - 6].Wrap(p6); |
| 531 if (FAILED(hr)) | 594 if (FAILED(hr)) |
| 532 return hr; | 595 return hr; |
| 533 hr = disp_args[7 - 7].Wrap(p7); | 596 hr = disp_args[7 - 7].Wrap(p7); |
| 534 if (FAILED(hr)) | 597 if (FAILED(hr)) |
| 535 return hr; | 598 return hr; |
| 536 | 599 |
| 537 // Invoke the method. | 600 // Invoke the method passing the parameters via the DISPPARAMS structure. |
| 601 // DISPATCH_PROPERTYPUT and DISPATCH_PROPERTYPUTREF require the parameter of |
| 602 // the property setter to be named, so |cNamedArgs| and |rgdispidNamedArgs| |
| 603 // structure members should be initialized. |
| 538 DISPPARAMS disp_params = { disp_args, NULL, 7, 0 }; | 604 DISPPARAMS disp_params = { disp_args, NULL, 7, 0 }; |
| 605 DISPID dispid_named = DISPID_PROPERTYPUT; |
| 606 if (flags == DISPATCH_PROPERTYPUT || flags == DISPATCH_PROPERTYPUTREF) { |
| 607 disp_params.cNamedArgs = 1; |
| 608 disp_params.rgdispidNamedArgs = &dispid_named; |
| 609 } |
| 610 |
| 539 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, | 611 hr = object->Invoke(disp_id, IID_NULL, LOCALE_USER_DEFAULT, flags, |
| 540 &disp_params, disp_result, NULL, NULL); | 612 &disp_params, disp_result, NULL, NULL); |
| 541 if (FAILED(hr)) | 613 if (FAILED(hr)) |
| 542 return hr; | 614 return hr; |
| 543 | 615 |
| 544 // Unwrap the parameters. | 616 // Unwrap the parameters. |
| 545 disp_args[7 - 1].Unwrap(p1); | 617 disp_args[7 - 1].Unwrap(p1); |
| 546 disp_args[7 - 2].Unwrap(p2); | 618 disp_args[7 - 2].Unwrap(p2); |
| 547 disp_args[7 - 3].Unwrap(p3); | 619 disp_args[7 - 3].Unwrap(p3); |
| 548 disp_args[7 - 4].Unwrap(p4); | 620 disp_args[7 - 4].Unwrap(p4); |
| 549 disp_args[7 - 5].Unwrap(p5); | 621 disp_args[7 - 5].Unwrap(p5); |
| 550 disp_args[7 - 6].Unwrap(p6); | 622 disp_args[7 - 6].Unwrap(p6); |
| 551 disp_args[7 - 7].Unwrap(p7); | 623 disp_args[7 - 7].Unwrap(p7); |
| 552 | 624 |
| 553 // Unwrap the return value. | 625 // Unwrap the return value. |
| 554 if (result_out != NULL) { | 626 if (result_out != NULL) { |
| 555 result.Unwrap(result_out); | 627 result.Unwrap(result_out); |
| 556 } | 628 } |
| 557 | 629 |
| 558 return S_OK; | 630 return S_OK; |
| 559 } | 631 } |
| 560 | 632 |
| 561 } // namespace dispatch | 633 } // namespace dispatch |
| 562 | 634 |
| 563 } // namespace remoting | 635 } // namespace remoting |
| 564 | 636 |
| 565 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ | 637 #endif // REMOTING_BASE_IDISPATCH_DRIVER_WIN_H_ |
| OLD | NEW |