| 799 | } |
| 800 | |
| 801 | LPBYTE WINAPI CascFindEncryptionKey(HANDLE hStorage, ULONGLONG KeyName) |
| 802 | { |
| 803 | TCascStorage * hs; |
| 804 | |
| 805 | // Validate the storage handle |
| 806 | hs = TCascStorage::IsValid(hStorage); |
| 807 | if(hs == NULL) |
| 808 | { |
| 809 | SetCascError(ERROR_INVALID_HANDLE); |
| 810 | return NULL; |
| 811 | } |
| 812 | |
| 813 | // Return the result from the map's search function |
| 814 | return hs->KeyMap.FindKey(KeyName); |
| 815 | } |
| 816 | |
| 817 | bool WINAPI CascGetNotFoundEncryptionKey(HANDLE hStorage, ULONGLONG * KeyName) |
| 818 | { |
nothing calls this directly
no test coverage detected