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.

75 lines
1.5 KiB

  1. /*
  2. ** RCDEFS.H
  3. **
  4. ** author: JeffBog
  5. **
  6. ** Change Log
  7. ** FloydR 3/7/94 Renamed from rcdll.h
  8. */
  9. #ifndef _RCDEFS_H
  10. #define _RCDEFS_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif /* __cplusplus */
  14. #define RC_OK 1
  15. #define RC_FAILED 0
  16. #define RC_CANCELED -1
  17. #define WM_RC_ERROR (0x0400+0x0019)
  18. #define WM_RC_STATUS (0x0400+0x0020)
  19. // How often do I update status information (lineo & RC_xxx == 0)
  20. #define RC_PREPROCESS_UPDATE 63
  21. #define RC_COMPILE_UPDATE 31
  22. extern void UpdateStatus(unsigned nCode, unsigned long dwStatus);
  23. #define MAX_SYMBOL 247 /* from ApStudio */
  24. typedef int (CALLBACK *RC_MESSAGE_CALLBACK)(ULONG, ULONG, PCHAR);
  25. typedef struct tagRESINFO_PARSE
  26. {
  27. LONG size;
  28. PWCHAR type;
  29. USHORT typeord;
  30. PWCHAR name;
  31. USHORT nameord;
  32. WORD flags;
  33. WORD language;
  34. DWORD version;
  35. DWORD characteristics;
  36. } RESINFO_PARSE, *PRESINFO_PARSE;
  37. typedef struct tagCONTEXTINFO_PARSE
  38. {
  39. HANDLE hHeap;
  40. HWND hWndCaller;
  41. RC_MESSAGE_CALLBACK lpfnMsg;
  42. unsigned line;
  43. PCHAR format;
  44. } CONTEXTINFO_PARSE, *PCONTEXTINFO_PARSE;
  45. typedef int (CALLBACK *RC_PARSE_CALLBACK)(PRESINFO_PARSE lpRes, void** lplpData,
  46. PCONTEXTINFO_PARSE lpContext);
  47. typedef int (CALLBACK *RCPROC)(HWND hWndCaller, int fStatus,
  48. RC_MESSAGE_CALLBACK lpfnMsg, RC_PARSE_CALLBACK lpfnParse,
  49. int argc, PCHAR* argv);
  50. int CALLBACK RC(HWND hWndCaller, int fStatus,
  51. RC_MESSAGE_CALLBACK lpfnMsg, RC_PARSE_CALLBACK lpfnParse,
  52. int argc, PCHAR* argv);
  53. int RCPP(int argc, PCHAR *argv, PCHAR env);
  54. #define RC_ORDINAL (MAKEINTRESOURCE(2))
  55. #ifdef __cplusplus
  56. }
  57. #endif
  58. #endif // _RCDEFS_H