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