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.

83 lines
2.1 KiB

  1. /***********************************************************************
  2. * Microsoft (R) Windows (R) Resource Compiler
  3. *
  4. * Copyright (c) Microsoft Corporation. All rights reserved.
  5. *
  6. * File Comments:
  7. *
  8. *
  9. ***********************************************************************/
  10. #ifndef _RCDEFS_H
  11. #define _RCDEFS_H
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif /* __cplusplus */
  15. #define RC_OK 1
  16. #define RC_FAILED 0
  17. #define RC_CANCELED -1
  18. #define WM_RC_ERROR (0x0400+0x0019)
  19. #define WM_RC_STATUS (0x0400+0x0020)
  20. // How often do I update status information (lineo & RC_xxx == 0)
  21. #define RC_PREPROCESS_UPDATE 63
  22. #define RC_COMPILE_UPDATE 31
  23. extern void UpdateStatus(unsigned nCode, unsigned long dwStatus);
  24. #define MAX_SYMBOL 247 /* from ApStudio */
  25. typedef int (CALLBACK *RC_MESSAGE_CALLBACK)(ULONG, ULONG, LPCSTR);
  26. typedef int (CALLBACK *RC_MESSAGE_CALLBACKW)(ULONG, ULONG, LPCWSTR);
  27. typedef struct tagRESINFO_PARSE
  28. {
  29. LONG size;
  30. PWCHAR type;
  31. USHORT typeord;
  32. PWCHAR name;
  33. USHORT nameord;
  34. WORD flags;
  35. WORD language;
  36. DWORD version;
  37. DWORD characteristics;
  38. } RESINFO_PARSE, *PRESINFO_PARSE;
  39. typedef struct tagCONTEXTINFO_PARSE
  40. {
  41. HANDLE hHeap;
  42. HWND hWndCaller;
  43. RC_MESSAGE_CALLBACK lpfnMsg;
  44. unsigned line;
  45. LPCSTR format;
  46. } CONTEXTINFO_PARSE, *PCONTEXTINFO_PARSE;
  47. typedef struct tagCONTEXTINFO_PARSEW
  48. {
  49. HANDLE hHeap;
  50. HWND hWndCaller;
  51. RC_MESSAGE_CALLBACKW lpfnMsg;
  52. unsigned line;
  53. LPCWSTR format;
  54. } CONTEXTINFO_PARSEW, *PCONTEXTINFO_PARSEW;
  55. typedef int (CALLBACK *RC_PARSE_CALLBACK)(PRESINFO_PARSE, void **, PCONTEXTINFO_PARSE);
  56. typedef int (CALLBACK *RC_PARSE_CALLBACKW)(PRESINFO_PARSE, void **, PCONTEXTINFO_PARSEW);
  57. typedef int (WINAPI *RCPROC)(HWND, int, RC_MESSAGE_CALLBACK, RC_PARSE_CALLBACK, int, char *[]);
  58. typedef int (WINAPI *RCPROCW)(HWND, int, RC_MESSAGE_CALLBACKW, RC_PARSE_CALLBACK, int, wchar_t *[]);
  59. int WINAPI RC(HWND, int, RC_MESSAGE_CALLBACK, RC_PARSE_CALLBACK, int, char *[]);
  60. int WINAPI RCW(HWND, int, RC_MESSAGE_CALLBACKW, RC_PARSE_CALLBACKW, int, wchar_t *[]);
  61. #define RC_ORDINAL MAKEINTRESOURCE(2)
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif // _RCDEFS_H