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. /* CustRes.h
  2. *
  3. * Header file for CustRes.c
  4. */
  5. #ifndef _CUSTRES_H_
  6. #define _CUSTRES_H_
  7. #include <stdio.h>
  8. #ifndef BYTELN
  9. #include "restok.h"
  10. #endif
  11. #ifndef CHAR
  12. #define CHAR char
  13. #endif
  14. typedef struct Custom_Resource
  15. {
  16. void far *pData;
  17. struct Custom_Resource far* pNext;
  18. } CUSTOM_RESOURCE;
  19. typedef CUSTOM_RESOURCE far * FPCUSTOM_RESOURCE;
  20. int ParseResourceDescriptionFile(FILE *ResourceDescriptionFile,
  21. int *piErrorLine);
  22. void ClearResourceDescriptions(void);
  23. int GetCustomResource(FILE *inResFile, DWORD *lSize,
  24. FPCUSTOM_RESOURCE *ppCustomResource,
  25. RESHEADER ResHeader);
  26. void TokCustomResource(FILE *TokFile, RESHEADER ResHeader,
  27. FPCUSTOM_RESOURCE*ppCustomResource);
  28. void PutCustomResource(FILE *OutResFile, FILE *TokFile,
  29. RESHEADER ResHeader,
  30. FPCUSTOM_RESOURCE *ppCustomResource);
  31. void ClearCustomResource(FPCUSTOM_RESOURCE *ppCustomResource);
  32. int ParseResourceDescriptionFile(FILE *,int *);
  33. int LoadCustResDescriptions( CHAR *);
  34. WCHAR * BinToTextW( WCHAR rgc[], int cSource);
  35. char * BinToTextA( CHAR rgc[], int cSource);
  36. int TextToBinW( TCHAR rgc[], TCHAR sz[], int l);
  37. int TextToBinA( CHAR rgc[], CHAR sz[], int l);
  38. #ifdef RLRES32
  39. #define TextToBin TextToBinW
  40. #define BinToText BinToTextW
  41. #else //RLRES32
  42. #define TextToBin TextToBinA
  43. #define BinToText BinToTextA
  44. #endif //RLRES32
  45. int atoihex( CHAR szStr[]);
  46. #endif // _CUSTRES_H_