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.

41 lines
1.3 KiB

  1. /*
  2. * assoc.h - Type association routines description.
  3. */
  4. #ifdef __cplusplus
  5. extern "C" { /* Assume C declarations for C++. */
  6. #endif /* __cplusplus */
  7. /* Global Constants
  8. *******************/
  9. /* assoc.c */
  10. extern const HKEY g_hkeyURLProtocols;
  11. extern const HKEY g_hkeyMIMESettings;
  12. extern CCHAR g_cszURLProtocol[];
  13. extern CCHAR g_cszContentType[];
  14. extern CCHAR g_cszExtension[];
  15. /* Prototypes
  16. *************/
  17. /* assoc.c */
  18. extern BOOL RegisterMIMETypeForExtension(PCSTR pcszExtension, PCSTR pcszMIMEContentType);
  19. extern BOOL UnregisterMIMETypeForExtension(PCSTR pcszExtension);
  20. extern BOOL RegisterExtensionForMIMEType(PCSTR pcszExtension, PCSTR pcszMIMEContentType);
  21. extern BOOL UnregisterExtensionForMIMEType(PCSTR pcszMIMEContentType);
  22. extern BOOL RegisterMIMEAssociation(PCSTR pcszFile, PCSTR pcszMIMEContentType);
  23. extern BOOL RegisterURLAssociation(PCSTR pcszProtocol, PCSTR pcszApp);
  24. extern HRESULT MyMIMEAssociationDialog(HWND hwndParent, DWORD dwInFlags, PCSTR pcszFile, PCSTR pcszMIMEContentType, PSTR pszAppBuf, UINT ucAppBufLen);
  25. extern HRESULT MyURLAssociationDialog(HWND hwndParent, DWORD dwInFlags, PCSTR pcszFile, PCSTR pcszURL, PSTR pszAppBuf, UINT ucAppBufLen);
  26. #ifdef __cplusplus
  27. } /* End of extern "C" {. */
  28. #endif /* __cplusplus */