From f6029b2f04f52ae2b692980cb4d5734031568d91 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Tue, 17 May 2016 14:31:43 +0200 Subject: [PATCH] Clean-up --- include/WinStd/Cred.h | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) diff --git a/include/WinStd/Cred.h b/include/WinStd/Cred.h index f968c261..103a4c37 100644 --- a/include/WinStd/Cred.h +++ b/include/WinStd/Cred.h @@ -28,9 +28,9 @@ namespace winstd { template struct CredFree_delete; template struct CredFree_delete<_Ty[]>; - class credential; } +inline BOOL CredEnumerate(_In_ LPCTSTR Filter, _In_ DWORD Flags, _Out_ DWORD *Count, _Out_ std::unique_ptr > &cCredentials); template inline BOOL CredProtectA(_In_ BOOL fAsSelf, _In_ LPCSTR pszCredentials, _In_ DWORD cchCredentials, _Out_ std::basic_string<_Elem, _Traits, _Ax> &sProtectedCredentials, _Out_ CRED_PROTECTION_TYPE *ProtectionType); template inline BOOL CredProtectW(_In_ BOOL fAsSelf, _In_ LPCWSTR pszCredentials, _In_ DWORD cchCredentials, _Out_ std::basic_string<_Elem, _Traits, _Ax> &sProtectedCredentials, _Out_ CRED_PROTECTION_TYPE *ProtectionType); template inline BOOL CredUnprotectA(_In_ BOOL fAsSelf, _In_ LPCSTR pszProtectedCredentials, _In_ DWORD cchCredentials, _Out_ std::basic_string<_Elem, _Traits, _Ax> &sCredentials); @@ -101,36 +101,6 @@ namespace winstd } }; - - /// - /// PCREDENTIAL wrapper class - /// - class credential : public handle - { - public: - /// - /// Closes the credential. - /// - /// \sa [CredFree function](https://msdn.microsoft.com/en-us/library/windows/desktop/aa374796.aspx) - /// - virtual ~credential() - { - if (m_h) - CredFree(m_h); - } - - protected: - /// - /// Closes the credential. - /// - /// \sa [CredFree function](https://msdn.microsoft.com/en-us/library/windows/desktop/aa374796.aspx) - /// - virtual void free_internal() - { - CredFree(m_h); - } - }; - /// @} }