Sign in
Windows SDK Support Team Blog
#define _WIN32_WINNT
Translate This Page
Translate this page
Powered by
Microsoft® Translator
Common Tasks
Blog Home
Email Blog Author
OK
RSS for comments
RSS for posts
Atom
Search
Tags
Access Denied
Base
certificate
Certification
CreateProcessAsUser
CreateProcessWithLogonW
Crypto
CryptographicException
integrity level
LogonUser
LogonUser()
Microsoft Platform Ready Test Tool
MPR Test Tool
Networking
performance counters
Security
Service
SeTcbPrivilege
setsockopt
signtool
Token
UAC
windows media
windows media encoder
WTSQueryUserToken
Monthly Archives
Archives
May 2013
(3)
April 2013
(2)
March 2013
(2)
February 2013
(3)
January 2013
(1)
September 2012
(2)
November 2010
(3)
August 2010
(2)
May 2010
(12)
January 2010
(7)
December 2009
(2)
November 2009
(30)
October 2009
(4)
September 2009
(1)
August 2009
(1)
July 2009
(7)
Subscribe via RSS
Sort by:
Most Recent
|
Most Views
|
Most Comments
Excerpt View
|
Full Post View
Windows SDK Support Team Blog
CryptAcquireCertificatePrivateKey fails with CRYPT_E_NO_KEY_PROPERTY (0x8009200B ) when trying to obtain access to a user's private key on machine's after the user changes his password.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
You create a key container on a machine for a specific user on the user’s profile. You log off the user and login with the administrator account and forcibly change the user’s password. Next time if you log on to the machine with the...
Windows SDK Support Team Blog
Error with WMEncoderLib when trying to build a 64 bit version of your application.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
You may get a runtime error with your 64 bit managed Windows Media Encoder application while the 32 bit application runs perfect. This happens basically when your application tries to encode or more specifically transcode certain files that usually...
Windows SDK Support Team Blog
How to update security bulletin MS10-013 on a Windows Server 2000 box?
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
While updating your Windows 2000 box with latest security fixes you may get a situation where you may be stuck with the security fix MS10-013 asking you to update the latest DirectX. Basically this happens when you are doing a system update with the...
Windows SDK Support Team Blog
Understanding of SignedCms.CheckSignature(True)
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
An understanding of SignedCms.CheckSignature(True) based on the code stated below. ' Create a ContentInfo object from the inner content obtained ' independently from encodedMessage. Dim contentInfo As New ContentInfo(innerContent...
Windows SDK Support Team Blog
Behaviour of AesCryptoServiceProvider class with FIPS policy set/ unset
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
You may want to use a Crypto API for Advanced Encryption Standard that is FIPS 140-2 complaint. While doing this using managed code you can come across the AesCryptoServiceProvider class that is FIPS complaint. I want to highlight some points before...
Windows SDK Support Team Blog
Passing the flag CERT_CLOSE_STORE_FORCE_FLAG to CertCloseStore may cause your application to crash.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
CertCloseStore is called with flag CERT_CLOSE_STORE_FORCE_FLAG. This flag forces CertCloseStore to free memory for all contexts associated with the store. This flag can be safely used only when the store is opened in a function and neither the store handle...
Windows SDK Support Team Blog
Application deadlock while calling a CAPI function within DllMain
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
I have seen developers trying to call cryptographic functions/ API’s within DllMain and thereby creating a hang in their application that calls this DLL. The reason behind this is not the cryptographic API but this is a classical deadlock example. This...
Windows SDK Support Team Blog
VB.NET code to find a certificate with its issuer name and display its contents – small post but helpful
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
This is a small blog post but I found it handy and useful to document. I created a test certificate with name “shmisra” and kept it in the “Personal” store in the users profile as shown below. I read this certificate and print its details using the code...
Windows SDK Support Team Blog
'System.Security.Cryptography.CryptographicException - The index value is not valid'
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
While trying to extract the public key from a certificate you may get an exception that says: 'System.Security.Cryptography.CryptographicException - The index value is not valid'. The exact error is CRYPT_E_INVALID_INDEX which means "The index value...
Windows SDK Support Team Blog
You may get a service timeout from a signed .NET/ managed service application while the system is doing a revocation check of the certificate over the internet.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
You may get a service timeout from your signed .NET service application while the OS does a revocation check to verify the certificate that signed the EXE. The reason behind this time out is because of a worker thread which is waiting for a response from...
Windows SDK Support Team Blog
What should you do if you find that DecryptMessage (Schannel) function returns SEC_E_INVALID_TOKEN; which means the buffers are of wrong type or no buffer of type SECBUFFER_DATA was found.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
DecryptMessage (Schannel) function returns SEC_E_INVALID_TOKEN, means the buffers are of the wrong type or no buffer of type SECBUFFER_DATA was found. In short the buffers are not set properly. A quick reference is the example at the link http://msdn...
Windows SDK Support Team Blog
While creating cryptographic keys or key containers repeatedly, your hard disk may get filled with lots of files and may end up filling the whole hard disk space, if not deleted.
Posted
over 3 years ago
by
Prateek Kr Dubey
0
Comments
A cryptographic service provider creates key containers for storing RSA public/private asymmetric key pairs. Key containers are stored in the user profiles unless you specify the machine key folder. Say you use RSACryptoServiceProvider class to create...
Windows SDK Support Team Blog
I lost the “Security” tab of offline files synced by Sync Centre !!
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
In Windows Vista and later there is a cool feature of making network shared files available offline and maintaining the synchronization through a newly added component called Sync Centre. You may find more information about it here: Explore...
Windows SDK Support Team Blog
ExpandEnvironmentStringsForUser() API does NOT expand the environment variable %USERNAME% on Windows 7.
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
ExpandEnvironmentStringsForUser() API does not expand the environment variable %USERNAME% on Windows 7 and Windows Server 2008 R2, if hToken value is obtained only by using TOKEN_IMPERSONATE | TOKEN_QUERY flags for OpenProcessToken. To expand...
Windows SDK Support Team Blog
How to disable Address Space Layout Randomization (ASLR) ?
Posted
over 4 years ago
by
Prateek Kr Dubey
3
Comments
Here is the scenario - You have a legacy application where you wish to load a DLL or module at a fixed or preferred base address. Why would you need it?, that is because in the EXE or DLL code you may make use of the absolute addresses and...
Windows SDK Support Team Blog
GetIPForwardTable return’s undocumented error ERROR_MORE_DATA
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Symptom: ======= GetIPForwardTable return’s undocumented error ERROR_MORE_DATA where it should actually return ERROR_INSUFFICIENT_BUFFER in a Windows XP environment. Questions: ========= Is this an expected behavior? How we should handle the situation...
Windows SDK Support Team Blog
ARP Changes in Server 2008/Vista:
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Introduction: ARP is used to perform Duplicate Address Detection by sending an ARP request in which the Target Protocol Address is set to the IP address for which duplication is being detected. In other words, to detect whether other...
Windows SDK Support Team Blog
Web Service can’t start the Windows Service
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Working with Windows Service and Web Service together is nothing less than fun, especially when you are not an ASP.NET expert. Like many native developers I have my own challenges with words like managed, web service and web applications! I was debugging...
Windows SDK Support Team Blog
Web application gets Access Denied accessing a Named Pipe.
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Recently, I was troubleshooting a problem for one of my customers. A named pipe created by a native C application was not accessible by web client. The actual product is a convention Windows application which does IPC through named pipes. Both server...
Windows SDK Support Team Blog
Where are my performance counters ?
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Your custom created 32 bit performance counters do not show counter information when generating logs using user defined Data collector Set with 32 bit “PerfMon” tool on 64 bit windows Server 2008 machine. However, you are able to get live performance...
Windows SDK Support Team Blog
Send multiple files to FAX in one call
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
There might be a need that an application need to send multiple files to the FAX server in one single call. While IFaxDocument::ConnectedSubmit Method allows to send a single file to FAX in one call, IFaxDocument2::ConnectedSubmit2 Method can be used...
Windows SDK Support Team Blog
When custom EAP authentication dll calls EapPeerInvokeInteractiveUI for wireless LAN 802.1x
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
When custom EAP authentication dll calls EapPeerInvokeInteractiveUI for wireless LAN 802.1x, a dialog box is displayed and a balloon is popped-up on Windows Vista machine. And the developer of the EAP authentication dll, needs to suppress dialog box and...
Windows SDK Support Team Blog
Introduction to IMAPI
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
In the recent past, I have seen few question coming to me saying, “How do I write data on the CD/DVD disk programmatically?” . During my research, I came across the interfaces available on Windows for burning CD/DVD programmatically that I want to share...
Windows SDK Support Team Blog
UAC dialog on Process.Start()
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
Symptom: You may get Security Warning dialog while launching a process using fully qualified domain name path of the image. The warning dialog does not occur if image path is UNC path. For example, following piece of code will get the security warning...
Windows SDK Support Team Blog
Opps!!! System.Security.Cryptography.CryptographicException: The system cannot find the file specified.
Posted
over 4 years ago
by
Prateek Kr Dubey
0
Comments
If you are creating the cryptographic keys on the user's profile directory you may get a cryptographic exception saying: "CryptographicException: The system cannot find the file specified". The stack trace looks like: System.Security.Cryptography...
Page 2 of 4 (82 items)
1
2
3
4