-
Hello, I am currently developing a Rust framework for WSL plugin development, building upon the wsl-plugin-sample. Despite following the setup, I've encountered an error when installing the sample Rust plugin:
I'm having trouble debugging this error. Normally, the entry point should be well defined and I expected some logs to be generated in the specified log file. However, it appears that the WSL service does not recognize the entry point of my plugin. Here is the entry point definition: #[no_mangle]
pub extern "C" fn WSLPLUGINAPI_ENTRYPOINTV1(api: *const WSLPluginAPIV1, hooks: *mut WSLPluginHooksV1) -> HRESULT {
create_plugin(api, hooks).into()
} My project is open source, and I encourage you to review the code here if the information provided is insufficient. Could you assist in resolving this issue? Any guidance or suggestions would be greatly appreciated. Thank you in advance for your assistance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
After building, signing, and registering the plugin
|
Beta Was this translation helpful? Give feedback.
-
I solved the issue. In the header file, the entry point is defined as: #define WSLPLUGINAPI_ENTRYPOINTV1 WSLPluginAPIV1_EntryPoint Thus, the actual name of the entry point is |
Beta Was this translation helpful? Give feedback.
I solved the issue. In the header file, the entry point is defined as:
Thus, the actual name of the entry point is
WSLPluginAPIV1_EntryPoint
notWSLPLUGINAPI_ENTRYPOINTV1
.The name is replaced by the preprocessor using the macro.
So in the context of my rust code I need to use
WSLPluginAPIV1_EntryPoint
.