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.
| 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 |
no test coverage detected