CryptSetProvParam and PP_CLIENT_HWND

From: Ajith Kumar (AjithKumar_at_discussions.microsoft.com)
Date: 06/29/05


Date: Wed, 29 Jun 2005 04:31:03 -0700


When we use the flag CRYPT_USER_PROTECTED while calling CryptGenKey(..)
function. A dialog box will come to enter password etc.

While looking at CryptSetProvParam with "PP_CLIENT_HWND", MSDN says "If
dwParam is PP_CLIENT_HWND, pbData buffer contains a DWORD value specifying
the window handle that the provider uses when interacting directly with the
user".

Can I use a custom window for accepting password, if it is possible, can any
one help me ?

Thanks in advance.

Regards,
Ajith Kumar.