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.

69 lines
1.6 KiB

  1. #ifndef _OFFGLUE_H_
  2. #define _OFFGLUE_H_
  3. #define fTrue TRUE
  4. #define fFalse FALSE
  5. #define MsoImageList_Create ImageList_Create
  6. #define MsoImageList_Destroy ImageList_Destroy
  7. #define MsoImageList_ReplaceIcon ImageList_ReplaceIcon
  8. #define InvalidateVBAObjects(x,y,z)
  9. typedef struct _num
  10. {
  11. CHAR rgb[8];
  12. } NUM;
  13. typedef struct _ulargeint
  14. {
  15. union
  16. {
  17. struct
  18. {
  19. DWORD dw;
  20. DWORD dwh;
  21. };
  22. struct
  23. {
  24. WORD w0;
  25. WORD w1;
  26. WORD w2;
  27. WORD w3;
  28. };
  29. };
  30. } ULInt;
  31. // Macro to release a COM interface
  32. #define RELEASEINTERFACE( punk ) \
  33. if( punk != NULL ) \
  34. { \
  35. (punk)->lpVtbl->Release(punk); \
  36. punk = NULL; \
  37. }
  38. // Determine the elements in a fixed-sized vector
  39. #define NUM_ELEMENTS( vector ) ( sizeof(vector) / sizeof( (vector)[0] ) )
  40. #ifdef __cplusplus
  41. extern TEXT("C") {
  42. #endif // __cplusplus
  43. //Wrapper functions to the client supplied mem alloc and free
  44. int CchGetString();
  45. // Function to convert a ULInt to an sz without leading zero's
  46. // Returns cch -- not including zero-terminator
  47. WORD CchULIntToSz(ULInt, TCHAR *, WORD );
  48. // Function to scan memory for a given value
  49. BOOL FScanMem(LPBYTE pb, byte bVal, DWORD cb);
  50. BOOL FFreeAndCloseisdbhead();
  51. //Displays an alert using the give ids
  52. int IdDoAlert(HWND, int ids, int mb);
  53. #ifdef __cplusplus
  54. }; // extern "C"
  55. #endif // __cplusplus
  56. #endif // _OFFGLUE_H_