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
32 lines
1016 B
/*****************************************************************************\
|
|
* MODULE: util.h
|
|
*
|
|
* PURPOSE: Header file for util.cpp
|
|
*
|
|
* Copyright (C) 1997-1998 Microsoft Corporation
|
|
*
|
|
* History:
|
|
*
|
|
* 09/12/97 weihaic Created
|
|
* 11/06/97 keithst Added SetScriptingError, removed Win2ComErr
|
|
*
|
|
\*****************************************************************************/
|
|
|
|
#ifndef _UTIL_H
|
|
#define _UTIL_H
|
|
|
|
LPWSTR MakeWide(LPSTR psz);
|
|
LPSTR MakeNarrow(LPWSTR str);
|
|
HRESULT PutString(SAFEARRAY *psa, long *ix, char *sz);
|
|
HRESULT SetScriptingError(const CLSID& rclsid, const IID& riid, DWORD dwError);
|
|
|
|
DWORD MyDeviceCapabilities(
|
|
LPCTSTR pDevice, // pointer to a printer-name string
|
|
LPCTSTR pPort, // pointer to a port-name string
|
|
WORD fwCapability, // device capability to query
|
|
LPTSTR pOutput, // pointer to the output
|
|
CONST DEVMODE *pDevMode
|
|
// pointer to structure with device data
|
|
);
|
|
|
|
#endif
|