Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: pvk.h
  8. //
  9. // Contents: Shared types and functions
  10. //
  11. // APIs:
  12. //
  13. // History: 12-May-96 philh created
  14. //--------------------------------------------------------------------------
  15. #ifndef __PVK_H__
  16. #define __PVK_H__
  17. #include "pvkhlpr.h"
  18. #include "pvkdlgs.h"
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. //+-------------------------------------------------------------------------
  23. // Pvk allocation and free routines
  24. //--------------------------------------------------------------------------
  25. void *PvkAlloc(
  26. IN size_t cbBytes
  27. );
  28. void PvkFree(
  29. IN void *pv
  30. );
  31. //+-------------------------------------------------------------------------
  32. // Enter or Create Private Key Password Dialog Box
  33. //--------------------------------------------------------------------------
  34. enum PASSWORD_TYPE {
  35. ENTER_PASSWORD = 0,
  36. CREATE_PASSWORD
  37. };
  38. int PvkDlgGetKeyPassword(
  39. IN PASSWORD_TYPE PasswordType,
  40. IN HWND hwndOwner,
  41. IN LPCWSTR pwszKeyName,
  42. OUT BYTE **ppbPassword,
  43. OUT DWORD *pcbPassword
  44. );
  45. #ifdef __cplusplus
  46. } // Balance extern "C" above
  47. #endif
  48. #endif