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.

39 lines
851 B

  1. //
  2. // globals.h
  3. //
  4. // Global variable declarations.
  5. //
  6. #ifndef GLOBALS_H
  7. #define GLOBALS_H
  8. #include "ciccs.h"
  9. void DllAddRef();
  10. void DllRelease();
  11. #define SafeRelease(punk) \
  12. { \
  13. if ((punk) != NULL) \
  14. { \
  15. (punk)->Release(); \
  16. } \
  17. }
  18. #define SafeReleaseClear(punk) \
  19. { \
  20. if ((punk) != NULL) \
  21. { \
  22. (punk)->Release(); \
  23. (punk) = NULL; \
  24. } \
  25. }
  26. extern HINSTANCE g_hInst;
  27. extern LONG g_cRefDll;
  28. extern CCicCriticalSectionStatic g_cs;
  29. extern BOOL g_fProcessDetached;
  30. extern const CLSID CLSID_MSLBUI;
  31. #endif // GLOBALS_H