PKCS # 11 C_getfunctionlist en un dll

Estoy tratando de escribir una DLL que eventualmente se conectará a un token virtual. Intenté crear una función de lista de funciones C exportable que contenga direcciones de puntero a las funciones admitidas por el estándar PCKS # 11, pero no puedo entender por qué no puedo acceder a esas funciones en el programa que usa la DLL. Intenté cargar sólo la función C_Initialize.

extern "C" __declspec(dllexport)
CK_RV C_GetFunctionList(CK_FUNCTION_LIST_PTR_PTR ppFunctionList) {
    CK_FUNCTION_LIST_PTR function_list;
    function_list=new CK_FUNCTION_LIST;
    function_list->C_Initialize=&C_Initialize;
    ppFunctionList=&function_list;
return CKR_OK;

 }

Respuestas a la pregunta(1)

Su respuesta a la pregunta