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.

53 lines
885 B

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Copyright (C) 2000, Microsoft Corporation
  4. //
  5. // File: struct.h
  6. //
  7. //-----------------------------------------------------------------------------
  8. #ifndef _STRUCT_H
  9. #define _STRUCT_H
  10. //
  11. // Globals
  12. //
  13. //
  14. // Undocumented
  15. //
  16. extern BOOLEAN fSwDebug;
  17. VOID
  18. MyPrintf(
  19. PWCHAR format,
  20. ...);
  21. VOID
  22. MyFPrintf(
  23. HANDLE hHandle,
  24. PWCHAR format,
  25. ...);
  26. typedef enum tagSHARESTATUS
  27. {
  28. PathLocal,
  29. ShareOffline,
  30. ShareOnline,
  31. NoCSC
  32. } SHARESTATUS;
  33. //
  34. // How we make args & switches
  35. //
  36. #define MAKEARG(x) \
  37. WCHAR Arg##x[] = L"/" L#x L":"; \
  38. LONG ArgLen##x = (sizeof(Arg##x) / sizeof(WCHAR)) - 1; \
  39. BOOLEAN fArg##x;
  40. #define SWITCH(x) \
  41. WCHAR Sw##x[] = L"/" L#x ; \
  42. BOOLEAN fSw##x;
  43. #endif _STRUCT_H