Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

SGXAPI, what is it?

Ícaro_Lima
ビギナー
1,270件の閲覧回数

In some SGX methods itself I have seen a prefix before the method return, "SGXAPI", what is this?

Maybe I did not read enough, but I could not find anything.

0 件の賞賛
1 解決策
Francisco_C_Intel
従業員
1,270件の閲覧回数

Hi.

In Windows, you can find this in the IntelSGXSDK\include\sgx_defs.h file:

#if defined(_MSC_VER)
/* The following macros are MSVC only */
# define SGXAPI __cdecl

 

This is to explicitly define the API as __cdecl instead of __stdcall.

 

Francisco

元の投稿で解決策を見る

2 返答(返信)
Francisco_C_Intel
従業員
1,271件の閲覧回数

Hi.

In Windows, you can find this in the IntelSGXSDK\include\sgx_defs.h file:

#if defined(_MSC_VER)
/* The following macros are MSVC only */
# define SGXAPI __cdecl

 

This is to explicitly define the API as __cdecl instead of __stdcall.

 

Francisco

Ícaro_Lima
ビギナー
1,270件の閲覧回数

Thank you!

返信