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.

40 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. MOFCOMP.H
  5. Abstract:
  6. Declarations exports for the mof compiler dll.
  7. History:
  8. --*/
  9. #ifndef _mofcomp_H_
  10. #define _mofcomp_H_
  11. #define DONT_ADD_TO_AUTORECOVER 1
  12. #define AUTORECOVERY_REQUIRED 1
  13. // Usage notes; Both functions invoke the inprocess mofcompiler, with the only difference being that the
  14. // first function takes a file name while the second takes a buffer and a size.
  15. // The bDoPrintf argument should be set to true if you want printfs to happen. That isnt generally needed
  16. // as the output goes into the log no matter what.
  17. // The LocatorGUID should be set to CLSID_WbemAdministrativeLocator for providers and core.
  18. // The argc and argv arguements are probably not needed, but if need be, are standard mofcomp arguments.
  19. extern "C" SCODE APIENTRY CompileFile(LPSTR pFileName, BOOL bDoPrintf, GUID LocatorGUID, IWbemContext * pCtx,
  20. int argc, char ** argv);
  21. extern "C" SCODE APIENTRY CompileFileEx(LPSTR pFileName, BOOL bDoPrintf, GUID LocatorGUID, IWbemContext * pCtx,
  22. DWORD dwFlagsIn, DWORD *pdwFlagsOut, int argc, char ** argv);
  23. extern "C" SCODE APIENTRY CompileBuffer(BYTE * pBuffer, DWORD dwBuffSize, BOOL bDoPrintf, GUID LocatorGUID, IWbemServices * pOverride, IWbemContext * pCtx,
  24. int argc, char ** argv);
  25. #endif