MCPcopy Create free account
hub / github.com/decoder-it/ADCSCoercePotato / Stat

Method Stat

IStorageTrigger.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 return 0;
174}
175HRESULT IStorageTrigger::Stat(STATSTG *pstatstg, DWORD grfStatFlag) {
176 _stg->Stat(pstatstg, grfStatFlag);
177
178 //Allocate from heap because apparently this will get freed in OLE32
179 const wchar_t c_s[] = L"hello.stg";
180
181 wchar_t *s = (wchar_t*)CoTaskMemAlloc(sizeof(c_s));
182 wcscpy(s, c_s);
183 pstatstg[0].pwcsName = s;
184 return 0;
185}
186
187///////////////////////IUknown Interface
188HRESULT IStorageTrigger::QueryInterface(const IID &riid, void **ppvObj) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected