| 68 | } |
| 69 | |
| 70 | bool VariantUtilities::VariantIsElement(VARIANT value) { |
| 71 | if (value.vt == VT_DISPATCH) { |
| 72 | CComPtr<IHTMLElement> is_element; |
| 73 | value.pdispVal->QueryInterface<IHTMLElement>(&is_element); |
| 74 | if (is_element) { |
| 75 | return true; |
| 76 | } |
| 77 | } |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | bool VariantUtilities::VariantIsArray(VARIANT value) { |
| 82 | if (value.vt != VT_DISPATCH) { |
nothing calls this directly
no outgoing calls
no test coverage detected