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
13 OnInitDialog(HWND hwnd
,
17 TRACE("Port_OnInit()\n");
25 ParallelSettingsDlgProc(HWND hwnd
,
30 TRACE("ParallelSettingsDlgProc()\n");
35 return OnInitDialog(hwnd
, wParam
, lParam
);
44 ParallelPortPropPageProvider(PSP_PROPSHEETPAGE_REQUEST lpPropSheetPageRequest
,
45 LPFNADDPROPSHEETPAGE lpfnAddPropSheetPageProc
,
48 PROPSHEETPAGEW PropSheetPage
;
49 HPROPSHEETPAGE hPropSheetPage
;
51 TRACE("ParallelPortPropPageProvider(%p %p %lx)\n",
52 lpPropSheetPageRequest
, lpfnAddPropSheetPageProc
, lParam
);
54 if (lpPropSheetPageRequest
->PageRequested
== SPPSR_ENUM_ADV_DEVICE_PROPERTIES
)
56 TRACE("SPPSR_ENUM_ADV_DEVICE_PROPERTIES\n");
58 PropSheetPage
.dwSize
= sizeof(PROPSHEETPAGEW
);
59 PropSheetPage
.dwFlags
= 0;
60 PropSheetPage
.hInstance
= hInstance
;
61 PropSheetPage
.pszTemplate
= MAKEINTRESOURCE(IDD_PARALLELSETTINGS
);
62 PropSheetPage
.pfnDlgProc
= ParallelSettingsDlgProc
;
63 PropSheetPage
.lParam
= 0;
64 PropSheetPage
.pfnCallback
= NULL
;
66 hPropSheetPage
= CreatePropertySheetPageW(&PropSheetPage
);
67 if (hPropSheetPage
== NULL
)
69 TRACE("CreatePropertySheetPageW() failed!\n");
73 if (!(*lpfnAddPropSheetPageProc
)(hPropSheetPage
, lParam
))
75 TRACE("lpfnAddPropSheetPageProc() failed!\n");
76 DestroyPropertySheetPage(hPropSheetPage
);