Windows 7 - Getting certificate date stamp fails.
Asked By Eric Cobber
25-Jan-10 11:09 AM
Hello,
I was trying to set and get the date/time stamp for when a certificate
was added to the certificate store. I used the CAPI function
''CertSetCertificateContextProperty()", but it always returns
0x8007000E (E_OUTOFMEMORY) which is a very strange error code.
I have verified that the certificate itself is successfully added to
the store i.e. the CAPI function CertAddCertificateContextToStore()
returns TRUE and the certificate can be found in the store, which
means that my HCERTSTORE context is valid.
I use the following call immediately after adding the certificate to
the store (ADDRESSBOOK):
FILETIME fileTime;
SYSTEMTIME systemTime;
GetSystemTime(&systemTime);
SystemTimeToFileTime(&systemTime, &fileTime)
CertSetCertificateContextProperty(ctx, CERT_DATE_STAMP_PROP_ID, 0,
&fileTime)
Why does it fail?
Has someone managed to get it to work?
Btw, I am testing this on a 32-bits Vista machine.
Thanks.
Eric
Vista
(1)
SystemTimeToFileTime
(1)
GetSystemTime
(1)
OUTOFMEMORY
(1)
ADDRESSBOOK
(1)
HCERTSTORE
(1)
SYSTEMTIME
(1)
Theories
(1)
Eric Cobber replied to Eric Cobber
Any theories/suggestions anyone?
Both laptop and desktop Vista and W-7. . . . Windows 7 Both laptop and desktop Vista PCs, including the new W-7 will no longer work with dial-up. What MS not use the old XP PC anymore. How do we get dial-up back on Vista and W-7? Windows Vista Discussions Windows XP (1) Windows Update (1) Windows 7 (1) Error (1) Vista (1) Describe (1) Foreign (1) Backup (1) On 13 Oct 2010, "Valorie *~~" <ValMcl@invalid.invalid see their modems. What other details do you need? Oh, two of the PCs have Vista and one has W-7. When we try to make a connection the PCs suddenly already. But thanks for the suggestion. Now, have you any idea what could cause 2 Vista PCs and a W-7 from suddenly not seeing it is modem anymore? They did the PCs in weeks. Just the usual MS updates. When I could not connect with Vista again today I turned on the laptop with Vista. That one could not see it
How to fix MBR for Vista Windows 7 I am trying to fix Vista boot sector by "Repair" from original DVD, but bootsect and bootrec does not seem to resolve the problem. Configuration: Vista Ultimate x64 SP2 installed on C: drive (partition 1) Steps: 1. Backup and delete C It is interesting that it is size is around 330kb, while the one on original Vista DVD has more than 400kb. Is there difference between original Vista and SP2? Is bootmgr on a system with SP2 compatible with boot sector created by the DVD which has first version of Vista? I ran the checkdsk, but no errors were found. If I select "Repair OS startup sector by GRUB boot loader and start Linux, but I cannot fix boot sector for Vista. Is there another way to fix MBR and boot sector of the partition? Thanks. Windows Vista Discussions Visual Studio (1) Windows 7 (1) Vista (1) Linux (1) GRUB boot loader (1
Vista sp1 takes more then 24 hours. . Windows 7 Hello, I have a question. . . I am trying to install SP1 for Vista. . .but its now already more then 24 hours busy. My laptop is restarting every 3 for the help greets Charley Windows Update Discussions Windows XP (1) Windows Update (1) Windows Vista (1) Vista (1) Windows Vista Service Pack 1 (1) Disk (1) Windows Service Packs (1) Computer (1) Is SP1 being e.g., a free-trial version that came preinstalled when you bought it)? Support for Vista Gold (no Service Packs) ended on Tuesday, 13 April 2010. Computers still running Vista Gold "will no longer receive software updates [e.g., SP1] from Windows Update" until SP1 See http: / / windowsteamblog.com / blogs / windowsvista / archive / 2010 / 04 / 13 / end-of-support-for-windows-vista-with-no-services-packs.aspx. ??? What does it mean if my version of Windows is
XP vs. Vista Windows 7 Have a small network consisting of one Win XP Media Center Ed. and one Vista home premium (and an Internet router). The Vista crashed and was restored to factory and apps reinstalled, etc. Each computer has dedicated IP a version of Norton Internet Security. They are in the same workgroup. Prior to the Vista problem, all was generall well. Now, the XP seems to lose network connectivity to the Vista computer when the computers are turned on in the morning. This is important for many reasons, including that the XP uses a printer attached to the Vista for most of the XP's printing needs. I have set up a user on Vista that matches the user on XP, and have set the NIS on Vista to allow all connections to the IP of the XP box. And all is well
vista ruined everything Windows 7 when vista came out everyone was trying to escape by getting xp. . . then they started using ipods 7 came out and everyone is trying to get rid of the crap OS named vista. The vista infection still exists. . . but it will die very soon. . . everyone who is still using this crap is a moron! Windows Vista Discussions Windows XP (1) Windows Server 2008 (1) Windows Vista (1) Office 2010 (1) Office 2007 (1) Windows 7 (1) Linux (1) Adobe (1) In article <4bd2ae0f$1@news.x-privat.org> , baracuda@slim.ws says. . . I am running Vista, and never had a problem. It works fine. Win7 (Windows 6.1) is just a patched up Vista (Windows 6.0). - - If there is a no_junk in my address, please REMOVE it before