Remove excessive WINAPI
No need to have non-default calling convention for our API. Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
6874413b65
commit
ba13a57897
@ -52,7 +52,7 @@ static DWORD CertGetNameStringW(_In_ PCCERT_CONTEXT pCertContext, _In_ DWORD dwT
|
|||||||
/// \sa [CertGetCertificateContextProperty function](https://msdn.microsoft.com/en-us/library/windows/desktop/aa376079.aspx)
|
/// \sa [CertGetCertificateContextProperty function](https://msdn.microsoft.com/en-us/library/windows/desktop/aa376079.aspx)
|
||||||
///
|
///
|
||||||
template<class _Ty, class _Ax>
|
template<class _Ty, class _Ax>
|
||||||
static _Success_(return != 0) BOOL WINAPI CertGetCertificateContextProperty(_In_ PCCERT_CONTEXT pCertContext, _In_ DWORD dwPropId, _Out_ std::vector<_Ty, _Ax> &aData)
|
static _Success_(return != 0) BOOL CertGetCertificateContextProperty(_In_ PCCERT_CONTEXT pCertContext, _In_ DWORD dwPropId, _Out_ std::vector<_Ty, _Ax> &aData)
|
||||||
{
|
{
|
||||||
BYTE buf[WINSTD_STACK_BUFFER_BYTES];
|
BYTE buf[WINSTD_STACK_BUFFER_BYTES];
|
||||||
DWORD dwSize = WINSTD_STACK_BUFFER_BYTES;
|
DWORD dwSize = WINSTD_STACK_BUFFER_BYTES;
|
||||||
|
@ -77,7 +77,7 @@ namespace winstd
|
|||||||
#pragma warning(disable: 4505) // Don't warn on unused code
|
#pragma warning(disable: 4505) // Don't warn on unused code
|
||||||
|
|
||||||
/// @copydoc ConvertStringSecurityDescriptorToSecurityDescriptorW()
|
/// @copydoc ConvertStringSecurityDescriptorToSecurityDescriptorW()
|
||||||
_Success_(return != FALSE) static BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorA(_In_ LPCSTR StringSecurityDescriptor, _In_ DWORD StringSDRevision, _Inout_ winstd::security_attributes &sa, _Out_opt_ PULONG SecurityDescriptorSize)
|
_Success_(return != FALSE) static BOOL ConvertStringSecurityDescriptorToSecurityDescriptorA(_In_ LPCSTR StringSecurityDescriptor, _In_ DWORD StringSDRevision, _Inout_ winstd::security_attributes &sa, _Out_opt_ PULONG SecurityDescriptorSize)
|
||||||
{
|
{
|
||||||
PSECURITY_DESCRIPTOR sd;
|
PSECURITY_DESCRIPTOR sd;
|
||||||
BOOL bResult = ConvertStringSecurityDescriptorToSecurityDescriptorA(StringSecurityDescriptor, StringSDRevision, &sd, SecurityDescriptorSize);
|
BOOL bResult = ConvertStringSecurityDescriptorToSecurityDescriptorA(StringSecurityDescriptor, StringSDRevision, &sd, SecurityDescriptorSize);
|
||||||
@ -94,7 +94,7 @@ _Success_(return != FALSE) static BOOL WINAPI ConvertStringSecurityDescriptorToS
|
|||||||
///
|
///
|
||||||
/// \sa [ConvertStringSecurityDescriptorToSecurityDescriptor function](https://docs.microsoft.com/en-us/windows/win32/api/sddl/nf-sddl-convertstringsecuritydescriptortosecuritydescriptorw)
|
/// \sa [ConvertStringSecurityDescriptorToSecurityDescriptor function](https://docs.microsoft.com/en-us/windows/win32/api/sddl/nf-sddl-convertstringsecuritydescriptortosecuritydescriptorw)
|
||||||
///
|
///
|
||||||
_Success_(return != FALSE) static BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(_In_ LPCWSTR StringSecurityDescriptor, _In_ DWORD StringSDRevision, _Inout_ winstd::security_attributes &sa, _Out_opt_ PULONG SecurityDescriptorSize)
|
_Success_(return != FALSE) static BOOL ConvertStringSecurityDescriptorToSecurityDescriptorW(_In_ LPCWSTR StringSecurityDescriptor, _In_ DWORD StringSDRevision, _Inout_ winstd::security_attributes &sa, _Out_opt_ PULONG SecurityDescriptorSize)
|
||||||
{
|
{
|
||||||
PSECURITY_DESCRIPTOR sd;
|
PSECURITY_DESCRIPTOR sd;
|
||||||
BOOL bResult = ConvertStringSecurityDescriptorToSecurityDescriptorW(StringSecurityDescriptor, StringSDRevision, &sd, SecurityDescriptorSize);
|
BOOL bResult = ConvertStringSecurityDescriptorToSecurityDescriptorW(StringSecurityDescriptor, StringSDRevision, &sd, SecurityDescriptorSize);
|
||||||
|
@ -704,7 +704,7 @@ static _Success_(return > 0) int NormalizeString(_In_ NORM_FORM NormForm, _In_ c
|
|||||||
|
|
||||||
/// @copydoc LoadStringW
|
/// @copydoc LoadStringW
|
||||||
template<class _Traits, class _Ax>
|
template<class _Traits, class _Ax>
|
||||||
static _Success_(return != 0) int WINAPI LoadStringA(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ std::basic_string<char, _Traits, _Ax> &sBuffer) noexcept
|
static _Success_(return != 0) int LoadStringA(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ std::basic_string<char, _Traits, _Ax> &sBuffer) noexcept
|
||||||
{
|
{
|
||||||
// Get read-only pointer to string resource.
|
// Get read-only pointer to string resource.
|
||||||
LPCSTR pszStr;
|
LPCSTR pszStr;
|
||||||
@ -722,7 +722,7 @@ static _Success_(return != 0) int WINAPI LoadStringA(_In_opt_ HINSTANCE hInstanc
|
|||||||
/// \sa [LoadString function](https://msdn.microsoft.com/en-us/library/windows/desktop/ms647486.aspx)
|
/// \sa [LoadString function](https://msdn.microsoft.com/en-us/library/windows/desktop/ms647486.aspx)
|
||||||
///
|
///
|
||||||
template<class _Traits, class _Ax>
|
template<class _Traits, class _Ax>
|
||||||
static _Success_(return != 0) int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ std::basic_string<wchar_t, _Traits, _Ax> &sBuffer) noexcept
|
static _Success_(return != 0) int LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_ std::basic_string<wchar_t, _Traits, _Ax> &sBuffer) noexcept
|
||||||
{
|
{
|
||||||
// Get read-only pointer to string resource.
|
// Get read-only pointer to string resource.
|
||||||
LPCWSTR pszStr;
|
LPCWSTR pszStr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user