ReactOS.org
Sign In
Sign Up
Sign In
Sign Up
Manage this list
×
Keyboard Shortcuts
Thread View
j
: Next unread message
k
: Previous unread message
j a
: Jump to all threads
j l
: Jump to MailingList overview
2025
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
July
June
May
April
March
February
January
2005
December
November
October
September
August
July
June
May
April
March
February
January
2004
December
November
October
September
August
July
June
May
April
March
February
List overview
Download
Ros-diffs
December 2008
----- 2025 -----
January 2025
----- 2024 -----
December 2024
November 2024
October 2024
September 2024
August 2024
July 2024
June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
----- 2023 -----
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
----- 2022 -----
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
----- 2021 -----
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
----- 2020 -----
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
----- 2019 -----
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
----- 2018 -----
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
----- 2017 -----
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
----- 2016 -----
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
----- 2015 -----
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
----- 2014 -----
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
----- 2013 -----
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
----- 2012 -----
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
----- 2011 -----
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
----- 2010 -----
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
----- 2009 -----
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
----- 2008 -----
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
----- 2007 -----
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
----- 2006 -----
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
----- 2005 -----
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
----- 2004 -----
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
ros-diffs@reactos.org
31 participants
710 discussions
Start a n
N
ew thread
[tkreuzer] 38014: Update KTRAP_FRAME offsets
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Dec 11 05:38:57 2008 New Revision: 38014 URL:
http://svn.reactos.org/svn/reactos?rev=38014&view=rev
Log: Update KTRAP_FRAME offsets Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/ndk/amd64/asm.h [iso-8859-1] Thu Dec 11 05:38:57 2008 @@ -84,7 +84,7 @@ #define KTRAP_FRAME_R9 0x50 #define KTRAP_FRAME_R10 0x58 #define KTRAP_FRAME_R11 0x60 -#define KTRAP_FRAME_Spare0 0x68 +#define KTRAP_FRAME_GsBase 0x68 #define KTRAP_FRAME_Xmm0 0x70 #define KTRAP_FRAME_Xmm1 0x80 #define KTRAP_FRAME_Xmm2 0x90 @@ -115,9 +115,11 @@ #define KTRAP_FRAME_ErrorCode 0x160 #define KTRAP_FRAME_Rip 0x168 #define KTRAP_FRAME_SegCs 0x170 +#define KTRAP_FRAME_Logging 0x173 #define KTRAP_FRAME_EFlags 0x178 #define KTRAP_FRAME_Rsp 0x180 #define KTRAP_FRAME_SegSs 0x188 +#define KTRAP_FRAME_CodePatchCycle 0x18c #define SIZE_KTRAP_FRAME 0x190 #define KTRAP_FRAME_ALIGN 0x10 #define KTRAP_FRAME_LENGTH 0x190
16 years, 1 month
1
0
0
0
[tkreuzer] 38013: fix KTRAP_FRAME
by tkreuzer@svn.reactos.org
Author: tkreuzer Date: Thu Dec 11 05:38:17 2008 New Revision: 38013 URL:
http://svn.reactos.org/svn/reactos?rev=38013&view=rev
Log: fix KTRAP_FRAME Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h Modified: branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h URL:
http://svn.reactos.org/svn/reactos/branches/ros-amd64-bringup/reactos/inclu…
============================================================================== --- branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h [iso-8859-1] (original) +++ branches/ros-amd64-bringup/reactos/include/ndk/amd64/ketypes.h [iso-8859-1] Thu Dec 11 05:38:17 2008 @@ -163,30 +163,45 @@ UINT64 R9; UINT64 R10; UINT64 R11; - UINT64 GsBase; - UINT64 GsSwap; + union + { + UINT64 GsBase; + UINT64 GsSwap; + }; M128A Xmm0; M128A Xmm1; M128A Xmm2; M128A Xmm3; M128A Xmm4; M128A Xmm5; - UINT64 FaultAddress; - UINT64 ContextRecord; - UINT64 TimeStampCKCL; + union + { + UINT64 FaultAddress; + UINT64 ContextRecord; + UINT64 TimeStampCKCL; + }; UINT64 Dr0; UINT64 Dr1; UINT64 Dr2; UINT64 Dr3; UINT64 Dr6; UINT64 Dr7; - UINT64 DebugControl; - UINT64 LastBranchToRip; - UINT64 LastBranchFromRip; - UINT64 LastExceptionToRip; - UINT64 LastExceptionFromRip; - UINT64 LastBranchControl; - ULONG LastBranchMSR; + union + { + struct + { + UINT64 DebugControl; + UINT64 LastBranchToRip; + UINT64 LastBranchFromRip; + UINT64 LastExceptionToRip; + UINT64 LastExceptionFromRip; + }; + struct + { + UINT64 LastBranchControl; + ULONG LastBranchMSR; + }; + }; USHORT SegDs; USHORT SegEs; USHORT SegFs; @@ -196,9 +211,12 @@ UINT64 Rdi; UINT64 Rsi; UINT64 Rbp; - UINT64 ErrorCode; - UINT64 ExceptionFrame; - UINT64 TimeStampKlog; + union + { + UINT64 ErrorCode; + UINT64 ExceptionFrame; + UINT64 TimeStampKlog; + }; UINT64 Rip; USHORT SegCs; UCHAR Fill0;
16 years, 1 month
1
0
0
0
[cwittich] 38012: convert most of syssetup to unicode
by cwittich@svn.reactos.org
Author: cwittich Date: Thu Dec 11 05:24:32 2008 New Revision: 38012 URL:
http://svn.reactos.org/svn/reactos?rev=38012&view=rev
Log: convert most of syssetup to unicode Modified: trunk/reactos/dll/win32/syssetup/globals.h trunk/reactos/dll/win32/syssetup/install.c trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/globals.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/globals…
============================================================================== --- trunk/reactos/dll/win32/syssetup/globals.h [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/globals.h [iso-8859-1] Thu Dec 11 05:24:32 2008 @@ -30,9 +30,9 @@ { struct _TIMEZONE_ENTRY *Prev; struct _TIMEZONE_ENTRY *Next; - TCHAR Description[64]; /* 'Display' */ - TCHAR StandardName[32]; /* 'Std' */ - TCHAR DaylightName[32]; /* 'Dlt' */ + WCHAR Description[64]; /* 'Display' */ + WCHAR StandardName[32]; /* 'Std' */ + WCHAR DaylightName[32]; /* 'Dlt' */ TZ_INFO TimezoneInfo; /* 'TZI' */ ULONG Index; } TIMEZONE_ENTRY, *PTIMEZONE_ENTRY; @@ -41,10 +41,10 @@ { HFONT hTitleFont; - TCHAR OwnerName[51]; - TCHAR OwnerOrganization[51]; - TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 63 characters */ - TCHAR AdminPassword[15]; /* max. 14 characters */ + WCHAR OwnerName[51]; + WCHAR OwnerOrganization[51]; + WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; /* max. 63 characters */ + WCHAR AdminPassword[15]; /* max. 14 characters */ BOOL UnattendSetup; BOOL DisableVmwInst; DWORD BootCDRegtestActive; Modified: trunk/reactos/dll/win32/syssetup/install.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/install…
============================================================================== --- trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/install.c [iso-8859-1] Thu Dec 11 05:24:32 2008 @@ -304,13 +304,13 @@ CreateTempDir( IN LPCWSTR VarName) { - TCHAR szTempDir[MAX_PATH]; - TCHAR szBuffer[MAX_PATH]; + WCHAR szTempDir[MAX_PATH]; + WCHAR szBuffer[MAX_PATH]; DWORD dwLength; HKEY hKey; - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment", 0, KEY_QUERY_VALUE, &hKey)) @@ -320,8 +320,8 @@ } /* Get temp dir */ - dwLength = MAX_PATH * sizeof(TCHAR); - if (RegQueryValueEx(hKey, + dwLength = MAX_PATH * sizeof(WCHAR); + if (RegQueryValueExW(hKey, VarName, NULL, NULL, @@ -334,7 +334,7 @@ } /* Expand it */ - if (!ExpandEnvironmentStrings(szBuffer, + if (!ExpandEnvironmentStringsW(szBuffer, szTempDir, MAX_PATH)) { @@ -344,7 +344,7 @@ } /* Create profiles directory */ - if (!CreateDirectory(szTempDir, NULL)) + if (!CreateDirectoryW(szTempDir, NULL)) { if (GetLastError() != ERROR_ALREADY_EXISTS) { @@ -362,11 +362,11 @@ InstallSysSetupInfDevices(VOID) { INFCONTEXT InfContext; - TCHAR LineBuffer[256]; + WCHAR LineBuffer[256]; DWORD LineLength; - if (!SetupFindFirstLine(hSysSetupInf, - _T("DeviceInfsToInstall"), + if (!SetupFindFirstLineW(hSysSetupInf, + L"DeviceInfsToInstall", NULL, &InfContext)) { @@ -375,7 +375,7 @@ do { - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 0, LineBuffer, sizeof(LineBuffer)/sizeof(LineBuffer[0]), @@ -384,7 +384,7 @@ return FALSE; } - if (!SetupDiInstallClass(NULL, LineBuffer, DI_QUIETINSTALL, NULL)) + if (!SetupDiInstallClassW(NULL, LineBuffer, DI_QUIETINSTALL, NULL)) { return FALSE; } @@ -397,12 +397,12 @@ InstallSysSetupInfComponents(VOID) { INFCONTEXT InfContext; - TCHAR NameBuffer[256]; - TCHAR SectionBuffer[256]; + WCHAR NameBuffer[256]; + WCHAR SectionBuffer[256]; HINF hComponentInf = INVALID_HANDLE_VALUE; - if (!SetupFindFirstLine(hSysSetupInf, - _T("Infs.Always"), + if (!SetupFindFirstLineW(hSysSetupInf, + L"Infs.Always", NULL, &InfContext)) { @@ -412,7 +412,7 @@ { do { - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 1, // Get the component name NameBuffer, sizeof(NameBuffer)/sizeof(NameBuffer[0]), @@ -422,7 +422,7 @@ return FALSE; } - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 2, // Get the component install section SectionBuffer, sizeof(SectionBuffer)/sizeof(SectionBuffer[0]), @@ -445,7 +445,7 @@ return FALSE; } - if (!SetupInstallFromInfSection(NULL, + if (!SetupInstallFromInfSectionW(NULL, hComponentInf, SectionBuffer, SPINST_ALL, @@ -481,18 +481,18 @@ if (hSCManager == NULL) goto cleanup; - hService = OpenService(hSCManager, _T("PlugPlay"), SERVICE_CHANGE_CONFIG | SERVICE_START); + hService = OpenServiceW(hSCManager, L"PlugPlay", SERVICE_CHANGE_CONFIG | SERVICE_START); if (hService == NULL) goto cleanup; - ret = ChangeServiceConfig( + ret = ChangeServiceConfigW( hService, SERVICE_NO_CHANGE, SERVICE_AUTO_START, SERVICE_NO_CHANGE, NULL, NULL, NULL, NULL, NULL, NULL, NULL); if (!ret) goto cleanup; - ret = StartService(hService, 0, NULL); + ret = StartServiceW(hService, 0, NULL); if (!ret) goto cleanup; @@ -520,11 +520,11 @@ { case WM_INITDIALOG: { - TCHAR szMsg[256]; - - if (!LoadString(hDllInstance, IDS_STATUS_INSTALL_DEV, szMsg, sizeof(szMsg)/sizeof(szMsg[0]))) + WCHAR szMsg[256]; + + if (!LoadStringW(hDllInstance, IDS_STATUS_INSTALL_DEV, szMsg, sizeof(szMsg)/sizeof(szMsg[0]))) return FALSE; - SetDlgItemText(hwndDlg, IDC_STATUSLABEL, szMsg); + SetDlgItemTextW(hwndDlg, IDC_STATUSLABEL, szMsg); return TRUE; } } @@ -705,7 +705,7 @@ DWORD WINAPI InstallLiveCD(IN HINSTANCE hInstance) { - STARTUPINFO StartupInfo; + STARTUPINFOW StartupInfo; PROCESS_INFORMATION ProcessInformation; BOOL res; @@ -714,15 +714,15 @@ SetupCloseInfFile(hSysSetupInf); /* Run the shell */ - StartupInfo.cb = sizeof(StartupInfo); + StartupInfo.cb = sizeof(STARTUPINFOW); StartupInfo.lpReserved = NULL; StartupInfo.lpDesktop = NULL; StartupInfo.lpTitle = NULL; StartupInfo.dwFlags = 0; StartupInfo.cbReserved2 = 0; StartupInfo.lpReserved2 = 0; - res = CreateProcess( - _T("userinit.exe"), + res = CreateProcessW( + L"userinit.exe", NULL, NULL, NULL, @@ -738,10 +738,10 @@ return 0; cleanup: - MessageBoxA( + MessageBoxW( NULL, - "You can shutdown your computer, or press ENTER to reboot", - "ReactOS LiveCD", + L"You can shutdown your computer, or press ENTER to reboot", + L"ReactOS LiveCD", MB_OK); return 0; } Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Dec 11 05:24:32 2008 @@ -14,7 +14,6 @@ #include <windows.h> #include <windowsx.h> #include <commctrl.h> -#include <tchar.h> #include <string.h> #include <setupapi.h> #include <pseh/pseh2.h> @@ -71,12 +70,12 @@ PROCESS_INFORMATION ProcInfo; MSG msg; DWORD ret; - STARTUPINFO si = {0}; + STARTUPINFOW si = {0}; WCHAR InstallName[] = L"vmwinst.exe"; si.cb = sizeof(STARTUPINFO); - if(CreateProcess(NULL, InstallName, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, + if(CreateProcessW(NULL, InstallName, NULL, NULL, TRUE, NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &ProcInfo)) { EnableWindow(hWnd, FALSE); @@ -132,13 +131,13 @@ static HFONT CreateTitleFont(VOID) { - NONCLIENTMETRICS ncm; + NONCLIENTMETRICSW ncm; LOGFONTW LogFont; HDC hdc; INT FontSize; HFONT hFont; - ncm.cbSize = sizeof(NONCLIENTMETRICS); + ncm.cbSize = sizeof(NONCLIENTMETRICSW); SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncm, 0); LogFont = ncm.lfMessageFont; @@ -171,7 +170,7 @@ switch (uMsg) { case WM_INITDIALOG: - GplTextResource = FindResource(hDllInstance, MAKEINTRESOURCE(IDR_GPL), _T("RT_TEXT")); + GplTextResource = FindResourceW(hDllInstance, MAKEINTRESOURCE(IDR_GPL), L"RT_TEXT"); if (NULL == GplTextResource) { break; @@ -323,7 +322,7 @@ { return FALSE; } - ProjectsCount = LoadString(hDllInstance, IDS_ACKPROJECTS, Projects, ProjectsSize); + ProjectsCount = LoadStringW(hDllInstance, IDS_ACKPROJECTS, Projects, ProjectsSize); if (0 == ProjectsCount) { HeapFree(GetProcessHeap(), 0, Projects); @@ -401,16 +400,16 @@ static BOOL -WriteOwnerSettings(TCHAR * OwnerName, - TCHAR * OwnerOrganization) +WriteOwnerSettings(WCHAR * OwnerName, + WCHAR * OwnerOrganization) { HKEY hKey; LONG res; - res = RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("Software\\Microsoft\\Windows NT\\CurrentVersion"), + res = RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"Software\\Microsoft\\Windows NT\\CurrentVersion", 0, KEY_ALL_ACCESS, &hKey); @@ -420,12 +419,12 @@ return FALSE; } - res = RegSetValueEx(hKey, - _T("RegisteredOwner"), + res = RegSetValueExW(hKey, + L"RegisteredOwner", 0, REG_SZ, (LPBYTE)OwnerName, - (_tcslen(OwnerName) + 1) * sizeof(TCHAR)); + (wcslen(OwnerName) + 1) * sizeof(WCHAR)); if (res != ERROR_SUCCESS) { @@ -433,12 +432,12 @@ return FALSE; } - res = RegSetValueEx(hKey, - _T("RegisteredOrganization"), + res = RegSetValueExW(hKey, + L"RegisteredOrganization", 0, REG_SZ, (LPBYTE)OwnerOrganization, - (_tcslen(OwnerOrganization) + 1) * sizeof(TCHAR)); + (wcslen(OwnerOrganization) + 1) * sizeof(WCHAR)); RegCloseKey(hKey); return (res == ERROR_SUCCESS); @@ -450,8 +449,8 @@ WPARAM wParam, LPARAM lParam) { - TCHAR OwnerName[51]; - TCHAR OwnerOrganization[51]; + WCHAR OwnerName[51]; + WCHAR OwnerOrganization[51]; WCHAR Title[64]; WCHAR ErrorName[256]; LPNMHDR lpnm; @@ -492,7 +491,7 @@ case PSN_WIZNEXT: OwnerName[0] = 0; - if (GetDlgItemText(hwndDlg, IDC_OWNERNAME, OwnerName, 50) == 0) + if (GetDlgItemTextW(hwndDlg, IDC_OWNERNAME, OwnerName, 50) == 0) { if (0 == LoadStringW(hDllInstance, IDS_REACTOS_SETUP, Title, sizeof(Title) / sizeof(Title[0]))) { @@ -502,7 +501,7 @@ { wcscpy(ErrorName, L"Setup cannot continue until you enter your name."); } - MessageBox(hwndDlg, ErrorName, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, ErrorName, Title, MB_ICONERROR | MB_OK); SetFocus(GetDlgItem(hwndDlg, IDC_OWNERNAME)); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); @@ -538,11 +537,11 @@ } static BOOL -WriteComputerSettings(TCHAR * ComputerName, HWND hwndDlg) +WriteComputerSettings(WCHAR * ComputerName, HWND hwndDlg) { WCHAR Title[64]; WCHAR ErrorComputerName[256]; - if (!SetComputerName(ComputerName)) + if (!SetComputerNameW(ComputerName)) { if (0 == LoadStringW(hDllInstance, IDS_REACTOS_SETUP, Title, sizeof(Title) / sizeof(Title[0]))) { @@ -559,7 +558,7 @@ } /* Try to also set DNS hostname */ - SetComputerNameEx(ComputerNamePhysicalDnsHostname, ComputerName); + SetComputerNameExW(ComputerNamePhysicalDnsHostname, ComputerName); return TRUE; } @@ -570,9 +569,9 @@ WPARAM wParam, LPARAM lParam) { - TCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; - TCHAR Password1[15]; - TCHAR Password2[15]; + WCHAR ComputerName[MAX_COMPUTERNAME_LENGTH + 1]; + WCHAR Password1[15]; + WCHAR Password2[15]; PWCHAR Password; WCHAR Title[64]; WCHAR EmptyComputerName[256], NotMatchPassword[256], WrongPassword[256]; @@ -590,10 +589,10 @@ { /* Retrieve current computer name */ Length = MAX_COMPUTERNAME_LENGTH + 1; - GetComputerName(ComputerName, &Length); + GetComputerNameW(ComputerName, &Length); /* Display current computer name */ - SetDlgItemText(hwndDlg, IDC_COMPUTERNAME, ComputerName); + SetDlgItemTextW(hwndDlg, IDC_COMPUTERNAME, ComputerName); /* Set text limits */ SendDlgItemMessage(hwndDlg, IDC_COMPUTERNAME, EM_LIMITTEXT, 64, 0); @@ -630,7 +629,7 @@ break; case PSN_WIZNEXT: - if (GetDlgItemText(hwndDlg, IDC_COMPUTERNAME, ComputerName, 64) == 0) + if (GetDlgItemTextW(hwndDlg, IDC_COMPUTERNAME, ComputerName, 64) == 0) { if (0 == LoadStringW(hDllInstance, IDS_WZD_COMPUTERNAME, EmptyComputerName, sizeof(EmptyComputerName) / sizeof(EmptyComputerName[0]))) @@ -668,11 +667,11 @@ return TRUE; } #else - GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15); - GetDlgItemText(hwndDlg, IDC_ADMINPASSWORD2, Password2, 15); + GetDlgItemTextW(hwndDlg, IDC_ADMINPASSWORD1, Password1, 15); + GetDlgItemTextW(hwndDlg, IDC_ADMINPASSWORD2, Password2, 15); #endif /* Check if passwords match */ - if (_tcscmp(Password1, Password2)) + if (wcscmp(Password1, Password2)) { if (0 == LoadStringW(hDllInstance, IDS_WZD_PASSWORDMATCH, NotMatchPassword, sizeof(NotMatchPassword) / sizeof(NotMatchPassword[0]))) @@ -894,7 +893,7 @@ WCHAR szPath[MAX_PATH]; if (GetRosInstallCD(szPath, MAX_PATH)) { - wsprintf(szBuffer, L"rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,/f:\"%s\\reactos\\unattend.inf\"", szPath); + swprintf(szBuffer, L"rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,/f:\"%S\\reactos\\unattend.inf\"", szPath); } else { @@ -949,7 +948,7 @@ static VOID CreateTimeZoneList(PSETUPDATA SetupData) { - TCHAR szKeyName[256]; + WCHAR szKeyName[256]; DWORD dwIndex; DWORD dwNameSize; DWORD dwValueSize; @@ -960,8 +959,8 @@ PTIMEZONE_ENTRY Entry; PTIMEZONE_ENTRY Current; - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones", 0, KEY_ALL_ACCESS, &hZonesKey)) @@ -970,8 +969,8 @@ dwIndex = 0; while (TRUE) { - dwNameSize = 256 * sizeof(TCHAR); - lError = RegEnumKeyEx(hZonesKey, + dwNameSize = 256 * sizeof(WCHAR); + lError = RegEnumKeyExW(hZonesKey, dwIndex, szKeyName, &dwNameSize, @@ -982,7 +981,7 @@ if (lError != ERROR_SUCCESS && lError != ERROR_MORE_DATA) break; - if (RegOpenKeyEx(hZonesKey, + if (RegOpenKeyExW(hZonesKey, szKeyName, 0, KEY_ALL_ACCESS, @@ -997,8 +996,8 @@ } dwValueSize = 64 * sizeof(TCHAR); - if (RegQueryValueEx(hZoneKey, - _T("Display"), + if (RegQueryValueExW(hZoneKey, + L"Display", NULL, NULL, (LPBYTE)&Entry->Description, @@ -1009,8 +1008,8 @@ } dwValueSize = 32 * sizeof(TCHAR); - if (RegQueryValueEx(hZoneKey, - _T("Std"), + if (RegQueryValueExW(hZoneKey, + L"Std", NULL, NULL, (LPBYTE)&Entry->StandardName, @@ -1021,8 +1020,8 @@ } dwValueSize = 32 * sizeof(WCHAR); - if (RegQueryValueEx(hZoneKey, - _T("Dlt"), + if (RegQueryValueExW(hZoneKey, + L"Dlt", NULL, NULL, (LPBYTE)&Entry->DaylightName, @@ -1033,8 +1032,8 @@ } dwValueSize = sizeof(DWORD); - if (RegQueryValueEx(hZoneKey, - _T("Index"), + if (RegQueryValueExW(hZoneKey, + L"Index", NULL, NULL, (LPBYTE)&Entry->Index, @@ -1045,8 +1044,8 @@ } dwValueSize = sizeof(TZ_INFO); - if (RegQueryValueEx(hZoneKey, - _T("TZI"), + if (RegQueryValueExW(hZoneKey, + L"TZI", NULL, NULL, (LPBYTE)&Entry->TimezoneInfo, @@ -1129,26 +1128,26 @@ static BOOL GetTimeZoneListIndex(LPDWORD lpIndex) { - TCHAR szLanguageIdString[9]; + WCHAR szLanguageIdString[9]; HKEY hKey; DWORD dwValueSize; DWORD Length; - LPTSTR Buffer; - LPTSTR Ptr; - LPTSTR End; + LPWSTR Buffer; + LPWSTR Ptr; + LPWSTR End; BOOL bFound = FALSE; unsigned long iLanguageID; - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SYSTEM\\CurrentControlSet\\Control\\NLS\\Language"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SYSTEM\\CurrentControlSet\\Control\\NLS\\Language", 0, KEY_ALL_ACCESS, &hKey)) return FALSE; dwValueSize = 9 * sizeof(TCHAR); - if (RegQueryValueEx(hKey, - _T("Default"), + if (RegQueryValueExW(hKey, + L"Default", NULL, NULL, (LPBYTE)szLanguageIdString, @@ -1158,19 +1157,19 @@ return FALSE; } - iLanguageID = _tcstoul(szLanguageIdString, NULL, 16); + iLanguageID = wcstoul(szLanguageIdString, NULL, 16); RegCloseKey(hKey); - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Time Zones", 0, KEY_ALL_ACCESS, &hKey)) return FALSE; dwValueSize = 0; - if (RegQueryValueEx(hKey, - _T("IndexMapping"), + if (RegQueryValueExW(hKey, + L"IndexMapping", NULL, NULL, NULL, @@ -1187,8 +1186,8 @@ return FALSE; } - if (RegQueryValueEx(hKey, - _T("IndexMapping"), + if (RegQueryValueExW(hKey, + L"IndexMapping", NULL, NULL, (LPBYTE)Buffer, @@ -1204,8 +1203,8 @@ Ptr = Buffer; while (*Ptr != 0) { - Length = _tcslen(Ptr); - if (_tcstoul(Ptr, NULL, 16) == iLanguageID) + Length = wcslen(Ptr); + if (wcstoul(Ptr, NULL, 16) == iLanguageID) bFound = TRUE; Ptr = Ptr + Length + 1; @@ -1214,12 +1213,12 @@ if (bFound) { - *lpIndex = _tcstoul(Ptr, &End, 10); + *lpIndex = wcstoul(Ptr, &End, 10); HeapFree(GetProcessHeap(), 0, Buffer); return TRUE; } - Length = _tcslen(Ptr); + Length = wcslen(Ptr); Ptr = Ptr + Length + 1; } @@ -1283,9 +1282,9 @@ Entry = Entry->Next; } - _tcscpy(TimeZoneInformation.StandardName, + wcscpy(TimeZoneInformation.StandardName, Entry->StandardName); - _tcscpy(TimeZoneInformation.DaylightName, + wcscpy(TimeZoneInformation.DaylightName, Entry->DaylightName); TimeZoneInformation.Bias = Entry->TimezoneInfo.Bias; @@ -2028,38 +2027,38 @@ ProcessUnattendInf(HINF hUnattendedInf) { INFCONTEXT InfContext; - TCHAR szName[256]; - TCHAR szValue[MAX_PATH]; + WCHAR szName[256]; + WCHAR szValue[MAX_PATH]; DWORD LineLength; HKEY hKey; - if (!SetupFindFirstLine(hUnattendedInf, - _T("Unattend"), - _T("UnattendSetupEnabled"), + if (!SetupFindFirstLineW(hUnattendedInf, + L"Unattend", + L"UnattendSetupEnabled", &InfContext)) { DPRINT1("Error: Cant find UnattendSetupEnabled Key! %d\n", GetLastError()); return FALSE; } - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 1, szValue, - sizeof(szValue) / sizeof(TCHAR), + sizeof(szValue) / sizeof(WCHAR), &LineLength)) { DPRINT1("Error: SetupGetStringField failed with %d\n", GetLastError()); return FALSE; } - if (_tcscmp(szValue, _T("yes")) != 0) + if (wcscmp(szValue, L"yes") != 0) { DPRINT("Unattend setup was disabled by UnattendSetupEnabled key.\n"); return FALSE; } - if (!SetupFindFirstLine(hUnattendedInf, - _T("Unattend"), + if (!SetupFindFirstLineW(hUnattendedInf, + L"Unattend", NULL, &InfContext)) { @@ -2070,79 +2069,79 @@ do { - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 0, szName, - sizeof(szName) / sizeof(TCHAR), + sizeof(szName) / sizeof(WCHAR), &LineLength)) { DPRINT1("Error: SetupGetStringField failed with %d\n", GetLastError()); return FALSE; } - if (!SetupGetStringField(&InfContext, + if (!SetupGetStringFieldW(&InfContext, 1, szValue, - sizeof(szValue) / sizeof(TCHAR), + sizeof(szValue) / sizeof(WCHAR), &LineLength)) { DPRINT1("Error: SetupGetStringField failed with %d\n", GetLastError()); return FALSE; } DPRINT1("Name %S Value %S\n",szName, szValue); - if (!_tcscmp(szName, _T("FullName"))) + if (!wcscmp(szName, L"FullName")) { if ((sizeof(SetupData.OwnerName) / sizeof(TCHAR)) > LineLength) { - _tcscpy(SetupData.OwnerName, szValue); + wcscpy(SetupData.OwnerName, szValue); } } - else if (!_tcscmp(szName, _T("OrgName"))) + else if (!wcscmp(szName, L"OrgName")) { - if ((sizeof(SetupData.OwnerOrganization) / sizeof(TCHAR)) > LineLength) + if ((sizeof(SetupData.OwnerOrganization) / sizeof(WCHAR)) > LineLength) { - _tcscpy(SetupData.OwnerOrganization, szValue); + wcscpy(SetupData.OwnerOrganization, szValue); } } - else if (!_tcscmp(szName, _T("ComputerName"))) + else if (!wcscmp(szName, L"ComputerName")) { - if ((sizeof(SetupData.ComputerName) / sizeof(TCHAR)) > LineLength) - { - _tcscpy(SetupData.ComputerName, szValue); - } - } - else if (!_tcscmp(szName, _T("AdminPassword"))) + if ((sizeof(SetupData.ComputerName) / sizeof(WCHAR)) > LineLength) + { + wcscpy(SetupData.ComputerName, szValue); + } + } + else if (!wcscmp(szName, L"AdminPassword")) { - if ((sizeof(SetupData.AdminPassword) / sizeof(TCHAR)) > LineLength) + if ((sizeof(SetupData.AdminPassword) / sizeof(WCHAR)) > LineLength) { - _tcscpy(SetupData.AdminPassword, szValue); + wcscpy(SetupData.AdminPassword, szValue); } } - else if (!_tcscmp(szName, _T("TimeZoneIndex"))) + else if (!wcscmp(szName, L"TimeZoneIndex")) { - SetupData.TimeZoneIndex = _ttoi(szValue); + SetupData.TimeZoneIndex = _wtoi(szValue); } - else if (!_tcscmp(szName, _T("DisableAutoDaylightTimeSet"))) + else if (!wcscmp(szName, L"DisableAutoDaylightTimeSet")) { - SetupData.DisableAutoDaylightTimeSet = _ttoi(szValue); + SetupData.DisableAutoDaylightTimeSet = _wtoi(szValue); } - else if (!_tcscmp(szName, _T("DisableVmwInst"))) + else if (!wcscmp(szName, L"DisableVmwInst")) { - if(!_tcscmp(szValue, _T("yes"))) + if(!wcscmp(szValue, L"yes")) SetupData.DisableVmwInst = 1; else SetupData.DisableVmwInst = 0; } - else if (!_tcscmp(szName, _T("BootCDRegTestActive"))) + else if (!wcscmp(szName, L"BootCDRegTestActive")) { - SetupData.BootCDRegtestActive = _ttoi(szValue); + SetupData.BootCDRegtestActive = _wtoi(szValue); } } while (SetupFindNextLine(&InfContext, &InfContext)); - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce", 0, KEY_SET_VALUE, &hKey) != ERROR_SUCCESS) @@ -2152,8 +2151,8 @@ } - if (SetupFindFirstLine(hUnattendedInf, - _T("GuiRunOnce"), + if (SetupFindFirstLineW(hUnattendedInf, + L"GuiRunOnce", NULL, &InfContext)) { @@ -2161,25 +2160,25 @@ int i = 0; do { - if(SetupGetStringField(&InfContext, + if(SetupGetStringFieldW(&InfContext, 0, szValue, - sizeof(szValue) / sizeof(TCHAR), + sizeof(szValue) / sizeof(WCHAR), NULL)) { - TCHAR szPath[MAX_PATH]; - _stprintf(szName, _T("%d"), i); + WCHAR szPath[MAX_PATH]; + swprintf(szName, L"%d", i); DPRINT("szName %S szValue %S\n", szName, szValue); - if (ExpandEnvironmentStrings(szValue, szPath, MAX_PATH)) + if (ExpandEnvironmentStringsW(szValue, szPath, MAX_PATH)) { DPRINT("value %S\n", szPath); - if (RegSetValueEx(hKey, + if (RegSetValueExW(hKey, szName, 0, REG_SZ, (const BYTE*)szPath, - (_tcslen(szPath)+1) * sizeof(TCHAR)) == ERROR_SUCCESS) + (wcslen(szPath)+1) * sizeof(WCHAR)) == ERROR_SUCCESS) { i++; } @@ -2272,7 +2271,7 @@ for (dwIndex = 0; dwIndex < dwLength; dwIndex++) { szDrive[0] = pDrive[dwIndex]; - if (GetDriveType(szDrive) == DRIVE_CDROM) + if (GetDriveTypeW(szDrive) == DRIVE_CDROM) { WCHAR szBuffer[MAX_PATH]; wcscpy(szBuffer, szDrive);
16 years, 1 month
1
0
0
0
[janderwald] 38011: - Use FILE_DEVICE_KS when creating new device object - Partly implement PcNewRegistryKey, PcRegisterSubdevice - DPC event is a Synchronization event- Implement PcRegisterAdapterPowerManagement
by janderwald@svn.reactos.org
Author: janderwald Date: Thu Dec 11 05:23:14 2008 New Revision: 38011 URL:
http://svn.reactos.org/svn/reactos?rev=38011&view=rev
Log: - Use FILE_DEVICE_KS when creating new device object - Partly implement PcNewRegistryKey, PcRegisterSubdevice - DPC event is a Synchronization event- Implement PcRegisterAdapterPowerManagement Added: trunk/reactos/drivers/wdm/audio/backpln/portcls/power.c (with props) Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h trunk/reactos/drivers/wdm/audio/backpln/portcls/registry.c trunk/reactos/drivers/wdm/audio/backpln/portcls/service_group.c trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/adapter.c [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -144,7 +144,7 @@ status = IoCreateDevice(DriverObject, DeviceExtensionSize, NULL, - PhysicalDeviceObject->DeviceType, /* FILE_DEVICE_KS ? */ + FILE_DEVICE_KS, PhysicalDeviceObject->Characteristics, /* TODO: Check */ FALSE, &fdo); @@ -161,9 +161,56 @@ ASSERT(portcls_ext); /* Initialize */ + RtlZeroMemory(portcls_ext, sizeof(PCExtension)); portcls_ext->StartDevice = StartDevice; + status = KsAllocateDeviceHeader(&portcls_ext->KsDeviceHeader, 0, NULL); + if (!NT_SUCCESS(status)) + { + IoDeleteDevice(fdo); + return status; + } + DPRINT("PcAddAdapterDriver succeeded\n"); + return status; +} + +NTSTATUS +NTAPI +PciDriverDispatch( + IN PDEVICE_OBJECT DeviceObject, + IN PIRP Irp) +{ + DPRINT1("PortClsSysControl called\n"); + + /* TODO */ + + Irp->IoStatus.Status = STATUS_SUCCESS; + Irp->IoStatus.Information = 0; + IoCompleteRequest(Irp, IO_NO_INCREMENT); + return STATUS_SUCCESS; } + +NTSTATUS NTAPI +PcRegisterSubdevice( + IN PDEVICE_OBJECT DeviceObject, + IN PWCHAR Name, + IN PUNKNOWN Unknown) +{ + PCExtension* DeviceExt; + NTSTATUS Status; + + if (!DeviceObject || !Name || !Unknown) + return STATUS_INVALID_PARAMETER; + + DeviceExt = (PCExtension*)DeviceObject->DeviceExtension; + if (!DeviceExt) + return STATUS_UNSUCCESSFUL; + + Status = KsAddObjectCreateItemToDeviceHeader(DeviceExt->KsDeviceHeader, PciDriverDispatch, (PVOID)Unknown, Name, NULL); + + + return STATUS_UNSUCCESSFUL; +} Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/portcls.rbuild [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -23,6 +23,7 @@ <file>registry.c</file> <file>service_group.c</file> <file>port.c</file> + <file>power.c</file> <file>port_dmus.c</file> <file>port_midi.c</file> <file>port_topology.c</file> Added: trunk/reactos/drivers/wdm/audio/backpln/portcls/power.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/power.c (added) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/power.c [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -1,0 +1,38 @@ +#include "private.h" + +const GUID IID_IAdapterPowerManagement; + +/* + * @implemented + */ + +NTSTATUS +NTAPI +PcRegisterAdapterPowerManagement( + IN PUNKNOWN pUnknown, + IN PVOID pvContext) +{ + NTSTATUS Status; + PDEVICE_OBJECT pDeviceObject; + PCExtension* DeviceExt; + IAdapterPowerManagement * pPower; + + if (!pUnknown || !pvContext) + return STATUS_INVALID_PARAMETER; + + Status = pUnknown->lpVtbl->QueryInterface(pUnknown, &IID_IAdapterPowerManagement, (PVOID*)&pPower); + if (!NT_SUCCESS(Status)) + return Status; + + pDeviceObject = (PDEVICE_OBJECT)pvContext; + DeviceExt = (PCExtension*)pDeviceObject->DeviceExtension; + + if (DeviceExt->AdapterPowerManagement) + { + pPower->lpVtbl->Release(pPower); + return STATUS_UNSUCCESSFUL; + } + + DeviceExt->AdapterPowerManagement = pPower; + return STATUS_SUCCESS; +} Propchange: trunk/reactos/drivers/wdm/audio/backpln/portcls/power.c ------------------------------------------------------------------------------ svn:eol-style = native Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/private.h [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -69,9 +69,17 @@ NTSTATUS NewPortWavePci( OUT PPORT* OutPort); +NTSTATUS NewDmaChannelSlave( + IN PDEVICE_DESCRIPTION DeviceDesc, + IN PDMA_ADAPTER Adapter, + OUT PDMACHANNELSLAVE* DmaChannel); + + typedef struct { PCPFNSTARTDEVICE StartDevice; + KSDEVICE_HEADER KsDeviceHeader; + IAdapterPowerManagement * AdapterPowerManagement; IResourceList* resources; } PCExtension; Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/registry.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/registry.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/registry.c [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -198,6 +198,22 @@ return ZwSetValueKey(This->hKey, ValueName, 0, Type, Data, DataSize); } +static IRegistryKeyVtbl vt_IRegistryKey = +{ + /* IUnknown methods */ + IRegistryKey_fnQueryInterface, + IRegistryKey_fnAddRef, + IRegistryKey_fnRelease, + /* IRegistryKey methods */ + IRegistryKey_fnQueryKey, + IRegistryKey_fnEnumerateKey, + IRegistryKey_fnQueryValueKey, + IRegistryKey_fnEnumerateKeyValue, + IRegistryKey_fnSetValueKey, + IRegistryKey_fnQueryRegistryValues, + IRegistryKey_fnNewSubKey, + IRegistryKey_fnDeleteKey +}; /* * @unimplemented @@ -214,9 +230,47 @@ IN ULONG CreateOptions OPTIONAL, OUT PULONG Disposition OPTIONAL) { - UNIMPLEMENTED; - //IoGetDeviceProperty - - return STATUS_UNSUCCESSFUL; -} - + HANDLE hHandle; + NTSTATUS Status = STATUS_UNSUCCESSFUL; + IRegistryKeyImpl * This; + + if (!OutRegistryKey) + return STATUS_INVALID_PARAMETER; + + if (RegistryKeyType != GeneralRegistryKey && + RegistryKeyType != DeviceRegistryKey && + RegistryKeyType != DriverRegistryKey && + RegistryKeyType != HwProfileRegistryKey && + RegistryKeyType != DeviceInterfaceRegistryKey) + { + return STATUS_INVALID_PARAMETER; + } + + if (RegistryKeyType == GeneralRegistryKey) + { + if (!ObjectAttributes) + return STATUS_INVALID_PARAMETER; + + Status = ZwOpenKey(&hHandle, DesiredAccess, ObjectAttributes); + } + + if (!NT_SUCCESS(Status)) + { + return Status; + } + + This = ExAllocatePoolWithTag(NonPagedPool, sizeof(IRegistryKeyImpl), TAG_PORTCLASS); + if (!This) + { + ZwClose(hHandle); + return STATUS_INSUFFICIENT_RESOURCES; + } + + This->hKey = hHandle; + This->lpVtbl = &vt_IRegistryKey; + This->ref = 1; + + *OutRegistryKey = (PREGISTRYKEY)&This->lpVtbl; + return STATUS_SUCCESS; +} + Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/service_group.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/service_group.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/service_group.c [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -191,7 +191,7 @@ if (!This->Initialized) { - KeInitializeEvent(&This->DpcEvent, NotificationEvent, FALSE); + KeInitializeEvent(&This->DpcEvent, SynchronizationEvent, FALSE); KeInitializeTimerEx(&This->Timer, NotificationTimer); KeInitializeDpc(&This->Dpc, IServiceGroupDpc, (PVOID)This); This->Initialized = TRUE; @@ -263,8 +263,5 @@ This->Initialized = FALSE; *OutServiceGroup = (PSERVICEGROUP)&This->lpVtbl; - return STATUS_UNSUCCESSFUL; -} - - - + return STATUS_SUCCESS; +} Modified: trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/wdm/audio/backpln/…
============================================================================== --- trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c [iso-8859-1] (original) +++ trunk/reactos/drivers/wdm/audio/backpln/portcls/stubs.c [iso-8859-1] Thu Dec 11 05:23:14 2008 @@ -31,18 +31,6 @@ /* =============================================================== Power Management */ - -/* - * @unimplemented - */ -NTSTATUS NTAPI -PcRegisterAdapterPowerManagement( - IN PUNKNOWN pUnknown, - IN PVOID pvContext1) -{ - UNIMPLEMENTED; - return STATUS_UNSUCCESSFUL; -} /* * @unimplemented @@ -130,17 +118,3 @@ /* * @unimplemented */ - - -/* - * @unimplemented - */ -NTSTATUS NTAPI -PcRegisterSubdevice( - IN PDEVICE_OBJECT DeviceObject, - IN PWCHAR Name, - IN PUNKNOWN Unknown) -{ - UNIMPLEMENTED; - return STATUS_UNSUCCESSFUL; -}
16 years, 1 month
1
0
0
0
[janderwald] 38010: - Add IAdapterPowerManagement interface
by janderwald@svn.reactos.org
Author: janderwald Date: Thu Dec 11 05:21:02 2008 New Revision: 38010 URL:
http://svn.reactos.org/svn/reactos?rev=38010&view=rev
Log: - Add IAdapterPowerManagement interface Modified: trunk/reactos/include/ddk/portcls.h Modified: trunk/reactos/include/ddk/portcls.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/portcls.h?rev=…
============================================================================== --- trunk/reactos/include/ddk/portcls.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/portcls.h [iso-8859-1] Thu Dec 11 05:21:02 2008 @@ -1362,8 +1362,23 @@ IAdapterPowerManagement Interface */ +#undef INTERFACE +#define INTERFACE IAdapterPowerManagement + +DEFINE_GUID(IID_IAdapterPowerManagement, 0x793417D0L, 0x35FE, 0x11D1, 0xAD, 0x08, 0x00, 0xA0, 0xC9, 0x0A, 0xB1, 0xB0); + DECLARE_INTERFACE_(IAdapterPowerManagement, IUnknown) { + DEFINE_ABSTRACT_UNKNOWN() + + STDMETHOD_(void,PowerChangeState)(THIS_ + IN POWER_STATE NewState) PURE; + + STDMETHOD_(NTSTATUS,QueryPowerChangeState)(THIS_ + IN POWER_STATE NewStateQuery) PURE; + + STDMETHOD_(NTSTATUS,QueryDeviceCapabilities)(THIS_ + IN PDEVICE_CAPABILITIES PowerDeviceCaps) PURE; }; #define IMP_IAdapterPowerManagement
16 years, 1 month
1
0
0
0
[janderwald] 38009: - Add undef macro to avoid warnings
by janderwald@svn.reactos.org
Author: janderwald Date: Thu Dec 11 04:55:09 2008 New Revision: 38009 URL:
http://svn.reactos.org/svn/reactos?rev=38009&view=rev
Log: - Add undef macro to avoid warnings Modified: trunk/reactos/include/ddk/portcls.h Modified: trunk/reactos/include/ddk/portcls.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/portcls.h?rev=…
============================================================================== --- trunk/reactos/include/ddk/portcls.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/portcls.h [iso-8859-1] Thu Dec 11 04:55:09 2008 @@ -790,6 +790,9 @@ /* =============================================================== IRegistryKey Interface */ + +#undef INTERFACE +#define INTERFACE IRegistryKey enum {
16 years, 1 month
1
0
0
0
[janderwald] 38008: - add IID_IServiceSink - add IID_IServiceGroup - add enum for IRegistryKey
by janderwald@svn.reactos.org
Author: janderwald Date: Thu Dec 11 04:44:50 2008 New Revision: 38008 URL:
http://svn.reactos.org/svn/reactos?rev=38008&view=rev
Log: - add IID_IServiceSink - add IID_IServiceGroup - add enum for IRegistryKey Modified: trunk/reactos/include/ddk/portcls.h Modified: trunk/reactos/include/ddk/portcls.h URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/portcls.h?rev=…
============================================================================== --- trunk/reactos/include/ddk/portcls.h [iso-8859-1] (original) +++ trunk/reactos/include/ddk/portcls.h [iso-8859-1] Thu Dec 11 04:44:50 2008 @@ -559,6 +559,9 @@ /* =============================================================== IServiceSink Interface */ +#define INTERFACE IServiceSink + +DEFINE_GUID(IID_IServiceSink, 0x22C6AC64L, 0x851B, 0x11D0, 0x9A, 0x7F, 0x00, 0xAA, 0x00, 0x38, 0xAC, 0xFE); DECLARE_INTERFACE_(IServiceSink, IUnknown) { @@ -575,8 +578,12 @@ /* =============================================================== IServiceGroup Interface */ - -DECLARE_INTERFACE_(IServiceGroup, IUnknown) +#undef INTERFACE +#define INTERFACE IServiceGroup + +DEFINE_GUID(IID_IServiceGroup, 0x22C6AC65L, 0x851B, 0x11D0, 0x9A, 0x7F, 0x00, 0xAA, 0x00, 0x38, 0xAC, 0xFE); + +DECLARE_INTERFACE_(IServiceGroup, IServiceSink) { DEFINE_ABSTRACT_UNKNOWN() @@ -783,6 +790,15 @@ /* =============================================================== IRegistryKey Interface */ + +enum +{ + GeneralRegistryKey, + DeviceRegistryKey, + DriverRegistryKey, + HwProfileRegistryKey, + DeviceInterfaceRegistryKey +}; DEFINE_GUID(IID_IRegistryKey, 0xE8DA4302l, 0xF304, 0x11D0, 0x95, 0x8B, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3);
16 years, 1 month
1
0
0
0
[cwittich] 38007: convert parts of syssetup to WCHAR - please help to fix this mess
by cwittich@svn.reactos.org
Author: cwittich Date: Thu Dec 11 03:41:55 2008 New Revision: 38007 URL:
http://svn.reactos.org/svn/reactos?rev=38007&view=rev
Log: convert parts of syssetup to WCHAR - please help to fix this mess Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Dec 11 03:41:55 2008 @@ -133,7 +133,7 @@ CreateTitleFont(VOID) { NONCLIENTMETRICS ncm; - LOGFONT LogFont; + LOGFONTW LogFont; HDC hdc; INT FontSize; HFONT hFont; @@ -143,12 +143,12 @@ LogFont = ncm.lfMessageFont; LogFont.lfWeight = FW_BOLD; - _tcscpy(LogFont.lfFaceName, _T("MS Shell Dlg")); + wcscpy(LogFont.lfFaceName, L"MS Shell Dlg"); hdc = GetDC(NULL); FontSize = 12; - LogFont.lfHeight = 0 - GetDeviceCaps (hdc, LOGPIXELSY) * FontSize / 72; - hFont = CreateFontIndirect(&LogFont); + LogFont.lfHeight = 0 - GetDeviceCaps(hdc, LOGPIXELSY) * FontSize / 72; + hFont = CreateFontIndirectW(&LogFont); ReleaseDC(NULL, hdc); return hFont; @@ -553,7 +553,7 @@ { wcscpy(ErrorComputerName, L"Setup failed to set the computer name."); } - MessageBox(hwndDlg, ErrorComputerName, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, ErrorComputerName, Title, MB_ICONERROR | MB_OK); return FALSE; } @@ -637,7 +637,7 @@ { wcscpy(EmptyComputerName, L"Setup cannot continue until you enter the name of your computer."); } - MessageBox(hwndDlg, EmptyComputerName, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, EmptyComputerName, Title, MB_ICONERROR | MB_OK); SetFocus(GetDlgItem(hwndDlg, IDC_COMPUTERNAME)); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); return TRUE; @@ -663,7 +663,7 @@ { wcscpy(EmptyPassword, L"You must enter a password !"); } - MessageBox(hwndDlg, EmptyPassword, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, EmptyPassword, Title, MB_ICONERROR | MB_OK); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); return TRUE; } @@ -679,7 +679,7 @@ { wcscpy(NotMatchPassword, L"The passwords you entered do not match. Please enter the desired password again."); } - MessageBox(hwndDlg, NotMatchPassword, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, NotMatchPassword, Title, MB_ICONERROR | MB_OK); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); return TRUE; } @@ -695,7 +695,7 @@ { wcscpy(WrongPassword, L"The password you entered contains invalid characters. Please enter a cleaned password."); } - MessageBox(hwndDlg, WrongPassword, Title, MB_ICONERROR | MB_OK); + MessageBoxW(hwndDlg, WrongPassword, Title, MB_ICONERROR | MB_OK); SetWindowLong(hwndDlg, DWL_MSGRESULT, -1); return TRUE; break; @@ -784,11 +784,11 @@ static BOOL RunControlPanelApplet(HWND hwnd, WCHAR *lpCommandLine) { - STARTUPINFO StartupInfo; + STARTUPINFOW StartupInfo; PROCESS_INFORMATION ProcessInformation; - ZeroMemory(&StartupInfo, sizeof(STARTUPINFO)); - StartupInfo.cb = sizeof(STARTUPINFO); + ZeroMemory(&StartupInfo, sizeof(STARTUPINFOW)); + StartupInfo.cb = sizeof(STARTUPINFOW); if (!CreateProcessW(NULL, lpCommandLine, @@ -801,7 +801,7 @@ &StartupInfo, &ProcessInformation)) { - MessageBox(hwnd, _T("Error: failed to launch rundll32"), NULL, MB_ICONERROR); + MessageBoxW(hwnd, L"Error: failed to launch rundll32", NULL, MB_ICONERROR); return FALSE; } @@ -816,17 +816,17 @@ { HKEY hKey; LCID lcid; - TCHAR Locale[12]; + WCHAR Locale[12]; lcid = GetSystemDefaultLCID(); - if (GetLocaleInfo(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, Locale, sizeof(Locale) / sizeof(Locale[0])) != 0) + if (GetLocaleInfoW(MAKELCID(lcid, SORT_DEFAULT), LOCALE_ILANGUAGE, Locale, sizeof(Locale) / sizeof(Locale[0])) != 0) { - if (RegCreateKeyEx(HKEY_CURRENT_USER, _T("Control Panel\\International"), + if (RegCreateKeyExW(HKEY_CURRENT_USER, L"Control Panel\\International", 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKey, NULL) == ERROR_SUCCESS) { - RegSetValueEx(hKey, _T("Locale"), 0, REG_SZ, (LPBYTE)Locale, (_tcslen(Locale)+1) * sizeof(TCHAR)); + RegSetValueExW(hKey, L"Locale", 0, REG_SZ, (LPBYTE)Locale, (wcslen(Locale)+1) * sizeof(WCHAR)); RegCloseKey(hKey); } } @@ -864,7 +864,7 @@ { case IDC_CUSTOMLOCALE: { - wcscpy(szBuffer, _T("rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5")); + wcscpy(szBuffer, L"rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5"); RunControlPanelApplet(hwndDlg, szBuffer); /* FIXME: Update input locale name */ } @@ -872,7 +872,7 @@ case IDC_CUSTOMLAYOUT: { - wcscpy(szBuffer, _T("rundll32.exe shell32.dll,Control_RunDLL input.dll,@1")); + wcscpy(szBuffer, L"rundll32.exe shell32.dll,Control_RunDLL input.dll,@1"); RunControlPanelApplet(hwndDlg, szBuffer); } break; @@ -1341,15 +1341,15 @@ if (SendMessage(hwnd, BM_GETCHECK, 0, 0) == BST_UNCHECKED) { - if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, - _T("SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation"), + if (RegOpenKeyExW(HKEY_LOCAL_MACHINE, + L"SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation", 0, KEY_SET_VALUE, &hKey)) return; - RegSetValueEx(hKey, - _T("DisableAutoDaylightTimeSet"), + RegSetValueExW(hKey, + L"DisableAutoDaylightTimeSet", 0, REG_DWORD, (LPBYTE)&dwValue, @@ -1438,7 +1438,7 @@ { wcscpy(ErrorLocalTime, L"Setup failed to set the computer name."); } - MessageBox(hwndDlg, ErrorLocalTime, Title, MB_ICONWARNING | MB_OK); + MessageBoxW(hwndDlg, ErrorLocalTime, Title, MB_ICONWARNING | MB_OK); return FALSE; } @@ -1523,7 +1523,7 @@ { wcscpy(ErrorLocalTime, L"Setup failed to set the computer name."); } - MessageBox(hwndDlg, ErrorLocalTime, Title, MB_ICONWARNING | MB_OK); + MessageBoxW(hwndDlg, ErrorLocalTime, Title, MB_ICONWARNING | MB_OK); } } break; @@ -1920,8 +1920,8 @@ SetupIsActive( DWORD dw ) { HKEY hKey = 0; - if (RegOpenKeyEx( HKEY_LOCAL_MACHINE, _T("SYSTEM\\Setup"), 0, KEY_WRITE, &hKey ) == ERROR_SUCCESS) { - RegSetValueEx( hKey, _T("SystemSetupInProgress"), 0, REG_DWORD, (CONST BYTE *)&dw, sizeof(dw) ); + if (RegOpenKeyExW( HKEY_LOCAL_MACHINE, L"SYSTEM\\Setup", 0, KEY_WRITE, &hKey ) == ERROR_SUCCESS) { + RegSetValueExW( hKey, L"SystemSetupInProgress", 0, REG_DWORD, (CONST BYTE *)&dw, sizeof(dw) ); RegCloseKey( hKey ); } }
16 years, 1 month
1
0
0
0
[janderwald] 38006: - Fix RegSetValueEx parameters - Found by Chris
by janderwald@svn.reactos.org
Author: janderwald Date: Thu Dec 11 03:05:19 2008 New Revision: 38006 URL:
http://svn.reactos.org/svn/reactos?rev=38006&view=rev
Log: - Fix RegSetValueEx parameters - Found by Chris Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Dec 11 03:05:19 2008 @@ -2179,7 +2179,7 @@ 0, REG_SZ, (const BYTE*)szPath, - _tcslen(szPath) * sizeof(TCHAR)) == ERROR_SUCCESS) + (_tcslen(szPath)+1) * sizeof(TCHAR)) == ERROR_SUCCESS) { i++; } @@ -2217,7 +2217,7 @@ 0, REG_SZ, (const BYTE*)szPath, - strlen(szPath) * sizeof(char)); + (strlen(szPath)+1) * sizeof(char)); /* winetests */
16 years, 1 month
1
0
0
0
[cwittich] 38005: don't set testplatform to wine anymore as our services code succeeds in wine todo blocks
by cwittich@svn.reactos.org
Author: cwittich Date: Thu Dec 11 00:47:06 2008 New Revision: 38005 URL:
http://svn.reactos.org/svn/reactos?rev=38005&view=rev
Log: don't set testplatform to wine anymore as our services code succeeds in wine todo blocks Modified: trunk/reactos/dll/win32/syssetup/wizard.c Modified: trunk/reactos/dll/win32/syssetup/wizard.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/syssetup/wizard.…
============================================================================== --- trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/syssetup/wizard.c [iso-8859-1] Thu Dec 11 00:47:06 2008 @@ -2221,7 +2221,6 @@ /* winetests */ - fprintf(file, "%s\n", "SET WINETEST_PLATFORM=wine"); hFind = FindFirstFileA("c:\\reactos\\bin\\*.exe", &ffd); /* %windir% isn't working on ros */ if (hFind != INVALID_HANDLE_VALUE) {
16 years, 1 month
1
0
0
0
← Newer
1
...
46
47
48
49
50
51
52
...
71
Older →
Jump to page:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Results per page:
10
25
50
100
200