Skip to content

Commit

Permalink
空壳BCryptImportKeyPair
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Jul 14, 2024
1 parent 6da97ed commit b5e7601
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Thunks/bcrypt.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3029,4 +3029,34 @@ namespace YY::Thunks
return S_OK;
}
#endif


#if (YY_Thunks_Target < __WindowsNT6)

// 最低受支持的客户端 Windows Vista [桌面应用 | UWP 应用]
// 最低受支持的服务器 Windows Server 2008[桌面应用 | UWP 应用]
__DEFINE_THUNK(
bcrypt,
8,
NTSTATUS,
WINAPI,
BCryptImportKeyPair,
_In_ BCRYPT_ALG_HANDLE _hAlgorithm,
_In_opt_ BCRYPT_KEY_HANDLE _hImportKey,
_In_z_ LPCWSTR _szBlobType,
_Out_ BCRYPT_KEY_HANDLE* _phKey,
_In_reads_bytes_(_cbInput) PUCHAR _pInput,
_In_ ULONG _cbInput,
_In_ ULONG _fFlags
)
{
if (const auto _pfnBCryptImportKeyPair = try_get_BCryptImportKeyPair())
{
return _pfnBCryptImportKeyPair(_hAlgorithm, _hImportKey, _szBlobType, _phKey, _pInput, _cbInput, _fFlags);
}

__WarningMessage__("尚未完成!");
return S_OK;
}
#endif
}

0 comments on commit b5e7601

Please sign in to comment.