Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenserial.c
Go to the documentation of this file.
00001 /* 00002 * PROJECT: Ports installer library 00003 * LICENSE: GPL - See COPYING in the top level directory 00004 * FILE: dll\win32\msports\serial.c 00005 * PURPOSE: Serial Port property functions 00006 * COPYRIGHT: Copyright 2011 Eric Kohl 00007 */ 00008 00009 #include "precomp.h" 00010 00011 WINE_DEFAULT_DEBUG_CHANNEL(msports); 00012 00013 00014 static 00015 BOOL 00016 OnInitDialog(HWND hwnd, 00017 WPARAM wParam, 00018 LPARAM lParam) 00019 { 00020 FIXME("Port_OnInit()\n"); 00021 return TRUE; 00022 } 00023 00024 00025 static 00026 INT_PTR 00027 CALLBACK 00028 SerialSettingsDlgProc(HWND hwnd, 00029 UINT uMsg, 00030 WPARAM wParam, 00031 LPARAM lParam) 00032 { 00033 FIXME("SerialSettingsDlgProc()\n"); 00034 00035 switch (uMsg) 00036 { 00037 case WM_INITDIALOG: 00038 return OnInitDialog(hwnd, wParam, lParam); 00039 } 00040 00041 return FALSE; 00042 } 00043 00044 00045 BOOL 00046 WINAPI 00047 SerialPortPropPageProvider(PSP_PROPSHEETPAGE_REQUEST lpPropSheetPageRequest, 00048 LPFNADDPROPSHEETPAGE lpfnAddPropSheetPageProc, 00049 LPARAM lParam) 00050 { 00051 PROPSHEETPAGEW PropSheetPage; 00052 HPROPSHEETPAGE hPropSheetPage; 00053 00054 FIXME("SerialPortPropPageProvider(%p %p %lx)\n", 00055 lpPropSheetPageRequest, lpfnAddPropSheetPageProc, lParam); 00056 00057 if (lpPropSheetPageRequest->PageRequested == SPPSR_ENUM_ADV_DEVICE_PROPERTIES) 00058 { 00059 FIXME("SPPSR_ENUM_ADV_DEVICE_PROPERTIES\n"); 00060 00061 PropSheetPage.dwSize = sizeof(PROPSHEETPAGEW); 00062 PropSheetPage.dwFlags = 0; 00063 PropSheetPage.hInstance = hInstance; 00064 PropSheetPage.pszTemplate = MAKEINTRESOURCE(IDD_SERIALSETTINGS); 00065 PropSheetPage.pfnDlgProc = SerialSettingsDlgProc; 00066 PropSheetPage.lParam = 0; 00067 PropSheetPage.pfnCallback = NULL; 00068 00069 hPropSheetPage = CreatePropertySheetPageW(&PropSheetPage); 00070 if (hPropSheetPage == NULL) 00071 { 00072 FIXME("CreatePropertySheetPageW() failed!\n"); 00073 return FALSE; 00074 } 00075 00076 if (!(*lpfnAddPropSheetPageProc)(hPropSheetPage, lParam)) 00077 { 00078 FIXME("lpfnAddPropSheetPageProc() failed!\n"); 00079 DestroyPropertySheetPage(hPropSheetPage); 00080 return FALSE; 00081 } 00082 } 00083 00084 FIXME("Done!\n"); 00085 00086 return TRUE; 00087 } 00088 00089 /* EOF */ Generated on Sun May 27 2012 04:19:00 for ReactOS by
1.7.6.1
|