CRP.C
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:66k
源码类别:
Windows编程
开发平台:
Visual C++
- /******************************************************************************
- * This is a part of the Microsoft Source Code Samples.
- * Copyright 1996-1997 Microsoft Corporation.
- * All rights reserved.
- * This source code is only intended as a supplement to
- * Microsoft Development Tools and/or WinHelp documentation.
- * See these sources for detailed information regarding the
- * Microsoft samples programs.
- ******************************************************************************/
- // CRP.C
- #include "cfiler.h"
- HCRYPTPROV hMe;
- ALG_ID AlgidEncrypt;
- ALG_ID AlgidSign;
- TCHAR sPass[BUF_SIZE];
- TCHAR szPassName[BUF_SIZE];
- extern HANDLE ghModule;
- extern HMENU ghMenu;
- /************************************************************************
- * EnterPass()
- *
- * Dialog procedure for the "PASSWORD" dialog box.
- *
- * Stores the password entered by the user into
- * the global buffer sPass
- ************************************************************************/
- WINAPI EnterPass(HWND hDlg, UINT wMsgID, UINT wParam, LPARAM lParam) {
- TCHAR szMessage[BUF_SIZE];
- switch(wMsgID) {
- case WM_INITDIALOG:
- lstrcpy(szMessage, TEXT("Enter password: "));
- lstrcat(szMessage, szPassName);
- SetDlgItemText(hDlg, IDC_PASSTEXT, szMessage);
- SetDlgItemText(hDlg, IDC_EDIT1, TEXT("