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.

18 lines
1.1 KiB

  1. // Copyright (c) 2000 Microsoft Corporation. All rights reserved.
  2. //
  3. // Hack: There's no room in the EXCEPINFO for a filename and line number. This is a problem when scripts
  4. // call each other because the filename/line need to percolate with the error so that the eventual
  5. // error message displays the filename/line of the script where the error orgiginated.
  6. // We'll just pack the error in with the description and then unpack it when the IDirectMusicScript
  7. // interface returns its DMUS_SCRIPT_ERRORINFO, which does have a filename.
  8. //
  9. #pragma once
  10. // Saves filname and line number into the description of the exception. Any of the parameters may be null.
  11. void PackExceptionFileAndLine(bool fUseOleAut, EXCEPINFO *pExcepInfo, const WCHAR *pwszFilename, const ULONG *pulLine);
  12. // Retrieves filname and line number using a description from the exception.
  13. // The ulLineNumber, wszSourceFile, and wszDescription fields of pErrorInfo are set if they are present in the description.
  14. // Neither parameter may be null.
  15. void UnpackExceptionFileAndLine(BSTR bstrDescription, DMUS_SCRIPT_ERRORINFO *pErrorInfo);