/usr/share/mingw-w64/include/sensorsapi.h is in mingw-w64-common 4.0.4-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 | /*** Autogenerated by WIDL 1.6 from include/sensorsapi.idl - Do not edit ***/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __sensorsapi_h__
#define __sensorsapi_h__
/* Forward declarations */
#ifndef __ISensorManager_FWD_DEFINED__
#define __ISensorManager_FWD_DEFINED__
typedef interface ISensorManager ISensorManager;
#endif
#ifndef __ISensorCollection_FWD_DEFINED__
#define __ISensorCollection_FWD_DEFINED__
typedef interface ISensorCollection ISensorCollection;
#endif
#ifndef __ISensor_FWD_DEFINED__
#define __ISensor_FWD_DEFINED__
typedef interface ISensor ISensor;
#endif
#ifndef __ISensorDataReport_FWD_DEFINED__
#define __ISensorDataReport_FWD_DEFINED__
typedef interface ISensorDataReport ISensorDataReport;
#endif
#ifndef __ISensorManagerEvents_FWD_DEFINED__
#define __ISensorManagerEvents_FWD_DEFINED__
typedef interface ISensorManagerEvents ISensorManagerEvents;
#endif
#ifndef __ISensorEvents_FWD_DEFINED__
#define __ISensorEvents_FWD_DEFINED__
typedef interface ISensorEvents ISensorEvents;
#endif
#ifndef __SensorManager_FWD_DEFINED__
#define __SensorManager_FWD_DEFINED__
#ifdef __cplusplus
typedef class SensorManager SensorManager;
#else
typedef struct SensorManager SensorManager;
#endif /* defined __cplusplus */
#endif /* defined __SensorManager_FWD_DEFINED__ */
/* Headers for imported files */
#include <oaidl.h>
#include <ocidl.h>
#include <propsys.h>
#include <portabledevicetypes.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef enum __WIDL_sensorsapi_generated_name_00000013 {
SENSOR_STATE_MIN = 0,
SENSOR_STATE_READY = SENSOR_STATE_MIN,
SENSOR_STATE_NOT_AVAILABLE = SENSOR_STATE_READY + 1,
SENSOR_STATE_NO_DATA = SENSOR_STATE_NOT_AVAILABLE + 1,
SENSOR_STATE_INITIALIZING = SENSOR_STATE_NO_DATA + 1,
SENSOR_STATE_ACCESS_DENIED = SENSOR_STATE_INITIALIZING + 1,
SENSOR_STATE_ERROR = SENSOR_STATE_ACCESS_DENIED + 1,
SENSOR_STATE_MAX = SENSOR_STATE_ERROR
} SensorState;
typedef enum __WIDL_sensorsapi_generated_name_00000014 {
SENSOR_CONNECTION_TYPE_PC_INTEGRATED = 0,
SENSOR_CONNECTION_TYPE_PC_ATTACHED = SENSOR_CONNECTION_TYPE_PC_INTEGRATED + 1,
SENSOR_CONNECTION_TYPE_PC_EXTERNAL = SENSOR_CONNECTION_TYPE_PC_ATTACHED + 1
} SensorConnectionType;
typedef enum LOCATION_DESIRED_ACCURACY {
LOCATION_DESIRED_ACCURACY_DEFAULT = 0,
LOCATION_DESIRED_ACCURACY_HIGH = LOCATION_DESIRED_ACCURACY_DEFAULT + 1
} LOCATION_DESIRED_ACCURACY;
typedef GUID SENSOR_CATEGORY_ID;
typedef REFGUID REFSENSOR_CATEGORY_ID;
typedef GUID SENSOR_TYPE_ID;
typedef REFGUID REFSENSOR_TYPE_ID;
typedef GUID SENSOR_ID;
typedef REFGUID REFSENSOR_ID;
#ifndef __ISensorCollection_FWD_DEFINED__
#define __ISensorCollection_FWD_DEFINED__
typedef interface ISensorCollection ISensorCollection;
#endif
#ifndef __ISensor_FWD_DEFINED__
#define __ISensor_FWD_DEFINED__
typedef interface ISensor ISensor;
#endif
#ifndef __ISensorDataReport_FWD_DEFINED__
#define __ISensorDataReport_FWD_DEFINED__
typedef interface ISensorDataReport ISensorDataReport;
#endif
#ifndef __ISensorManagerEvents_FWD_DEFINED__
#define __ISensorManagerEvents_FWD_DEFINED__
typedef interface ISensorManagerEvents ISensorManagerEvents;
#endif
#ifndef __ISensorEvents_FWD_DEFINED__
#define __ISensorEvents_FWD_DEFINED__
typedef interface ISensorEvents ISensorEvents;
#endif
/*****************************************************************************
* ISensorManager interface
*/
#ifndef __ISensorManager_INTERFACE_DEFINED__
#define __ISensorManager_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensorManager, 0xbd77db67, 0x45a8, 0x42dc, 0x8d,0x00, 0x6d,0xcf,0x15,0xf8,0x37,0x7a);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("bd77db67-45a8-42dc-8d00-6dcf15f8377a")
ISensorManager : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetSensorsByCategory(
REFSENSOR_CATEGORY_ID sensorCategory,
ISensorCollection **ppSensorsFound) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSensorsByType(
REFSENSOR_TYPE_ID sensorType,
ISensorCollection **ppSensorsFound) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSensorByID(
REFSENSOR_ID sensorID,
ISensor **ppSensor) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEventSink(
ISensorManagerEvents *pEvents) = 0;
virtual HRESULT STDMETHODCALLTYPE RequestPermissions(
HWND hParent,
ISensorCollection *pSensors,
WINBOOL fModal) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensorManager, 0xbd77db67, 0x45a8, 0x42dc, 0x8d,0x00, 0x6d,0xcf,0x15,0xf8,0x37,0x7a)
#endif
#else
typedef struct ISensorManagerVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensorManager* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensorManager* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensorManager* This);
/*** ISensorManager methods ***/
HRESULT (STDMETHODCALLTYPE *GetSensorsByCategory)(
ISensorManager* This,
REFSENSOR_CATEGORY_ID sensorCategory,
ISensorCollection **ppSensorsFound);
HRESULT (STDMETHODCALLTYPE *GetSensorsByType)(
ISensorManager* This,
REFSENSOR_TYPE_ID sensorType,
ISensorCollection **ppSensorsFound);
HRESULT (STDMETHODCALLTYPE *GetSensorByID)(
ISensorManager* This,
REFSENSOR_ID sensorID,
ISensor **ppSensor);
HRESULT (STDMETHODCALLTYPE *SetEventSink)(
ISensorManager* This,
ISensorManagerEvents *pEvents);
HRESULT (STDMETHODCALLTYPE *RequestPermissions)(
ISensorManager* This,
HWND hParent,
ISensorCollection *pSensors,
WINBOOL fModal);
END_INTERFACE
} ISensorManagerVtbl;
interface ISensorManager {
CONST_VTBL ISensorManagerVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensorManager_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensorManager_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensorManager_Release(This) (This)->lpVtbl->Release(This)
/*** ISensorManager methods ***/
#define ISensorManager_GetSensorsByCategory(This,sensorCategory,ppSensorsFound) (This)->lpVtbl->GetSensorsByCategory(This,sensorCategory,ppSensorsFound)
#define ISensorManager_GetSensorsByType(This,sensorType,ppSensorsFound) (This)->lpVtbl->GetSensorsByType(This,sensorType,ppSensorsFound)
#define ISensorManager_GetSensorByID(This,sensorID,ppSensor) (This)->lpVtbl->GetSensorByID(This,sensorID,ppSensor)
#define ISensorManager_SetEventSink(This,pEvents) (This)->lpVtbl->SetEventSink(This,pEvents)
#define ISensorManager_RequestPermissions(This,hParent,pSensors,fModal) (This)->lpVtbl->RequestPermissions(This,hParent,pSensors,fModal)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensorManager_QueryInterface(ISensorManager* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensorManager_AddRef(ISensorManager* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensorManager_Release(ISensorManager* This) {
return This->lpVtbl->Release(This);
}
/*** ISensorManager methods ***/
static FORCEINLINE HRESULT ISensorManager_GetSensorsByCategory(ISensorManager* This,REFSENSOR_CATEGORY_ID sensorCategory,ISensorCollection **ppSensorsFound) {
return This->lpVtbl->GetSensorsByCategory(This,sensorCategory,ppSensorsFound);
}
static FORCEINLINE HRESULT ISensorManager_GetSensorsByType(ISensorManager* This,REFSENSOR_TYPE_ID sensorType,ISensorCollection **ppSensorsFound) {
return This->lpVtbl->GetSensorsByType(This,sensorType,ppSensorsFound);
}
static FORCEINLINE HRESULT ISensorManager_GetSensorByID(ISensorManager* This,REFSENSOR_ID sensorID,ISensor **ppSensor) {
return This->lpVtbl->GetSensorByID(This,sensorID,ppSensor);
}
static FORCEINLINE HRESULT ISensorManager_SetEventSink(ISensorManager* This,ISensorManagerEvents *pEvents) {
return This->lpVtbl->SetEventSink(This,pEvents);
}
static FORCEINLINE HRESULT ISensorManager_RequestPermissions(ISensorManager* This,HWND hParent,ISensorCollection *pSensors,WINBOOL fModal) {
return This->lpVtbl->RequestPermissions(This,hParent,pSensors,fModal);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensorManager_GetSensorsByCategory_Proxy(
ISensorManager* This,
REFSENSOR_CATEGORY_ID sensorCategory,
ISensorCollection **ppSensorsFound);
void __RPC_STUB ISensorManager_GetSensorsByCategory_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorManager_GetSensorsByType_Proxy(
ISensorManager* This,
REFSENSOR_TYPE_ID sensorType,
ISensorCollection **ppSensorsFound);
void __RPC_STUB ISensorManager_GetSensorsByType_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorManager_GetSensorByID_Proxy(
ISensorManager* This,
REFSENSOR_ID sensorID,
ISensor **ppSensor);
void __RPC_STUB ISensorManager_GetSensorByID_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorManager_SetEventSink_Proxy(
ISensorManager* This,
ISensorManagerEvents *pEvents);
void __RPC_STUB ISensorManager_SetEventSink_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorManager_RequestPermissions_Proxy(
ISensorManager* This,
HWND hParent,
ISensorCollection *pSensors,
WINBOOL fModal);
void __RPC_STUB ISensorManager_RequestPermissions_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensorManager_INTERFACE_DEFINED__ */
/*****************************************************************************
* ISensorCollection interface
*/
#ifndef __ISensorCollection_INTERFACE_DEFINED__
#define __ISensorCollection_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensorCollection, 0x23571e11, 0xe545, 0x4dd8, 0xa3,0x37, 0xb8,0x9b,0xf4,0x4b,0x10,0xdf);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("23571e11-e545-4dd8-a337-b89bf44b10df")
ISensorCollection : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetAt(
ULONG ulIndex,
ISensor **ppSensor) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCount(
ULONG *pCount) = 0;
virtual HRESULT STDMETHODCALLTYPE Add(
ISensor *pSensor) = 0;
virtual HRESULT STDMETHODCALLTYPE Remove(
ISensor *pSensor) = 0;
virtual HRESULT STDMETHODCALLTYPE RemoveByID(
REFSENSOR_ID sensorID) = 0;
virtual HRESULT STDMETHODCALLTYPE Clear(
) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensorCollection, 0x23571e11, 0xe545, 0x4dd8, 0xa3,0x37, 0xb8,0x9b,0xf4,0x4b,0x10,0xdf)
#endif
#else
typedef struct ISensorCollectionVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensorCollection* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensorCollection* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensorCollection* This);
/*** ISensorCollection methods ***/
HRESULT (STDMETHODCALLTYPE *GetAt)(
ISensorCollection* This,
ULONG ulIndex,
ISensor **ppSensor);
HRESULT (STDMETHODCALLTYPE *GetCount)(
ISensorCollection* This,
ULONG *pCount);
HRESULT (STDMETHODCALLTYPE *Add)(
ISensorCollection* This,
ISensor *pSensor);
HRESULT (STDMETHODCALLTYPE *Remove)(
ISensorCollection* This,
ISensor *pSensor);
HRESULT (STDMETHODCALLTYPE *RemoveByID)(
ISensorCollection* This,
REFSENSOR_ID sensorID);
HRESULT (STDMETHODCALLTYPE *Clear)(
ISensorCollection* This);
END_INTERFACE
} ISensorCollectionVtbl;
interface ISensorCollection {
CONST_VTBL ISensorCollectionVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensorCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensorCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensorCollection_Release(This) (This)->lpVtbl->Release(This)
/*** ISensorCollection methods ***/
#define ISensorCollection_GetAt(This,ulIndex,ppSensor) (This)->lpVtbl->GetAt(This,ulIndex,ppSensor)
#define ISensorCollection_GetCount(This,pCount) (This)->lpVtbl->GetCount(This,pCount)
#define ISensorCollection_Add(This,pSensor) (This)->lpVtbl->Add(This,pSensor)
#define ISensorCollection_Remove(This,pSensor) (This)->lpVtbl->Remove(This,pSensor)
#define ISensorCollection_RemoveByID(This,sensorID) (This)->lpVtbl->RemoveByID(This,sensorID)
#define ISensorCollection_Clear(This) (This)->lpVtbl->Clear(This)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensorCollection_QueryInterface(ISensorCollection* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensorCollection_AddRef(ISensorCollection* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensorCollection_Release(ISensorCollection* This) {
return This->lpVtbl->Release(This);
}
/*** ISensorCollection methods ***/
static FORCEINLINE HRESULT ISensorCollection_GetAt(ISensorCollection* This,ULONG ulIndex,ISensor **ppSensor) {
return This->lpVtbl->GetAt(This,ulIndex,ppSensor);
}
static FORCEINLINE HRESULT ISensorCollection_GetCount(ISensorCollection* This,ULONG *pCount) {
return This->lpVtbl->GetCount(This,pCount);
}
static FORCEINLINE HRESULT ISensorCollection_Add(ISensorCollection* This,ISensor *pSensor) {
return This->lpVtbl->Add(This,pSensor);
}
static FORCEINLINE HRESULT ISensorCollection_Remove(ISensorCollection* This,ISensor *pSensor) {
return This->lpVtbl->Remove(This,pSensor);
}
static FORCEINLINE HRESULT ISensorCollection_RemoveByID(ISensorCollection* This,REFSENSOR_ID sensorID) {
return This->lpVtbl->RemoveByID(This,sensorID);
}
static FORCEINLINE HRESULT ISensorCollection_Clear(ISensorCollection* This) {
return This->lpVtbl->Clear(This);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensorCollection_GetAt_Proxy(
ISensorCollection* This,
ULONG ulIndex,
ISensor **ppSensor);
void __RPC_STUB ISensorCollection_GetAt_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorCollection_GetCount_Proxy(
ISensorCollection* This,
ULONG *pCount);
void __RPC_STUB ISensorCollection_GetCount_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorCollection_Add_Proxy(
ISensorCollection* This,
ISensor *pSensor);
void __RPC_STUB ISensorCollection_Add_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorCollection_Remove_Proxy(
ISensorCollection* This,
ISensor *pSensor);
void __RPC_STUB ISensorCollection_Remove_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorCollection_RemoveByID_Proxy(
ISensorCollection* This,
REFSENSOR_ID sensorID);
void __RPC_STUB ISensorCollection_RemoveByID_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorCollection_Clear_Proxy(
ISensorCollection* This);
void __RPC_STUB ISensorCollection_Clear_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensorCollection_INTERFACE_DEFINED__ */
/*****************************************************************************
* ISensor interface
*/
#ifndef __ISensor_INTERFACE_DEFINED__
#define __ISensor_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensor, 0x5fa08f80, 0x2657, 0x458e, 0xaf,0x75, 0x46,0xf7,0x3f,0xa6,0xac,0x5c);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("5fa08f80-2657-458e-af75-46f73fa6ac5c")
ISensor : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetID(
SENSOR_ID *pID) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCategory(
SENSOR_CATEGORY_ID *pSensorCategory) = 0;
virtual HRESULT STDMETHODCALLTYPE GetType(
SENSOR_TYPE_ID *pSensorType) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFriendlyName(
BSTR *pFriendlyName) = 0;
virtual HRESULT STDMETHODCALLTYPE GetProperty(
REFPROPERTYKEY key,
PROPVARIANT *pProperty) = 0;
virtual HRESULT STDMETHODCALLTYPE GetProperties(
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppProperties) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSupportedDataFields(
IPortableDeviceKeyCollection **ppDataFields) = 0;
virtual HRESULT STDMETHODCALLTYPE SetProperties(
IPortableDeviceValues *pProperties,
IPortableDeviceValues **ppResults) = 0;
virtual HRESULT STDMETHODCALLTYPE SupportsDataField(
REFPROPERTYKEY key,
VARIANT_BOOL *pIsSupported) = 0;
virtual HRESULT STDMETHODCALLTYPE GetState(
SensorState *pState) = 0;
virtual HRESULT STDMETHODCALLTYPE GetData(
ISensorDataReport **ppDataReport) = 0;
virtual HRESULT STDMETHODCALLTYPE SupportsEvent(
REFGUID eventGuid,
VARIANT_BOOL *pIsSupported) = 0;
virtual HRESULT STDMETHODCALLTYPE GetEventInterest(
GUID **ppValues,
ULONG *pCount) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEventInterest(
GUID *pValues,
ULONG count) = 0;
virtual HRESULT STDMETHODCALLTYPE SetEventSink(
ISensorEvents *pEvents) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensor, 0x5fa08f80, 0x2657, 0x458e, 0xaf,0x75, 0x46,0xf7,0x3f,0xa6,0xac,0x5c)
#endif
#else
typedef struct ISensorVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensor* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensor* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensor* This);
/*** ISensor methods ***/
HRESULT (STDMETHODCALLTYPE *GetID)(
ISensor* This,
SENSOR_ID *pID);
HRESULT (STDMETHODCALLTYPE *GetCategory)(
ISensor* This,
SENSOR_CATEGORY_ID *pSensorCategory);
HRESULT (STDMETHODCALLTYPE *GetType)(
ISensor* This,
SENSOR_TYPE_ID *pSensorType);
HRESULT (STDMETHODCALLTYPE *GetFriendlyName)(
ISensor* This,
BSTR *pFriendlyName);
HRESULT (STDMETHODCALLTYPE *GetProperty)(
ISensor* This,
REFPROPERTYKEY key,
PROPVARIANT *pProperty);
HRESULT (STDMETHODCALLTYPE *GetProperties)(
ISensor* This,
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppProperties);
HRESULT (STDMETHODCALLTYPE *GetSupportedDataFields)(
ISensor* This,
IPortableDeviceKeyCollection **ppDataFields);
HRESULT (STDMETHODCALLTYPE *SetProperties)(
ISensor* This,
IPortableDeviceValues *pProperties,
IPortableDeviceValues **ppResults);
HRESULT (STDMETHODCALLTYPE *SupportsDataField)(
ISensor* This,
REFPROPERTYKEY key,
VARIANT_BOOL *pIsSupported);
HRESULT (STDMETHODCALLTYPE *GetState)(
ISensor* This,
SensorState *pState);
HRESULT (STDMETHODCALLTYPE *GetData)(
ISensor* This,
ISensorDataReport **ppDataReport);
HRESULT (STDMETHODCALLTYPE *SupportsEvent)(
ISensor* This,
REFGUID eventGuid,
VARIANT_BOOL *pIsSupported);
HRESULT (STDMETHODCALLTYPE *GetEventInterest)(
ISensor* This,
GUID **ppValues,
ULONG *pCount);
HRESULT (STDMETHODCALLTYPE *SetEventInterest)(
ISensor* This,
GUID *pValues,
ULONG count);
HRESULT (STDMETHODCALLTYPE *SetEventSink)(
ISensor* This,
ISensorEvents *pEvents);
END_INTERFACE
} ISensorVtbl;
interface ISensor {
CONST_VTBL ISensorVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensor_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensor_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensor_Release(This) (This)->lpVtbl->Release(This)
/*** ISensor methods ***/
#define ISensor_GetID(This,pID) (This)->lpVtbl->GetID(This,pID)
#define ISensor_GetCategory(This,pSensorCategory) (This)->lpVtbl->GetCategory(This,pSensorCategory)
#define ISensor_GetType(This,pSensorType) (This)->lpVtbl->GetType(This,pSensorType)
#define ISensor_GetFriendlyName(This,pFriendlyName) (This)->lpVtbl->GetFriendlyName(This,pFriendlyName)
#define ISensor_GetProperty(This,key,pProperty) (This)->lpVtbl->GetProperty(This,key,pProperty)
#define ISensor_GetProperties(This,pKeys,ppProperties) (This)->lpVtbl->GetProperties(This,pKeys,ppProperties)
#define ISensor_GetSupportedDataFields(This,ppDataFields) (This)->lpVtbl->GetSupportedDataFields(This,ppDataFields)
#define ISensor_SetProperties(This,pProperties,ppResults) (This)->lpVtbl->SetProperties(This,pProperties,ppResults)
#define ISensor_SupportsDataField(This,key,pIsSupported) (This)->lpVtbl->SupportsDataField(This,key,pIsSupported)
#define ISensor_GetState(This,pState) (This)->lpVtbl->GetState(This,pState)
#define ISensor_GetData(This,ppDataReport) (This)->lpVtbl->GetData(This,ppDataReport)
#define ISensor_SupportsEvent(This,eventGuid,pIsSupported) (This)->lpVtbl->SupportsEvent(This,eventGuid,pIsSupported)
#define ISensor_GetEventInterest(This,ppValues,pCount) (This)->lpVtbl->GetEventInterest(This,ppValues,pCount)
#define ISensor_SetEventInterest(This,pValues,count) (This)->lpVtbl->SetEventInterest(This,pValues,count)
#define ISensor_SetEventSink(This,pEvents) (This)->lpVtbl->SetEventSink(This,pEvents)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensor_QueryInterface(ISensor* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensor_AddRef(ISensor* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensor_Release(ISensor* This) {
return This->lpVtbl->Release(This);
}
/*** ISensor methods ***/
static FORCEINLINE HRESULT ISensor_GetID(ISensor* This,SENSOR_ID *pID) {
return This->lpVtbl->GetID(This,pID);
}
static FORCEINLINE HRESULT ISensor_GetCategory(ISensor* This,SENSOR_CATEGORY_ID *pSensorCategory) {
return This->lpVtbl->GetCategory(This,pSensorCategory);
}
static FORCEINLINE HRESULT ISensor_GetType(ISensor* This,SENSOR_TYPE_ID *pSensorType) {
return This->lpVtbl->GetType(This,pSensorType);
}
static FORCEINLINE HRESULT ISensor_GetFriendlyName(ISensor* This,BSTR *pFriendlyName) {
return This->lpVtbl->GetFriendlyName(This,pFriendlyName);
}
static FORCEINLINE HRESULT ISensor_GetProperty(ISensor* This,REFPROPERTYKEY key,PROPVARIANT *pProperty) {
return This->lpVtbl->GetProperty(This,key,pProperty);
}
static FORCEINLINE HRESULT ISensor_GetProperties(ISensor* This,IPortableDeviceKeyCollection *pKeys,IPortableDeviceValues **ppProperties) {
return This->lpVtbl->GetProperties(This,pKeys,ppProperties);
}
static FORCEINLINE HRESULT ISensor_GetSupportedDataFields(ISensor* This,IPortableDeviceKeyCollection **ppDataFields) {
return This->lpVtbl->GetSupportedDataFields(This,ppDataFields);
}
static FORCEINLINE HRESULT ISensor_SetProperties(ISensor* This,IPortableDeviceValues *pProperties,IPortableDeviceValues **ppResults) {
return This->lpVtbl->SetProperties(This,pProperties,ppResults);
}
static FORCEINLINE HRESULT ISensor_SupportsDataField(ISensor* This,REFPROPERTYKEY key,VARIANT_BOOL *pIsSupported) {
return This->lpVtbl->SupportsDataField(This,key,pIsSupported);
}
static FORCEINLINE HRESULT ISensor_GetState(ISensor* This,SensorState *pState) {
return This->lpVtbl->GetState(This,pState);
}
static FORCEINLINE HRESULT ISensor_GetData(ISensor* This,ISensorDataReport **ppDataReport) {
return This->lpVtbl->GetData(This,ppDataReport);
}
static FORCEINLINE HRESULT ISensor_SupportsEvent(ISensor* This,REFGUID eventGuid,VARIANT_BOOL *pIsSupported) {
return This->lpVtbl->SupportsEvent(This,eventGuid,pIsSupported);
}
static FORCEINLINE HRESULT ISensor_GetEventInterest(ISensor* This,GUID **ppValues,ULONG *pCount) {
return This->lpVtbl->GetEventInterest(This,ppValues,pCount);
}
static FORCEINLINE HRESULT ISensor_SetEventInterest(ISensor* This,GUID *pValues,ULONG count) {
return This->lpVtbl->SetEventInterest(This,pValues,count);
}
static FORCEINLINE HRESULT ISensor_SetEventSink(ISensor* This,ISensorEvents *pEvents) {
return This->lpVtbl->SetEventSink(This,pEvents);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensor_GetID_Proxy(
ISensor* This,
SENSOR_ID *pID);
void __RPC_STUB ISensor_GetID_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetCategory_Proxy(
ISensor* This,
SENSOR_CATEGORY_ID *pSensorCategory);
void __RPC_STUB ISensor_GetCategory_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetType_Proxy(
ISensor* This,
SENSOR_TYPE_ID *pSensorType);
void __RPC_STUB ISensor_GetType_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetFriendlyName_Proxy(
ISensor* This,
BSTR *pFriendlyName);
void __RPC_STUB ISensor_GetFriendlyName_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetProperty_Proxy(
ISensor* This,
REFPROPERTYKEY key,
PROPVARIANT *pProperty);
void __RPC_STUB ISensor_GetProperty_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetProperties_Proxy(
ISensor* This,
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppProperties);
void __RPC_STUB ISensor_GetProperties_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetSupportedDataFields_Proxy(
ISensor* This,
IPortableDeviceKeyCollection **ppDataFields);
void __RPC_STUB ISensor_GetSupportedDataFields_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_SetProperties_Proxy(
ISensor* This,
IPortableDeviceValues *pProperties,
IPortableDeviceValues **ppResults);
void __RPC_STUB ISensor_SetProperties_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_SupportsDataField_Proxy(
ISensor* This,
REFPROPERTYKEY key,
VARIANT_BOOL *pIsSupported);
void __RPC_STUB ISensor_SupportsDataField_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetState_Proxy(
ISensor* This,
SensorState *pState);
void __RPC_STUB ISensor_GetState_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetData_Proxy(
ISensor* This,
ISensorDataReport **ppDataReport);
void __RPC_STUB ISensor_GetData_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_SupportsEvent_Proxy(
ISensor* This,
REFGUID eventGuid,
VARIANT_BOOL *pIsSupported);
void __RPC_STUB ISensor_SupportsEvent_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_GetEventInterest_Proxy(
ISensor* This,
GUID **ppValues,
ULONG *pCount);
void __RPC_STUB ISensor_GetEventInterest_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_SetEventInterest_Proxy(
ISensor* This,
GUID *pValues,
ULONG count);
void __RPC_STUB ISensor_SetEventInterest_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensor_SetEventSink_Proxy(
ISensor* This,
ISensorEvents *pEvents);
void __RPC_STUB ISensor_SetEventSink_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensor_INTERFACE_DEFINED__ */
/*****************************************************************************
* ISensorDataReport interface
*/
#ifndef __ISensorDataReport_INTERFACE_DEFINED__
#define __ISensorDataReport_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensorDataReport, 0x0ab9df9b, 0xc4b5, 0x4796, 0x88,0x98, 0x04,0x70,0x70,0x6a,0x2e,0x1d);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("0ab9df9b-c4b5-4796-8898-0470706a2e1d")
ISensorDataReport : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetTimestamp(
SYSTEMTIME *pTimeStamp) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSensorValue(
REFPROPERTYKEY pKey,
PROPVARIANT *pValue) = 0;
virtual HRESULT STDMETHODCALLTYPE GetSensorValues(
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppValues) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensorDataReport, 0x0ab9df9b, 0xc4b5, 0x4796, 0x88,0x98, 0x04,0x70,0x70,0x6a,0x2e,0x1d)
#endif
#else
typedef struct ISensorDataReportVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensorDataReport* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensorDataReport* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensorDataReport* This);
/*** ISensorDataReport methods ***/
HRESULT (STDMETHODCALLTYPE *GetTimestamp)(
ISensorDataReport* This,
SYSTEMTIME *pTimeStamp);
HRESULT (STDMETHODCALLTYPE *GetSensorValue)(
ISensorDataReport* This,
REFPROPERTYKEY pKey,
PROPVARIANT *pValue);
HRESULT (STDMETHODCALLTYPE *GetSensorValues)(
ISensorDataReport* This,
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppValues);
END_INTERFACE
} ISensorDataReportVtbl;
interface ISensorDataReport {
CONST_VTBL ISensorDataReportVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensorDataReport_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensorDataReport_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensorDataReport_Release(This) (This)->lpVtbl->Release(This)
/*** ISensorDataReport methods ***/
#define ISensorDataReport_GetTimestamp(This,pTimeStamp) (This)->lpVtbl->GetTimestamp(This,pTimeStamp)
#define ISensorDataReport_GetSensorValue(This,pKey,pValue) (This)->lpVtbl->GetSensorValue(This,pKey,pValue)
#define ISensorDataReport_GetSensorValues(This,pKeys,ppValues) (This)->lpVtbl->GetSensorValues(This,pKeys,ppValues)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensorDataReport_QueryInterface(ISensorDataReport* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensorDataReport_AddRef(ISensorDataReport* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensorDataReport_Release(ISensorDataReport* This) {
return This->lpVtbl->Release(This);
}
/*** ISensorDataReport methods ***/
static FORCEINLINE HRESULT ISensorDataReport_GetTimestamp(ISensorDataReport* This,SYSTEMTIME *pTimeStamp) {
return This->lpVtbl->GetTimestamp(This,pTimeStamp);
}
static FORCEINLINE HRESULT ISensorDataReport_GetSensorValue(ISensorDataReport* This,REFPROPERTYKEY pKey,PROPVARIANT *pValue) {
return This->lpVtbl->GetSensorValue(This,pKey,pValue);
}
static FORCEINLINE HRESULT ISensorDataReport_GetSensorValues(ISensorDataReport* This,IPortableDeviceKeyCollection *pKeys,IPortableDeviceValues **ppValues) {
return This->lpVtbl->GetSensorValues(This,pKeys,ppValues);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensorDataReport_GetTimestamp_Proxy(
ISensorDataReport* This,
SYSTEMTIME *pTimeStamp);
void __RPC_STUB ISensorDataReport_GetTimestamp_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorDataReport_GetSensorValue_Proxy(
ISensorDataReport* This,
REFPROPERTYKEY pKey,
PROPVARIANT *pValue);
void __RPC_STUB ISensorDataReport_GetSensorValue_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorDataReport_GetSensorValues_Proxy(
ISensorDataReport* This,
IPortableDeviceKeyCollection *pKeys,
IPortableDeviceValues **ppValues);
void __RPC_STUB ISensorDataReport_GetSensorValues_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensorDataReport_INTERFACE_DEFINED__ */
/*****************************************************************************
* ISensorManagerEvents interface
*/
#ifndef __ISensorManagerEvents_INTERFACE_DEFINED__
#define __ISensorManagerEvents_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensorManagerEvents, 0x9b3b0b86, 0x266a, 0x4aad, 0xb2,0x1f, 0xfd,0xe5,0x50,0x10,0x01,0xb7);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("9b3b0b86-266a-4aad-b21f-fde5501001b7")
ISensorManagerEvents : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE OnSensorEnter(
ISensor *pSensor,
SensorState state) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensorManagerEvents, 0x9b3b0b86, 0x266a, 0x4aad, 0xb2,0x1f, 0xfd,0xe5,0x50,0x10,0x01,0xb7)
#endif
#else
typedef struct ISensorManagerEventsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensorManagerEvents* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensorManagerEvents* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensorManagerEvents* This);
/*** ISensorManagerEvents methods ***/
HRESULT (STDMETHODCALLTYPE *OnSensorEnter)(
ISensorManagerEvents* This,
ISensor *pSensor,
SensorState state);
END_INTERFACE
} ISensorManagerEventsVtbl;
interface ISensorManagerEvents {
CONST_VTBL ISensorManagerEventsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensorManagerEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensorManagerEvents_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensorManagerEvents_Release(This) (This)->lpVtbl->Release(This)
/*** ISensorManagerEvents methods ***/
#define ISensorManagerEvents_OnSensorEnter(This,pSensor,state) (This)->lpVtbl->OnSensorEnter(This,pSensor,state)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensorManagerEvents_QueryInterface(ISensorManagerEvents* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensorManagerEvents_AddRef(ISensorManagerEvents* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensorManagerEvents_Release(ISensorManagerEvents* This) {
return This->lpVtbl->Release(This);
}
/*** ISensorManagerEvents methods ***/
static FORCEINLINE HRESULT ISensorManagerEvents_OnSensorEnter(ISensorManagerEvents* This,ISensor *pSensor,SensorState state) {
return This->lpVtbl->OnSensorEnter(This,pSensor,state);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensorManagerEvents_OnSensorEnter_Proxy(
ISensorManagerEvents* This,
ISensor *pSensor,
SensorState state);
void __RPC_STUB ISensorManagerEvents_OnSensorEnter_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensorManagerEvents_INTERFACE_DEFINED__ */
/*****************************************************************************
* ISensorEvents interface
*/
#ifndef __ISensorEvents_INTERFACE_DEFINED__
#define __ISensorEvents_INTERFACE_DEFINED__
DEFINE_GUID(IID_ISensorEvents, 0x5d8dcc91, 0x4641, 0x47e7, 0xb7,0xc3, 0xb7,0x4f,0x48,0xa6,0xc3,0x91);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("5d8dcc91-4641-47e7-b7c3-b74f48a6c391")
ISensorEvents : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE OnStateChanged(
ISensor *pSensor,
SensorState state) = 0;
virtual HRESULT STDMETHODCALLTYPE OnDataUpdated(
ISensor *pSensor,
ISensorDataReport *pNewData) = 0;
virtual HRESULT STDMETHODCALLTYPE OnEvent(
ISensor *pSensor,
REFGUID eventID,
IPortableDeviceValues *pEventData) = 0;
virtual HRESULT STDMETHODCALLTYPE OnLeave(
REFSENSOR_ID ID) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(ISensorEvents, 0x5d8dcc91, 0x4641, 0x47e7, 0xb7,0xc3, 0xb7,0x4f,0x48,0xa6,0xc3,0x91)
#endif
#else
typedef struct ISensorEventsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
ISensorEvents* This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
ISensorEvents* This);
ULONG (STDMETHODCALLTYPE *Release)(
ISensorEvents* This);
/*** ISensorEvents methods ***/
HRESULT (STDMETHODCALLTYPE *OnStateChanged)(
ISensorEvents* This,
ISensor *pSensor,
SensorState state);
HRESULT (STDMETHODCALLTYPE *OnDataUpdated)(
ISensorEvents* This,
ISensor *pSensor,
ISensorDataReport *pNewData);
HRESULT (STDMETHODCALLTYPE *OnEvent)(
ISensorEvents* This,
ISensor *pSensor,
REFGUID eventID,
IPortableDeviceValues *pEventData);
HRESULT (STDMETHODCALLTYPE *OnLeave)(
ISensorEvents* This,
REFSENSOR_ID ID);
END_INTERFACE
} ISensorEventsVtbl;
interface ISensorEvents {
CONST_VTBL ISensorEventsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define ISensorEvents_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define ISensorEvents_AddRef(This) (This)->lpVtbl->AddRef(This)
#define ISensorEvents_Release(This) (This)->lpVtbl->Release(This)
/*** ISensorEvents methods ***/
#define ISensorEvents_OnStateChanged(This,pSensor,state) (This)->lpVtbl->OnStateChanged(This,pSensor,state)
#define ISensorEvents_OnDataUpdated(This,pSensor,pNewData) (This)->lpVtbl->OnDataUpdated(This,pSensor,pNewData)
#define ISensorEvents_OnEvent(This,pSensor,eventID,pEventData) (This)->lpVtbl->OnEvent(This,pSensor,eventID,pEventData)
#define ISensorEvents_OnLeave(This,ID) (This)->lpVtbl->OnLeave(This,ID)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT ISensorEvents_QueryInterface(ISensorEvents* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG ISensorEvents_AddRef(ISensorEvents* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG ISensorEvents_Release(ISensorEvents* This) {
return This->lpVtbl->Release(This);
}
/*** ISensorEvents methods ***/
static FORCEINLINE HRESULT ISensorEvents_OnStateChanged(ISensorEvents* This,ISensor *pSensor,SensorState state) {
return This->lpVtbl->OnStateChanged(This,pSensor,state);
}
static FORCEINLINE HRESULT ISensorEvents_OnDataUpdated(ISensorEvents* This,ISensor *pSensor,ISensorDataReport *pNewData) {
return This->lpVtbl->OnDataUpdated(This,pSensor,pNewData);
}
static FORCEINLINE HRESULT ISensorEvents_OnEvent(ISensorEvents* This,ISensor *pSensor,REFGUID eventID,IPortableDeviceValues *pEventData) {
return This->lpVtbl->OnEvent(This,pSensor,eventID,pEventData);
}
static FORCEINLINE HRESULT ISensorEvents_OnLeave(ISensorEvents* This,REFSENSOR_ID ID) {
return This->lpVtbl->OnLeave(This,ID);
}
#endif
#endif
#endif
HRESULT STDMETHODCALLTYPE ISensorEvents_OnStateChanged_Proxy(
ISensorEvents* This,
ISensor *pSensor,
SensorState state);
void __RPC_STUB ISensorEvents_OnStateChanged_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorEvents_OnDataUpdated_Proxy(
ISensorEvents* This,
ISensor *pSensor,
ISensorDataReport *pNewData);
void __RPC_STUB ISensorEvents_OnDataUpdated_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorEvents_OnEvent_Proxy(
ISensorEvents* This,
ISensor *pSensor,
REFGUID eventID,
IPortableDeviceValues *pEventData);
void __RPC_STUB ISensorEvents_OnEvent_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
HRESULT STDMETHODCALLTYPE ISensorEvents_OnLeave_Proxy(
ISensorEvents* This,
REFSENSOR_ID ID);
void __RPC_STUB ISensorEvents_OnLeave_Stub(
IRpcStubBuffer* This,
IRpcChannelBuffer* pRpcChannelBuffer,
PRPC_MESSAGE pRpcMessage,
DWORD* pdwStubPhase);
#endif /* __ISensorEvents_INTERFACE_DEFINED__ */
DEFINE_GUID(LIBID_SensorsApiLib, 0x15092592, 0x5270, 0x4c6c, 0xaa,0xa0, 0x11,0x76,0x4f,0x18,0x9a,0x8f);
/*****************************************************************************
* SensorManager coclass
*/
DEFINE_GUID(CLSID_SensorManager, 0x77a1c827, 0xfcd2, 0x4689, 0x89,0x15, 0x9d,0x61,0x3c,0xc5,0xfa,0x3e);
#ifdef __cplusplus
class DECLSPEC_UUID("77a1c827-fcd2-4689-8915-9d613cc5fa3e") SensorManager;
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(SensorManager, 0x77a1c827, 0xfcd2, 0x4689, 0x89,0x15, 0x9d,0x61,0x3c,0xc5,0xfa,0x3e)
#endif
#endif
/* Begin additional prototypes for all interfaces */
ULONG __RPC_USER HWND_UserSize (ULONG *, ULONG, HWND *);
unsigned char * __RPC_USER HWND_UserMarshal (ULONG *, unsigned char *, HWND *);
unsigned char * __RPC_USER HWND_UserUnmarshal(ULONG *, unsigned char *, HWND *);
void __RPC_USER HWND_UserFree (ULONG *, HWND *);
ULONG __RPC_USER BSTR_UserSize (ULONG *, ULONG, BSTR *);
unsigned char * __RPC_USER BSTR_UserMarshal (ULONG *, unsigned char *, BSTR *);
unsigned char * __RPC_USER BSTR_UserUnmarshal(ULONG *, unsigned char *, BSTR *);
void __RPC_USER BSTR_UserFree (ULONG *, BSTR *);
ULONG __RPC_USER LPSAFEARRAY_UserSize (ULONG *, ULONG, LPSAFEARRAY *);
unsigned char * __RPC_USER LPSAFEARRAY_UserMarshal (ULONG *, unsigned char *, LPSAFEARRAY *);
unsigned char * __RPC_USER LPSAFEARRAY_UserUnmarshal(ULONG *, unsigned char *, LPSAFEARRAY *);
void __RPC_USER LPSAFEARRAY_UserFree (ULONG *, LPSAFEARRAY *);
/* End additional prototypes */
#ifdef __cplusplus
}
#endif
#endif /* __sensorsapi_h__ */
|