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.

63 lines
1.6 KiB

  1. #ifndef __BASECSP__PINLIB__H
  2. #define __BASECSP__PINLIB__H
  3. #include <windows.h>
  4. #include <basecsp.h>
  5. //
  6. // Function: PinStringToBytesA
  7. //
  8. DWORD
  9. WINAPI
  10. PinStringToBytesA(
  11. IN LPSTR szPin,
  12. OUT PDWORD pcbPin,
  13. OUT PBYTE *ppbPin);
  14. //
  15. // Function: PinStringToBytesW
  16. //
  17. DWORD
  18. WINAPI
  19. PinStringToBytesW(
  20. IN LPWSTR wszPin,
  21. OUT PDWORD pcbPin,
  22. OUT PBYTE *ppbPin);
  23. //
  24. // Function: PinShowGetPinUI
  25. //
  26. typedef struct _PIN_SHOW_GET_PIN_UI_INFO
  27. {
  28. IN PCSP_STRING pStrings;
  29. IN LPWSTR wszPrincipal;
  30. IN LPWSTR wszCardName;
  31. IN HWND hClientWindow;
  32. // The Pin Dialog code will pass the PPIN_SHOW_GET_PIN_UI_INFO pointer as
  33. // the second parameter to the VerifyPinCallback (not the pvCallbackContext
  34. // member).
  35. IN PFN_VERIFYPIN_CALLBACK pfnVerify;
  36. IN PVOID pvCallbackContext;
  37. IN HMODULE hDlgResourceModule;
  38. // If the VerifyPinCallback fails with SCARD_E_INVALID_CHV, this member
  39. // will be set to the number of pin attempts remaining before the card
  40. // will be blocked. If the value is set to ((DWORD) -1), the number of
  41. // attempts remaining is Unknown.
  42. DWORD cAttemptsRemaining;
  43. // Caller of PinShowGetPinUI must free pbPin if
  44. // it's non-NULL.
  45. OUT PBYTE pbPin;
  46. OUT DWORD cbPin;
  47. OUT DWORD dwError;
  48. } PIN_SHOW_GET_PIN_UI_INFO, *PPIN_SHOW_GET_PIN_UI_INFO;
  49. DWORD
  50. WINAPI
  51. PinShowGetPinUI(
  52. IN OUT PPIN_SHOW_GET_PIN_UI_INFO pInfo);
  53. #endif