MCPcopy Create free account
hub / github.com/ashkulz/NppFTP / Seek

Method Seek

src/DragDropSupport.cpp:591–612  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

589}
590
591STDMETHODIMP CStreamData::Seek(LARGE_INTEGER liDistanceToMove, DWORD dwOrigin, ULARGE_INTEGER * lpNewFilePointer) {
592 switch(dwOrigin) {
593 case STREAM_SEEK_SET:
594 return E_NOTIMPL;
595 break;
596 case STREAM_SEEK_CUR:
597 if (liDistanceToMove.QuadPart != 0)
598 return E_NOTIMPL;
599 break;
600 case STREAM_SEEK_END:
601 return E_NOTIMPL;
602 break;
603 default:
604 return E_INVALIDARG;
605 break;
606 }
607
608 if (lpNewFilePointer)
609 *lpNewFilePointer = m_currentPointer;
610
611 return S_OK;
612}
613
614STDMETHODIMP CStreamData::Stat(STATSTG * pStatstg, DWORD grfStatFlag) {
615 //Doesnt seem to get called by explorer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected