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.

68 lines
2.2 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: mssip32.h
  8. //
  9. // Contents: Microsoft SIP Provider
  10. //
  11. // Functions: DllMain
  12. //
  13. // History: 14-Feb-1997 pberkman created
  14. //
  15. //--------------------------------------------------------------------------
  16. #ifndef MSSIP32_H
  17. #define MSSIP32_H
  18. #define MSSIP_ID_NONE 0 // file only types
  19. #define MSSIP_ID_PE 1
  20. #define MSSIP_ID_JAVA 2
  21. #define MSSIP_ID_CAB 3
  22. #define MSSIP_ID_FLAT 4
  23. #define MSSIP_ID_CATALOG 5
  24. #define MSSIP_ID_CTL 6
  25. #define MSSIP_ID_SS 7
  26. #define MSSIP_V1ID_BEGIN 200
  27. #define MSSIP_V1ID_PE 201
  28. #define MSSIP_V1ID_PE_EX 202
  29. #define MSSIP_V1ID_END 299
  30. #define MSSIP_SUBJECT_FORM_FILE 1
  31. #define MSSIP_SUBJECT_FORM_FILEANDDISP 2
  32. #define MSSIP_CURRENT_VERSION 0x00000300
  33. #define OFFSETOF(t,f) ((DWORD)((DWORD_PTR)&((t*)0)->f))
  34. #define OBSOLETE_TEXT_W L"<<<Obsolete>>>" // valid since 2/14/1997
  35. #define HASH_CACHE_LEN 128
  36. typedef void *HSPCDIGESTDATA;
  37. typedef struct DIGEST_DATA
  38. {
  39. HCRYPTHASH hHash;
  40. DWORD cbCache;
  41. BYTE pbCache[HASH_CACHE_LEN];
  42. DWORD dwAlgId;
  43. void *pvSHA1orMD5Ctx;
  44. } DIGEST_DATA, *PDIGEST_DATA;
  45. extern BOOL WINAPI DigestFileData( IN HSPCDIGESTDATA hDigestData,
  46. IN const BYTE *pbData,
  47. IN DWORD cbData);
  48. extern void SipDestroyHash(DIGEST_DATA *psDigestData);
  49. extern BYTE *SipGetHashValue(DIGEST_DATA *psDigestData, DWORD *pcbHash);
  50. extern BOOL SipHashData(DIGEST_DATA *psDigestData, BYTE *pbData, DWORD cbData);
  51. extern BOOL SipCreateHash(HCRYPTPROV hProv, DIGEST_DATA *psDigestData);
  52. extern void CryptSIPGetRegWorkingFlags(DWORD *pdwState);
  53. #endif // MSSIP32_H