2 * PROJECT: Ports installer library
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: dll\win32\msports\parallel.c
5 * PURPOSE: Parallel Port property functions
6 * COPYRIGHT: Copyright 2013 Eric Kohl
11 WINE_DEFAULT_DEBUG_CHANNEL(msports
);
16 OnInitDialog(HWND hwnd
,
20 TRACE("Port_OnInit()\n");
28 ParallelSettingsDlgProc(HWND hwnd
,
33 TRACE("ParallelSettingsDlgProc()\n");
38 return OnInitDialog(hwnd
, wParam
, lParam
);
47 ParallelPortPropPageProvider(PSP_PROPSHEETPAGE_REQUEST lpPropSheetPageRequest
,
48 LPFNADDPROPSHEETPAGE lpfnAddPropSheetPageProc
,
51 PROPSHEETPAGEW PropSheetPage
;
52 HPROPSHEETPAGE hPropSheetPage
;
54 TRACE("ParallelPortPropPageProvider(%p %p %lx)\n",
55 lpPropSheetPageRequest
, lpfnAddPropSheetPageProc
, lParam
);
57 if (lpPropSheetPageRequest
->PageRequested
== SPPSR_ENUM_ADV_DEVICE_PROPERTIES
)
59 TRACE("SPPSR_ENUM_ADV_DEVICE_PROPERTIES\n");
61 PropSheetPage
.dwSize
= sizeof(PROPSHEETPAGEW
);
62 PropSheetPage
.dwFlags
= 0;
63 PropSheetPage
.hInstance
= hInstance
;
64 PropSheetPage
.pszTemplate
= MAKEINTRESOURCE(IDD_PARALLELSETTINGS
);
65 PropSheetPage
.pfnDlgProc
= ParallelSettingsDlgProc
;
66 PropSheetPage
.lParam
= 0;
67 PropSheetPage
.pfnCallback
= NULL
;
69 hPropSheetPage
= CreatePropertySheetPageW(&PropSheetPage
);
70 if (hPropSheetPage
== NULL
)
72 TRACE("CreatePropertySheetPageW() failed!\n");
76 if (!(*lpfnAddPropSheetPageProc
)(hPropSheetPage
, lParam
))
78 TRACE("lpfnAddPropSheetPageProc() failed!\n");
79 DestroyPropertySheetPage(hPropSheetPage
);