MCPcopy Index your code
hub / github.com/CCob/BOF.NET / createVariantSafeArray

Function createVariantSafeArray

bofs/bofnet_execute.cpp:103–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103SAFEARRAY* createVariantSafeArray(int numArgs, va_list argp){
104
105 BOF_LOCAL(OleAut32, SafeArrayCreateVector);
106 BOF_LOCAL(OleAut32, SafeArrayPutElement);
107 HRESULT hr;
108
109 SAFEARRAY* sa = SafeArrayCreateVector(VT_VARIANT, 0, numArgs);
110
111 for(long idx=0; idx < numArgs; ++idx){
112 if((hr = SafeArrayPutElement(sa, &idx, (void*)va_arg(argp, VARIANT*))) != S_OK){
113 log("[!] Failed to add element to SAFEARRAY: 0x%x", hr);
114 }
115 }
116
117 return sa;
118}
119
120
121SAFEARRAY* createVariantSafeArray(int numArgs, ...){

Callers 1

invokeStaticMethodFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected