Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"native-src/logger/Logger.cpp",
"native-src/logger/LoggerPath.cpp",
"native-src/main.cpp",
"native-src/placeholders_interface/PlaceHolderInfo.cpp",
"native-src/placeholders_interface/Planceholders.cpp",
"native-src/sync_root_interface/SyncRoot.cpp",
"native-src/sync_root_interface/Utilities.cpp",
Expand Down
Binary file modified dist/addon.node
Binary file not shown.
27 changes: 0 additions & 27 deletions include/placeholders_interface/PlaceHolderInfo.h

This file was deleted.

9 changes: 8 additions & 1 deletion include/placeholders_interface/Placeholders.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
#pragma once

#include <vector>
#include <string>
#include <PlaceholderInfo.h>
#include <stdafx.h>

struct FileState
{
std::string placeholderId;
CF_PIN_STATE pinState;
};

class Placeholders
{
Expand Down
88 changes: 0 additions & 88 deletions native-src/placeholders_interface/PlaceHolderInfo.cpp

This file was deleted.

1 change: 0 additions & 1 deletion native-src/placeholders_interface/Planceholders.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "stdafx.h"
#include "Placeholders.h"
#include "Logger.h"
#include "PlaceholderInfo.h"
#include <winrt/base.h>
#include <shlwapi.h>
#include <vector>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "stdafx.h"
#include <stdafx.h>
#include <Callbacks.h>
#include <string>
#include <condition_variable>
Expand All @@ -17,6 +17,7 @@
#include <filesystem>
#include <Logger.h>
#include <TransferContext.h>
#include <Placeholders.h>

napi_threadsafe_function g_fetch_data_threadsafe_callback = nullptr;

Expand Down Expand Up @@ -213,7 +214,8 @@ static napi_value response_callback_fn_fetch_data(napi_env env, napi_callback_in

::Sleep(CHUNKDELAYMS);

CfSetPinState(handleForPath(ctxPtr->fullClientPath.c_str()).get(), CF_PIN_STATE_PINNED, CF_SET_PIN_FLAG_NONE, nullptr);
auto fileHandle = Placeholders::OpenFileHandle(ctxPtr->fullClientPath.c_str(), FILE_WRITE_ATTRIBUTES, true);
CfSetPinState(fileHandle.get(), CF_PIN_STATE_PINNED, CF_SET_PIN_FLAG_NONE, nullptr);
}

{
Expand Down