| 209 | } |
| 210 | |
| 211 | static void PrintUserName(PDOKAN_FILE_INFO DokanFileInfo) { |
| 212 | |
| 213 | // this function is expensive and doesn't seem to provide |
| 214 | // any useful information in the log |
| 215 | #if 0 |
| 216 | if (!g_DebugMode) |
| 217 | return; |
| 218 | |
| 219 | |
| 220 | |
| 221 | wstring accountName, domainName; |
| 222 | |
| 223 | if (GetUserNameFromDokanFileInof(DokanFileInfo)) |
| 224 | DbgPrint(L" AccountName: %s, DomainName: %s\n", accountName.c_str(), domainName.c_str()); |
| 225 | else |
| 226 | DbgPrint(L"GetUserNameFromToken failed\n"); |
| 227 | |
| 228 | |
| 229 | #endif // #if 0 |
| 230 | } |
| 231 | |
| 232 | NTSTATUS ToNtStatus(DWORD dwError) { |
| 233 |
no test coverage detected