MCPcopy Create free account
hub / github.com/clechasseur/pathcopycopy / GetUseHiddenShares

Method GetUseHiddenShares

PathCopyCopy/src/PathCopyCopySettings.cpp:249–261  ·  view source on GitHub ↗

Checks whether user wants to consider hidden shares when returning paths for the UNC plugins. @return true if hidden shares should be considered, false otherwise.

Source from the content-addressed store, hash-verified

247 // @return true if hidden shares should be considered, false otherwise.
248 //
249 bool Settings::GetUseHiddenShares() const
250 {
251 // Perform late-revising.
252 Revise();
253
254 // Check if value exists. If so, read it, otherwise use default value.
255 bool useHiddenShares = SETTING_USE_HIDDEN_SHARES_DEFAULT;
256 DWORD regUseHiddenShares = 0;
257 if (m_UserKey.QueryDWORDValue(SETTING_USE_HIDDEN_SHARES, regUseHiddenShares) == ERROR_SUCCESS) {
258 useHiddenShares = regUseHiddenShares != 0;
259 }
260 return useHiddenShares;
261 }
262
263 //
264 // Checks whether user wants to use fully-qualified domain names

Callers 2

InternalGetPathMethod · 0.80
InternalGetPathMethod · 0.80

Calls 1

QueryDWORDValueMethod · 0.45

Tested by

no test coverage detected