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.

32 lines
1016 B

  1. /*****************************************************************************\
  2. * MODULE: util.h
  3. *
  4. * PURPOSE: Header file for util.cpp
  5. *
  6. * Copyright (C) 1997-1998 Microsoft Corporation
  7. *
  8. * History:
  9. *
  10. * 09/12/97 weihaic Created
  11. * 11/06/97 keithst Added SetScriptingError, removed Win2ComErr
  12. *
  13. \*****************************************************************************/
  14. #ifndef _UTIL_H
  15. #define _UTIL_H
  16. LPWSTR MakeWide(LPSTR psz);
  17. LPSTR MakeNarrow(LPWSTR str);
  18. HRESULT PutString(SAFEARRAY *psa, long *ix, char *sz);
  19. HRESULT SetScriptingError(const CLSID& rclsid, const IID& riid, DWORD dwError);
  20. DWORD MyDeviceCapabilities(
  21. LPCTSTR pDevice, // pointer to a printer-name string
  22. LPCTSTR pPort, // pointer to a port-name string
  23. WORD fwCapability, // device capability to query
  24. LPTSTR pOutput, // pointer to the output
  25. CONST DEVMODE *pDevMode
  26. // pointer to structure with device data
  27. );
  28. #endif