I have a simple VB application to load a *.pfx file into localMachine
certificate store using the CAPICOM api. It seems to work fine on
Windows XP, however when I try and run it on Win98SE. I get an error
on the load method "Incorrect Parameter" I have tried different
combinations but they all seem to fail in the same way. The Load
works fine to CurrentUser,My store on Win98. It doesn't seem to like
importing to localMachine,root on win98?
Dim st As New Store
Dim storeLocation As CAPICOM_STORE_LOCATION
Dim storeName As String
Dim fileName As String
storeName = "Root"
storeLocation = CAPICOM_LOCAL_MACHINE_STORE
fileName = "certname.pfx"
st.Open storeLocation, storeName, CAPICOM_STORE_OPEN_READ_WRITE
st.Load fileName, "password", CAPICOM_KEY_STORAGE_DEFAULT
Any ideas are much appreciated.
Thanks,
Kevin