Source code of Windows XP (NT5)
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.

105 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. cmnull.hxx
  5. Abstract:
  6. Null reference mapper
  7. Author:
  8. Philippe Choquier (phillich) 25-oct-1996
  9. --*/
  10. #if !defined(_CMNULL_INCLUDE)
  11. #define _CMNULL_INCLUDE
  12. #include <certmap.h>
  13. #define IIS_MAPPER_SIGNATURE 0x7d93bc53
  14. typedef VOID (WINAPI FAR *PFN_TERMINATE_CERT_MAP)();
  15. typedef BOOL (WINAPI FAR *PFN_INIT_CERT_MAP)( HMAPPER** );
  16. typedef struct _IisMapper {
  17. HMAPPER hMapper;
  18. HINSTANCE hInst;
  19. LONG lRefCount;
  20. BOOL fIsIisCompliant;
  21. MAPPER_VTABLE mvtEntryPoints;
  22. DWORD dwSignature;
  23. LPVOID pCert11Mapper;
  24. LPVOID pCertWMapper;
  25. DWORD dwInstanceId;
  26. LPVOID pvInfo;
  27. } IisMapper;
  28. #ifndef dllexp
  29. #define dllexp __declspec( dllexport )
  30. #endif
  31. dllexp LONG WINAPI NullReferenceMapper(
  32. HMAPPER *phMapper // in
  33. );
  34. dllexp LONG WINAPI NullDeReferenceMapper(
  35. HMAPPER *phMapper // in
  36. );
  37. dllexp DWORD WINAPI NullGetIssuerList(
  38. HMAPPER *phMapper, // in
  39. VOID * Reserved, // in
  40. BYTE * pIssuerList, // out
  41. DWORD * pcbIssuerList // out
  42. );
  43. dllexp DWORD WINAPI NullGetChallenge(
  44. HMAPPER *phMapper, // in
  45. BYTE * pAuthenticatorId, // in
  46. DWORD cbAuthenticatorId, // in
  47. BYTE * pChallenge, // out
  48. DWORD * pcbChallenge // out
  49. );
  50. dllexp DWORD WINAPI NullMapCredential(
  51. HMAPPER * phMapper,
  52. DWORD dwCredentialType,
  53. const VOID* pCredential, // in
  54. const VOID* pAuthority, // in
  55. HLOCATOR * phToken
  56. );
  57. dllexp DWORD WINAPI NullCloseLocator(
  58. HMAPPER *phMapper,
  59. HLOCATOR hLocator //in
  60. );
  61. dllexp DWORD WINAPI NullGetAccessToken(
  62. HMAPPER *phMapper,
  63. HLOCATOR hLocator, // in
  64. HANDLE * phToken // out
  65. );
  66. dllexp DWORD WINAPI NullQueryMappedCredentialAttributes(
  67. HMAPPER *phMapper, // in
  68. HLOCATOR hLocator, // in
  69. ULONG ulAttribute, // in
  70. PVOID pBuffer, //out
  71. DWORD *pcbBuffer // in out
  72. );
  73. #endif