windows-nt/Source/XPSP1/NT/printscan/wia/setup/clsinst/exports.h

217 lines
3.3 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*******************************************************************************
*
* (C) COPYRIGHT MICROSOFT CORP., 2000
*
* TITLE: Exports..h
*
* VERSION: 1.0
*
* AUTHOR: KeisukeT
*
* DATE: 27 Mar, 2000
*
* DESCRIPTION:
* Header file for class installer exports.
*
*******************************************************************************/
#ifndef _EXPORTS_H_
#define _EXPORTS_H_
//
// Include
//
#include <sti.h>
//
// Define
//
#define STR_ADD_DEVICE TEXT("rundll32.exe sti_ci.dll,AddDevice")
#define STR_REMOVE TEXT("rundll32.exe sti_ci.dll,RemoveDevice ")
#define REGKEY_WINDOWS_CURRENTVERSION TEXT("SOFTWARE\\Microsoft\\Windows\\CurrentVersion")
#define REGSTR_VAL_ACCESSORIES_NAME TEXT("SM_AccessoriesName")
#define WIA_DEVKEYLIST_INITIAL_SIZE 1024
//
// Typedef
//
typedef struct _WIA_DEVKEYLIST {
DWORD dwNumberOfDevices;
HKEY hkDeviceRegistry[1];
} WIA_DEVKEYLIST, *PWIA_DEVKEYLIST;
typedef struct _WIA_PORTLIST {
DWORD dwNumberOfPorts;
LPWSTR szPortName[1];
} WIA_PORTLIST, *PWIA_PORTLIST;
typedef PWIA_DEVKEYLIST (CALLBACK FAR * WIAENUMDEVICEREGISTRY)(BOOL bEnumActiveOnly);
//
// Prototype
//
HANDLE
WiaInstallerProcess(
LPTSTR lpCommandLine
);
INT
CALLBACK
iHdwWizardDlgCallback(
IN HWND hwndDlg,
IN UINT uMsg,
IN LPARAM lParam
);
BOOL
SetSelectDevTitleAndInstructions(
HDEVINFO hDevInfo,
PSP_DEVINFO_DATA pspDevInfoData,
LPCTSTR pszTitle,
LPCTSTR pszSubTitle,
LPCTSTR pszInstn,
LPCTSTR pszListLabel
);
DLLEXPORT
HANDLE
WINAPI
WiaAddDevice(
VOID
);
DLLEXPORT
BOOL
WINAPI
WiaRemoveDevice(
PSTI_DEVICE_INFORMATION pStiDeviceInformation
);
DLLEXPORT
BOOL
WINAPI
CreateWiaShortcut(
VOID
);
DLLEXPORT
BOOL
WINAPI
DeleteWiaShortcut(
VOID
);
HANDLE
SelectDevInfoFromFriendlyName(
LPTSTR pszLocalName
);
HANDLE
SelectDevInfoFromDeviceId(
LPTSTR pszDeviceId
);
DLLEXPORT
VOID
CALLBACK
WiaCreateWizardMenu(
HWND hwnd,
HINSTANCE hinst,
LPSTR lpszCmdLine,
int nCmdShow
);
DLLEXPORT
VOID
CALLBACK
AddDevice(
HWND hWnd,
HINSTANCE hInst,
LPSTR lpszCmdLine,
int nCmdShow
);
BOOL
CALLBACK
RemoveDevice(
HWND hWnd,
HINSTANCE hInst,
LPTSTR lpszCmdLine,
int nCmdShow
);
INT CALLBACK
iHdwWizardDlgCallback(
IN HWND hwndDlg,
IN UINT uMsg,
IN LPARAM lParam
);
BOOL
SetSelectDevTitleAndInstructions(
HDEVINFO hDevInfo,
LPCTSTR pszTitle,
LPCTSTR pszSubTitle,
LPCTSTR pszInstn
);
HANDLE
GetDeviceInterfaceIndex(
LPTSTR pszLocalName,
DWORD *pdwIndex
);
DLLEXPORT
BOOL
WINAPI
WiaDeviceEnum(
VOID
);
DLLEXPORT
PWIA_PORTLIST
WINAPI
WiaCreatePortList(
VOID
);
DLLEXPORT
VOID
WINAPI
WiaDestroyPortList(
PWIA_PORTLIST pWiaPortList
);
BOOL
CheckPortForDevice(
LPTSTR szDeviceId,
BOOL *pbIsSerial,
BOOL *pbIsParallel,
BOOL *pbIsAutoCapable,
BOOL *pbIsPortSelectable
);
DLLEXPORT
BOOL
WINAPI
MigrateDevice(
PDEVICE_INFO pMigratingDevice
);
#endif // _EXPORTS_H_