Simple, make a CSP signature shell, then load the real CSP dynamic library and interface in the shell, take the shell to Microsoft for signature, and then test it directly through CryptAPI. As long as the shell can communicate with your CSP, this is easy to measure.
By the way, windows does not detect csp signatures in debugging environment. If you want to test temporarily, you can first enter the debugging mode of windows to debug.