Shared/M2WindowsHelpers.cpp
/**
 * Closes a created file enumerator handle.
 *
 * @param FileEnumeratorHandle The created file enumerator handle.
 * @return HRESULT. If the function succeeds, the return value is S_OK.
 */
Closes a created file enumerator handle.
@param FileEnumeratorHandle The created file enumerator handle.
@return HRESULT. If the function succeeds, the return value is S_OK.
Closes a created file enumerator handle . @param FileEnumeratorHandle The created file enumerator handle . @return HRESULT . If the function succeeds the return value is S_OK .
HRESULT M2CloseFileEnumerator(
    _In_ M2_FILE_ENUMERATOR_HANDLE FileEnumeratorHandle)
{
    if (!FileEnumeratorHandle)
        return __HRESULT_FROM_WIN32(ERROR_INVALID_PARAMETER);
    return M2FreeMemory(FileEnumeratorHandle);
}
HRESULT M2CloseFileEnumerator ( _In_ M2_FILE_ENUMERATOR_HANDLE FileEnumeratorHandle ) { if ( ! FileEnumeratorHandle ) return __HRESULT_FROM_WIN32 ( ERROR_INVALID_PARAMETER ) ; return M2FreeMemory ( FileEnumeratorHandle ) ; }
Closes a created file enumerator handle.
Closes a created file enumerator handle .