Re: CertAddCertificateContextToStore
From: Valery Pryamikov (Valery_at_nospam.harper.no)
Date: 04/06/04
- Previous message: henghuei: "CRYPT_SILENT"
- In reply to: Mario: "Re: CertAddCertificateContextToStore"
- Next in thread: Mario: "Re: CertAddCertificateContextToStore"
- Reply: Mario: "Re: CertAddCertificateContextToStore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Tue, 6 Apr 2004 18:15:25 +0200
Mario,
Unfortunately I can't give you more info on this, sorry. I found the problem
on FSC Pocket LOOX October last year, confirmed that it was a bug, but never
have checked its status after that. I'd recommend you to contact your vendor
support.
-Valery.
"Mario" <nospam.mario.dambauer@nospam.gmx.at> wrote in message
news:uafREQ9GEHA.1720@tk2msftngp13.phx.gbl...
> Thats exactly whats going on, I can import the root cert without a
> problem!!!!
>
> What is this bug about?
> can you give me a little bit more info?
>
> Thanks!!!
>
>
> "Valery Pryamikov" <Valery@nospam.harper.no> wrote in message
> news:OkoM6H9GEHA.2844@tk2msftngp13.phx.gbl...
>> I can't say anything regarding XP-Embedded (I have never tried it or even
>> saw it), but you can try to run your program with different store and see
> if
>> it makes a difference. It could be just a bug like the one I saw in the
>> first distribution of PocketPC 2003 from Fujitsu Siemens for Pocket LOOX
>> where certificate import was working for "Root" but returned
> E_ACCESSDENIED
>> for "My" store.
>>
>> -Valery.
>>
>> http://www.harper.no/valery
>>
>> "Mario" <nospam.mario.dambauer@nospam.gmx.at> wrote in message
>> news:uq9TQn8GEHA.1720@tk2msftngp13.phx.gbl...
>> >
>> > Thanks Valery, thats clear, but how to fix this error?
>> >
>> > My code works on XP-Professional, but on XP-Embedded I always get this
>> > error...
>> >
>> > Is it possible that the store is not existing?
>> > Or could it be a problem that I am using the Administrator User on XP
>> > Embedded (there I have only the admin user)
>> >
>> > Any ideas would be helpful....
>> >
>> > Thanks
>> >
>> > "Valery Pryamikov" <Valery@nospam.harper.no> wrote in message
>> > news:OK1Reb8GEHA.3176@TK2MSFTNGP12.phx.gbl...
>> >> Hi,
>> >>
>> >> 2147942405 == 0x80070005 == E_ACCESSDENIED.
>> >>
>> >> -Valery.
>> >>
>> >> http://www.harper.no/valery
>> >>
>> >> "Mario" <nospam.mario.dambauer@nospam.gmx.at> wrote in message
>> >> news:eAlkk06GEHA.3880@TK2MSFTNGP10.phx.gbl...
>> >> > When I try to run CertAddCertificateContextToStore I get an error
>> > message:
>> >> >
>> >> > Application Error
>> >> > The instruction at ".." referenced mem at "..". The mem could net be
>> >> > written"....
>> >> >
>> >> > The returned error code of GetLastError is: 2147942405
>> >> >
>> >> > I don't know whats wrong, I am using this code:
>> >> >
>> >> > pfxStore = PFXImportCertStore(&blob, password, CRYPT_MACHINE_KEYSET
>> >> > |
>> >> > CRYPT_EXPORTABLE);
>> >> > ...
>> >> > myStore = CertOpenStore(CERT_STORE_PROV_SYSTEM, 0, NULL,
>> >> > CERT_STORE_OPEN_EXISTING_FLAG | CERT_SYSTEM_STORE_LOCAL_MACHINE,
>> >> > L"MY");
>> >> > ...
>> >> > while (0 != (pctx = CertEnumCertificatesInStore(pfxStore, pctx)))
>> >> > ....
>> >> > if (!CertAddCertificateContextToStore(myStore, pctx,
>> >> > CERT_STORE_ADD_NEW,
>> >> > NULL))
>> >> > {
>> >> > err = GetLastError();
>> >> > ...
>> >> >
>> >> > myStore and pctx are valid pointers, but the result is always the
> same!
>> >> >
>> >> > Any ideas on fixing this error?
>> >> > Thanks in advance.
>> >> >
>> >> > Mario
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>
- Previous message: henghuei: "CRYPT_SILENT"
- In reply to: Mario: "Re: CertAddCertificateContextToStore"
- Next in thread: Mario: "Re: CertAddCertificateContextToStore"
- Reply: Mario: "Re: CertAddCertificateContextToStore"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]