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
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
June 2007
----- 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
21 participants
420 discussions
Start a n
N
ew thread
[weiden] 27339: Add the vmwaregateway tool source code of Volkmar Uhlig <volkmar@ira.uka.de>. Upgraded project file and changed headers to get it to compile.
by weiden@svn.reactos.org
Author: weiden Date: Sat Jun 30 00:18:47 2007 New Revision: 27339 URL:
http://svn.reactos.org/svn/reactos?rev=27339&view=rev
Log: Add the vmwaregateway tool source code of Volkmar Uhlig <volkmar(a)ira.uka.de>. Upgraded project file and changed headers to get it to compile. Added: trunk/tools/vmwaregateway/ (with props) trunk/tools/vmwaregateway/servicemgr.cpp (with props) trunk/tools/vmwaregateway/servicemgr.h (with props) trunk/tools/vmwaregateway/vmwaregateway.cpp (with props) trunk/tools/vmwaregateway/vmwaregateway.sln (with props) trunk/tools/vmwaregateway/vmwaregateway.vcproj (with props) Propchange: trunk/tools/vmwaregateway/ ------------------------------------------------------------------------------ --- svn:ignore (added) +++ svn:ignore Sat Jun 30 00:18:47 2007 @@ -1,0 +1,5 @@ +Debug +Release +*.ncb +*.suo +*.vcproj.* Added: trunk/tools/vmwaregateway/servicemgr.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/tools/vmwaregateway/servicemgr.cpp…
============================================================================== --- trunk/tools/vmwaregateway/servicemgr.cpp (added) +++ trunk/tools/vmwaregateway/servicemgr.cpp Sat Jun 30 00:18:47 2007 @@ -1,0 +1,132 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// (c) 2000 by Volkmar Uhlig, volkmar(a)ira.uka.de,
www.uhlig-langert.de/volkmar
+// +// all code can be reused and modified +// +// +// + +#include <windows.h> +#include <stdio.h> +#include "servicemgr.h" + +extern void Server(); + +SERVICE_STATUS ssStatus; +SERVICE_STATUS_HANDLE sshStatusHandle; + +HANDLE hServiceEvent = NULL; + +BOOL ReportStatusToSCMgr(DWORD dwCurrentState, DWORD dwWin32ExitCode, DWORD dwCheckPoint, DWORD dwWaitHint) +{ + BOOL fResult; + if (dwCurrentState==SERVICE_START_PENDING) + ssStatus.dwControlsAccepted=0; + else + ssStatus.dwControlsAccepted=SERVICE_ACCEPT_STOP; // | SERVICE_ACCEPT_PAUSE_CONTINUE; + ssStatus.dwCurrentState=dwCurrentState; + ssStatus.dwWin32ExitCode=dwWin32ExitCode; + ssStatus.dwCheckPoint=dwCheckPoint; + ssStatus.dwWaitHint=dwWaitHint; + if (!(fResult = SetServiceStatus(sshStatusHandle, &ssStatus))) { + SetEvent(hServiceEvent); + } + return fResult; +} + + +void RegisterService(LPCSTR lpszBinaryPathName, LPCSTR lpszDependencies) +{ + printf("Create %s Service for executable %s\n", GetServiceName(), lpszBinaryPathName); + SC_HANDLE schService, schSCManager; + schSCManager=OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); + if (schSCManager!=NULL) { + schService=CreateService( + schSCManager, + GetServiceName(FALSE), + GetServiceName(TRUE), + SERVICE_ALL_ACCESS, + SERVICE_WIN32_OWN_PROCESS, + SERVICE_DEMAND_START, + SERVICE_ERROR_NORMAL, + (char*)lpszBinaryPathName, + NULL, // no load ordering + NULL, // no tag id + lpszDependencies, + NULL, // Local system account + NULL); // no pwd + if (schService==NULL) + printf("CreateService Error: %ld", GetLastError()); + else + printf("CreateService SUCCESS\n"); + } + CloseServiceHandle(schService); + CloseServiceHandle(schSCManager); +} + +void UnregisterService() { + SC_HANDLE schService, schSCManager; + schSCManager=OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS); + schService=OpenService(schSCManager, + GetServiceName(FALSE), + SERVICE_ALL_ACCESS); + if (DeleteService(schService)) + printf("Service %s successfully unregistered.\n", GetServiceName()); + else + printf("Error while unregistering service %s: %ld\n", GetServiceName(), GetLastError()); + CloseServiceHandle(schService); + CloseServiceHandle(schSCManager); +} + +VOID service_ctrl(DWORD dwCtrlCode) { + DWORD dwState = SERVICE_RUNNING; + switch(dwCtrlCode) { + case SERVICE_CONTROL_STOP: + dwState = SERVICE_STOP_PENDING; + ReportStatusToSCMgr( + SERVICE_STOP_PENDING, + NO_ERROR, + 1, + 3000); + SetEvent(hServiceEvent); + return; + case SERVICE_CONTROL_INTERROGATE: + break; + default: + break; + } + ReportStatusToSCMgr(dwState, NO_ERROR, 0, 0); +} + +VOID service_main(DWORD dwArgs, LPTSTR *lpszArgv) +{ + DWORD dwWait; + sshStatusHandle=RegisterServiceCtrlHandler(GetServiceName(), + (LPHANDLER_FUNCTION)service_ctrl); + if (!sshStatusHandle) goto cleanup; + ssStatus.dwServiceType=SERVICE_WIN32_OWN_PROCESS; + ssStatus.dwServiceSpecificExitCode=0; + if(!ReportStatusToSCMgr(SERVICE_START_PENDING, //service state + NO_ERROR, // exit code + 1, // checkpoint + 3000)) // wait hint + goto cleanup; + hServiceEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + if (hServiceEvent == (HANDLE)NULL) goto cleanup; + if (!ReportStatusToSCMgr(SERVICE_START_PENDING, NO_ERROR, 2, 3000)) goto cleanup; + + // starting... + if (CreateThread(NULL, 4000, LPTHREAD_START_ROUTINE(Server), NULL, 0, NULL)==NULL) goto cleanup; + if (!ReportStatusToSCMgr(SERVICE_RUNNING, NO_ERROR, 0, 0)) goto cleanup; + + dwWait = WaitForSingleObject( hServiceEvent, INFINITE); + +cleanup: + CloseHandle(hServiceEvent); + + if (sshStatusHandle!=NULL) + ReportStatusToSCMgr(SERVICE_STOPPED, 0, 0, 0); + + return; +} Propchange: trunk/tools/vmwaregateway/servicemgr.cpp ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/vmwaregateway/servicemgr.h URL:
http://svn.reactos.org/svn/reactos/trunk/tools/vmwaregateway/servicemgr.h?r…
============================================================================== --- trunk/tools/vmwaregateway/servicemgr.h (added) +++ trunk/tools/vmwaregateway/servicemgr.h Sat Jun 30 00:18:47 2007 @@ -1,0 +1,19 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// (c) 2000 by Volkmar Uhlig, volkmar(a)ira.uka.de,
www.uhlig-langert.de/volkmar
+// +// all code can be reused and modified +// +// +// + + +VOID service_ctrl(DWORD dwCtrlCode); +VOID service_main(DWORD dwArgs, LPTSTR *lpszArgv); + +void RegisterService(LPCSTR lpszBinaryPathName, LPCSTR lpszDependencies); +void UnregisterService(); + +LPCSTR GetServiceName(BOOL bLongName = FALSE); + +extern HANDLE hServiceEvent; Propchange: trunk/tools/vmwaregateway/servicemgr.h ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/vmwaregateway/vmwaregateway.cpp URL:
http://svn.reactos.org/svn/reactos/trunk/tools/vmwaregateway/vmwaregateway.…
============================================================================== --- trunk/tools/vmwaregateway/vmwaregateway.cpp (added) +++ trunk/tools/vmwaregateway/vmwaregateway.cpp Sat Jun 30 00:18:47 2007 @@ -1,0 +1,307 @@ +/////////////////////////////////////////////////////////////////////////////// +// +// (c) 2000 by Volkmar Uhlig, volkmar(a)ira.uka.de,
www.uhlig-langert.de/volkmar
+// +// all code can be reused and modified +// +// +// + + +#define WINVER 0x401 + +#include "winsock2.h" +#include <stdio.h> +#include "servicemgr.h" + +#define SERVICE_NAME "VMWareGateway" +#define DISPLAY_NAME "VMWareGateway" + +#define SERVER_PORT 567 +#define BUFFER_SIZE 1024 + +#define PIPE_NAME "\\\\.\\pipe\\vmwaredebug" + +const char* errServerBusy = "Server is currently connected\n"; + + +// event numbers/index into event array +#define LISTEN_EVENT 0 +#define IO_EVENT 1 +#define PIPE_CONNECT 2 +#define PIPE_READ 3 +#define SERVICE_EVENT 4 +#define MAX_EVENTS 5 + +// verbose output - traces a lot +BOOL verbose = FALSE; + +// the central server loop +void Server() +{ + WORD wVersionRequested; + WSADATA wsaData; + wVersionRequested = MAKEWORD( 2, 2 ); + + // socket and pipe handles + HANDLE pipe; + SOCKET s, conn; + WSAEVENT hEvents[MAX_EVENTS]; + OVERLAPPED ovRead, ovConnect; + + // copy buffers + char buffersocket[BUFFER_SIZE]; + char bufferpipe[BUFFER_SIZE]; + DWORD dwBytesSocket, dwBytesPipe; + + // booleans of connection states + BOOL pipeConnected = FALSE; + BOOL socketConnected = FALSE; + + // socket stuff + sockaddr_in sockaddr; + int err; + int addrlen; + + // init network + if (err = WSAStartup(wVersionRequested, &wsaData)) { + printf("Error initializing network\n"); + return; + } + + // first create the named pipe + pipe = CreateNamedPipe(PIPE_NAME, + PIPE_ACCESS_DUPLEX | FILE_FLAG_OVERLAPPED, + 0, + 1, + 100, + 100, + NMPWAIT_WAIT_FOREVER, + NULL); + + if (pipe == INVALID_HANDLE_VALUE) { + printf("Could not create named pipe (%d)\n", GetLastError()); + exit(0); + } + + hEvents[SERVICE_EVENT] = hServiceEvent; + + // now create the listen socket to wait for incoming requests + hEvents[LISTEN_EVENT] = WSACreateEvent(); + hEvents[IO_EVENT] = WSACreateEvent(); + ovConnect.hEvent = hEvents[PIPE_CONNECT] = CreateEvent(NULL, TRUE, FALSE, NULL); + ovRead.hEvent = hEvents[PIPE_READ] = CreateEvent(NULL, TRUE, FALSE, NULL); + + if (hEvents[LISTEN_EVENT] == WSA_INVALID_EVENT || + hEvents[IO_EVENT] == WSA_INVALID_EVENT || + hEvents[PIPE_CONNECT] == NULL || + hEvents[PIPE_READ] == NULL) + { + printf("Error creating net event\n"); + return; + } + + // async connect to named pipe + err = ConnectNamedPipe(pipe, &ovConnect); + + // listen socket + s = socket(AF_INET, SOCK_STREAM, 0); + if (s == INVALID_SOCKET) { + printf("Could not initialize socket (%d)\n", GetLastError()); + return; + } + sockaddr.sin_family=AF_INET; + sockaddr.sin_port=htons(SERVER_PORT); + sockaddr.sin_addr.s_addr = ADDR_ANY; + + err = bind(s, (struct sockaddr*)&sockaddr, sizeof(sockaddr)); + if (err) { + printf("Could not bind socket (%d)\n", GetLastError()); + return; + } + err = listen(s, 5); + WSAEventSelect(s, hEvents[LISTEN_EVENT], FD_ACCEPT); + + + // central loop + while(1) + { + DWORD numEvent = WSAWaitForMultipleEvents(MAX_EVENTS, hEvents, + FALSE, WSA_INFINITE, TRUE); + //printf("Event: %d\n", numEvent); + switch(numEvent) { + case LISTEN_EVENT: + printf("incoming telnet request "); + if (!socketConnected) { + addrlen = sizeof(sockaddr); + conn = accept(s, (struct sockaddr*)&sockaddr, &addrlen); + if (conn == INVALID_SOCKET) { + printf("error connecting\n"); + } + else { + //err = listen(s, 5); relisten??? + hEvents[IO_EVENT] = WSACreateEvent(); + WSAEventSelect(conn, hEvents[IO_EVENT], FD_READ|FD_CLOSE); + socketConnected = TRUE; + printf("accepted\n"); + } + } + else { + addrlen = sizeof(sockaddr); + SOCKET tmp = accept(s, (struct sockaddr*)&sockaddr, &addrlen); + send(tmp, errServerBusy, strlen(errServerBusy), 0); + closesocket(tmp); + printf("denied\n"); + } + + WSAResetEvent(hEvents[LISTEN_EVENT]); + break; + + case IO_EVENT: + { + WSANETWORKEVENTS NetEvents; + WSAEnumNetworkEvents(conn, hEvents[IO_EVENT], &NetEvents); + switch(NetEvents.lNetworkEvents) + { + case FD_READ: + dwBytesSocket = recv(conn, buffersocket, sizeof(buffersocket), 0); + if (verbose) { + buffersocket[dwBytesSocket]=0; + printf("%s", buffersocket); + } + if (pipeConnected) { + DWORD dwWritten; + WriteFile(pipe, buffersocket, dwBytesSocket, &dwWritten, NULL); + } + break; + case FD_CLOSE: + /* connection closed by host */ + closesocket(conn); + socketConnected = FALSE; + listen(s, 5); + printf("telnet session closed\n"); + break; + } + + } break; + case PIPE_CONNECT: + if (!GetOverlappedResult(pipe, &ovConnect, &dwBytesPipe, FALSE)) + { + printf("error pipe connect (%d)\n", GetLastError()); + break; + } + printf("pipe connected\n"); + ResetEvent(hEvents[PIPE_CONNECT]); + ResetEvent(hEvents[PIPE_READ]); + pipeConnected = TRUE; + + ovRead.Offset = 0; + ovRead.OffsetHigh = 0; + ReadFile(pipe, bufferpipe, sizeof(bufferpipe), &dwBytesPipe, &ovRead); + break; + + case PIPE_READ: + if (GetOverlappedResult(pipe, &ovRead, &dwBytesPipe, FALSE)) + { + if (verbose) { + bufferpipe[dwBytesPipe] = 0; + printf(bufferpipe); + } + if (socketConnected) + { + send(conn, bufferpipe, dwBytesPipe, 0); + } + ResetEvent(hEvents[PIPE_READ]); + } + else + { + DWORD err = GetLastError(); + switch (err) { + case ERROR_BROKEN_PIPE: /* disconnect and reconnect pipe */ + DisconnectNamedPipe(pipe); + ConnectNamedPipe(pipe, &ovConnect); + ResetEvent(hEvents[PIPE_CONNECT]); + ResetEvent(hEvents[PIPE_READ]); + pipeConnected = FALSE; + printf("pipe disconnected\n"); + continue;break; + } + } + ovRead.Offset = 0; + ovRead.OffsetHigh = 0; + ReadFile(pipe, bufferpipe, sizeof(bufferpipe), &dwBytesPipe, &ovRead); + break; + } + } + WSACleanup(); +} + +LPCSTR GetServiceName(BOOL bLongName) +{ + if (bLongName) + return DISPLAY_NAME; + else + return SERVICE_NAME; +} + +void ShowHelp() { + printf("Named pipe <-> telnet server for Windows NT/2000 (use on your own risk :)\n" + "Volkmar Uhlig (volkmar(a)ira.uka.de),
www.uhlig-langert.de/volkmar\n\n
" + "Commands:\n" + "\t/R register as a service\n" + "\t/U unregister service\n" + "\t/T testmode\n" + "\t/V verbose mode\n" + "\nThe pipe name is \"%s\" and the telnet port is %d.\n", PIPE_NAME, SERVER_PORT); +} + +BOOL CheckArg(int argc, char * argv[], char * arg) +{ + for (int i=1; i<argc; i++) + if (_stricmp(argv[i], arg) == 0) return TRUE; + return FALSE; +} + +int main(int argc, char* argv[]) +{ + char modulename[512]; + GetModuleFileName(NULL, modulename, sizeof(modulename)); + if (argc > 1) { + if (CheckArg(argc, argv, "/v")) + { + verbose = TRUE; + printf("verbose mode\n"); + } + + if (CheckArg(argc, argv, "/r")) + { + RegisterService(modulename, "\0\0"); + return 0; + } + + if (CheckArg(argc, argv, "/u")) + { + UnregisterService(); + return 0; + } + + if (CheckArg(argc, argv, "/t")) { + printf("test mode - press Ctrl+C to stop program\n"); + hServiceEvent = CreateEvent(NULL, FALSE, FALSE, NULL); + Server(); + CloseHandle(hServiceEvent); + return 0; + } + + ShowHelp(); + } + else { + SERVICE_TABLE_ENTRY dispatchTable[] = + { + { TEXT(SERVICE_NAME), (LPSERVICE_MAIN_FUNCTION)service_main}, + { NULL, NULL } + }; + StartServiceCtrlDispatcher(dispatchTable); + } + return 0; +} Propchange: trunk/tools/vmwaregateway/vmwaregateway.cpp ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/vmwaregateway/vmwaregateway.sln URL:
http://svn.reactos.org/svn/reactos/trunk/tools/vmwaregateway/vmwaregateway.…
============================================================================== --- trunk/tools/vmwaregateway/vmwaregateway.sln (added) +++ trunk/tools/vmwaregateway/vmwaregateway.sln Sat Jun 30 00:18:47 2007 @@ -1,0 +1,20 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "vmwaregateway", "vmwaregateway.vcproj", "{AF9DB704-DF0A-4DA0-8B73-676F07538978}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {AF9DB704-DF0A-4DA0-8B73-676F07538978}.Debug|Win32.ActiveCfg = Debug|Win32 + {AF9DB704-DF0A-4DA0-8B73-676F07538978}.Debug|Win32.Build.0 = Debug|Win32 + {AF9DB704-DF0A-4DA0-8B73-676F07538978}.Release|Win32.ActiveCfg = Release|Win32 + {AF9DB704-DF0A-4DA0-8B73-676F07538978}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal Propchange: trunk/tools/vmwaregateway/vmwaregateway.sln ------------------------------------------------------------------------------ svn:eol-style = native Added: trunk/tools/vmwaregateway/vmwaregateway.vcproj URL:
http://svn.reactos.org/svn/reactos/trunk/tools/vmwaregateway/vmwaregateway.…
============================================================================== --- trunk/tools/vmwaregateway/vmwaregateway.vcproj (added) +++ trunk/tools/vmwaregateway/vmwaregateway.vcproj Sat Jun 30 00:18:47 2007 @@ -1,0 +1,268 @@ +<?xml version="1.0" encoding="Windows-1252"?> +<VisualStudioProject + ProjectType="Visual C++" + Version="8.00" + Name="vmwaregateway" + ProjectGUID="{AF9DB704-DF0A-4DA0-8B73-676F07538978}" + RootNamespace="vmwaregateway" + > + <Platforms> + <Platform + Name="Win32" + /> + </Platforms> + <ToolFiles> + </ToolFiles> + <Configurations> + <Configuration + Name="Debug|Win32" + OutputDirectory=".\Debug" + IntermediateDirectory=".\Debug" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TypeLibraryName=".\Debug/vmwaregateway.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="0" + PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" + MinimalRebuild="true" + BasicRuntimeChecks="3" + RuntimeLibrary="1" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="" + PrecompiledHeaderFile="" + AssemblerListingLocation=".\Debug/" + ObjectFile=".\Debug/" + ProgramDataBaseFileName=".\Debug/" + WarningLevel="3" + SuppressStartupBanner="true" + DebugInformationFormat="4" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="_DEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="odbc32.lib odbccp32.lib ws2_32.lib" + OutputFile=".\Debug/vmwaregateway.exe" + LinkIncremental="2" + SuppressStartupBanner="true" + GenerateDebugInformation="true" + ProgramDatabaseFile=".\Debug/vmwaregateway.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile=".\Debug/vmwaregateway.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + <Configuration + Name="Release|Win32" + OutputDirectory=".\Release" + IntermediateDirectory=".\Release" + ConfigurationType="1" + InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops" + UseOfMFC="0" + ATLMinimizesCRunTimeLibraryUsage="false" + CharacterSet="2" + > + <Tool + Name="VCPreBuildEventTool" + /> + <Tool + Name="VCCustomBuildTool" + /> + <Tool + Name="VCXMLDataGeneratorTool" + /> + <Tool + Name="VCWebServiceProxyGeneratorTool" + /> + <Tool + Name="VCMIDLTool" + TypeLibraryName=".\Release/vmwaregateway.tlb" + HeaderFileName="" + /> + <Tool + Name="VCCLCompilerTool" + Optimization="2" + InlineFunctionExpansion="1" + PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" + StringPooling="true" + RuntimeLibrary="0" + EnableFunctionLevelLinking="true" + UsePrecompiledHeader="0" + PrecompiledHeaderThrough="" + PrecompiledHeaderFile="" + AssemblerListingLocation=".\Release/" + ObjectFile=".\Release/" + ProgramDataBaseFileName=".\Release/" + WarningLevel="3" + SuppressStartupBanner="true" + /> + <Tool + Name="VCManagedResourceCompilerTool" + /> + <Tool + Name="VCResourceCompilerTool" + PreprocessorDefinitions="NDEBUG" + Culture="1033" + /> + <Tool + Name="VCPreLinkEventTool" + /> + <Tool + Name="VCLinkerTool" + AdditionalDependencies="odbc32.lib odbccp32.lib ws2_32.lib" + OutputFile=".\Release/vmwaregateway.exe" + LinkIncremental="1" + SuppressStartupBanner="true" + ProgramDatabaseFile=".\Release/vmwaregateway.pdb" + SubSystem="1" + TargetMachine="1" + /> + <Tool + Name="VCALinkTool" + /> + <Tool + Name="VCManifestTool" + /> + <Tool + Name="VCXDCMakeTool" + /> + <Tool + Name="VCBscMakeTool" + SuppressStartupBanner="true" + OutputFile=".\Release/vmwaregateway.bsc" + /> + <Tool + Name="VCFxCopTool" + /> + <Tool + Name="VCAppVerifierTool" + /> + <Tool + Name="VCWebDeploymentTool" + /> + <Tool + Name="VCPostBuildEventTool" + /> + </Configuration> + </Configurations> + <References> + </References> + <Files> + <Filter + Name="Source Files" + Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" + > + <File + RelativePath="servicemgr.cpp" + > + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + </File> + <File + RelativePath="vmwaregateway.cpp" + > + <FileConfiguration + Name="Debug|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + <FileConfiguration + Name="Release|Win32" + > + <Tool + Name="VCCLCompilerTool" + PreprocessorDefinitions="" + /> + </FileConfiguration> + </File> + </Filter> + <Filter + Name="Header Files" + Filter="h;hpp;hxx;hm;inl" + > + <File + RelativePath="servicemgr.h" + > + </File> + </Filter> + <Filter + Name="Resource Files" + Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" + > + </Filter> + </Files> + <Globals> + </Globals> +</VisualStudioProject> Propchange: trunk/tools/vmwaregateway/vmwaregateway.vcproj ------------------------------------------------------------------------------ svn:eol-style = CRLF
17 years, 5 months
1
0
0
0
[gedmurphy] 27338: don't clear paths when the browse folder dialog is cancelled
by gedmurphy@svn.reactos.org
Author: gedmurphy Date: Sat Jun 30 00:05:38 2007 New Revision: 27338 URL:
http://svn.reactos.org/svn/reactos?rev=27338&view=rev
Log: don't clear paths when the browse folder dialog is cancelled Modified: trunk/tools/RosTE/GUI/ConsoleSettings.cs Modified: trunk/tools/RosTE/GUI/ConsoleSettings.cs URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosTE/GUI/ConsoleSettings.cs…
============================================================================== --- trunk/tools/RosTE/GUI/ConsoleSettings.cs (original) +++ trunk/tools/RosTE/GUI/ConsoleSettings.cs Sat Jun 30 00:05:38 2007 @@ -36,12 +36,6 @@ get { return conAppDebug.Checked; } } - private string GetFolderLocation() - { - folderBrowserDialog.ShowDialog(); - return folderBrowserDialog.SelectedPath; - } - public ConsoleSettings(MainConfig mainConf) { InitializeComponent(); @@ -60,17 +54,20 @@ private void button3_Click(object sender, EventArgs e) { - conQemuLoc.Text = GetFolderLocation(); + if (folderBrowserDialog.ShowDialog() == DialogResult.OK) + conQemuLoc.Text = folderBrowserDialog.SelectedPath; } private void button4_Click(object sender, EventArgs e) { - conVdkLoc.Text = GetFolderLocation(); + if (folderBrowserDialog.ShowDialog() == DialogResult.OK) + conVdkLoc.Text = folderBrowserDialog.SelectedPath; } private void button5_Click(object sender, EventArgs e) { - conDefVmLoc.Text = GetFolderLocation(); + if (folderBrowserDialog.ShowDialog() == DialogResult.OK) + conDefVmLoc.Text = folderBrowserDialog.SelectedPath; } private void conDialogOK_Click(object sender, EventArgs e)
17 years, 5 months
1
0
0
0
[greatlrd] 27337: part 6 of xx removing wine hack, that disable seh in rpc.h 1. adding allowwarnings ="true"
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 23:58:33 2007 New Revision: 27337 URL:
http://svn.reactos.org/svn/reactos?rev=27337&view=rev
Log: part 6 of xx removing wine hack, that disable seh in rpc.h 1. adding allowwarnings ="true" Modified: trunk/reactos/dll/win32/aclui/aclui.rbuild Modified: trunk/reactos/dll/win32/aclui/aclui.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/aclui/aclui.rbui…
============================================================================== --- trunk/reactos/dll/win32/aclui/aclui.rbuild (original) +++ trunk/reactos/dll/win32/aclui/aclui.rbuild Fri Jun 29 23:58:33 2007 @@ -1,4 +1,4 @@ -<module name="aclui" type="win32dll" baseaddress="${BASEADDRESS_ACLUI}" installbase="system32" installname="aclui.dll"> +<module name="aclui" type="win32dll" baseaddress="${BASEADDRESS_ACLUI}" installbase="system32" installname="aclui.dll" allowwarnings ="true"> <importlibrary definition="aclui.spec.def" /> <include base="aclui">.</include> <define name="UNICODE" />
17 years, 5 months
1
0
0
0
[greatlrd] 27336: part 5 of xx removing wine hack, that disable seh in rpc.h cleanup work fireball ask about it
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 23:15:12 2007 New Revision: 27336 URL:
http://svn.reactos.org/svn/reactos?rev=27336&view=rev
Log: part 5 of xx removing wine hack, that disable seh in rpc.h cleanup work fireball ask about it Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/eve…
============================================================================== --- trunk/reactos/base/services/eventlog/eventlog.rbuild (original) +++ trunk/reactos/base/services/eventlog/eventlog.rbuild Fri Jun 29 23:15:12 2007 @@ -9,11 +9,6 @@ <library>advapi32</library> <library>eventlog_server</library> <library>rpcrt4</library> - <library>kernel32</library> - <library>user32</library> - <library>ole32</library> - <library>user32</library> - <library>msvcrt</library> <library>pseh</library> <file>eventlog.c</file> <file>logport.c</file>
17 years, 5 months
1
0
0
0
[greatlrd] 27335: part 4 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 23:04:20 2007 New Revision: 27335 URL:
http://svn.reactos.org/svn/reactos?rev=27335&view=rev
Log: part 4 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog Modified: trunk/reactos/base/system/services/services.rbuild Modified: trunk/reactos/base/system/services/services.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/services/servi…
============================================================================== --- trunk/reactos/base/system/services/services.rbuild (original) +++ trunk/reactos/base/system/services/services.rbuild Fri Jun 29 23:04:20 2007 @@ -13,6 +13,7 @@ <library>user32</library> <library>advapi32</library> <library>rpcrt4</library> + <library>pseh</library> <file>config.c</file> <file>database.c</file> <file>driver.c</file>
17 years, 5 months
1
0
0
0
[greatlrd] 27334: part 3 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 22:54:48 2007 New Revision: 27334 URL:
http://svn.reactos.org/svn/reactos?rev=27334&view=rev
Log: part 3 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.rbuild Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/ump…
============================================================================== --- trunk/reactos/base/services/umpnpmgr/umpnpmgr.rbuild (original) +++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.rbuild Fri Jun 29 22:54:48 2007 @@ -13,6 +13,7 @@ <library>kernel32</library> <library>advapi32</library> <library>rpcrt4</library> + <library>pseh</library> <library>wdmguid</library> <file>umpnpmgr.c</file> <file>umpnpmgr.rc</file>
17 years, 5 months
1
0
0
0
[greatlrd] 27333: part 2 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 22:36:18 2007 New Revision: 27333 URL:
http://svn.reactos.org/svn/reactos?rev=27333&view=rev
Log: part 2 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog Modified: trunk/reactos/dll/win32/rpcrt4/rpcrt4.rbuild Modified: trunk/reactos/dll/win32/rpcrt4/rpcrt4.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/rpcrt4/rpcrt4.rb…
============================================================================== --- trunk/reactos/dll/win32/rpcrt4/rpcrt4.rbuild (original) +++ trunk/reactos/dll/win32/rpcrt4/rpcrt4.rbuild Fri Jun 29 22:36:18 2007 @@ -18,6 +18,7 @@ <library>kernel32</library> <library>advapi32</library> <library>iphlpapi</library> + <library>pseh</library> <file>cproxy.c</file> <file>cpsf.c</file> <file>cstub.c</file>
17 years, 5 months
1
0
0
0
[greatlrd] 27332: part 1 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 22:35:34 2007 New Revision: 27332 URL:
http://svn.reactos.org/svn/reactos?rev=27332&view=rev
Log: part 1 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/eve…
============================================================================== --- trunk/reactos/base/services/eventlog/eventlog.rbuild (original) +++ trunk/reactos/base/services/eventlog/eventlog.rbuild Fri Jun 29 22:35:34 2007 @@ -7,9 +7,14 @@ <library>ntdll</library> <library>kernel32</library> <library>advapi32</library> - <library>pseh</library> <library>eventlog_server</library> <library>rpcrt4</library> + <library>kernel32</library> + <library>user32</library> + <library>ole32</library> + <library>user32</library> + <library>msvcrt</library> + <library>pseh</library> <file>eventlog.c</file> <file>logport.c</file> <file>eventlog.rc</file>
17 years, 5 months
1
0
0
0
[greatlrd] 27331: part 1 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog
by greatlrd@svn.reactos.org
Author: greatlrd Date: Fri Jun 29 21:47:07 2007 New Revision: 27331 URL:
http://svn.reactos.org/svn/reactos?rev=27331&view=rev
Log: part 1 of xx removing wine hack, that disable seh in rpc.h 1. adding pseh lib to eventlog Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild Modified: trunk/reactos/base/services/eventlog/eventlog.rbuild URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/eventlog/eve…
============================================================================== --- trunk/reactos/base/services/eventlog/eventlog.rbuild (original) +++ trunk/reactos/base/services/eventlog/eventlog.rbuild Fri Jun 29 21:47:07 2007 @@ -7,6 +7,7 @@ <library>ntdll</library> <library>kernel32</library> <library>advapi32</library> + <library>pseh</library> <library>eventlog_server</library> <library>rpcrt4</library> <file>eventlog.c</file>
17 years, 5 months
1
0
0
0
[fireball] 27330: - Reimplement HalpAssignPCISlotResources() (based on the old implementation, just changing to the new way of reading/writing PCI config space, formatting and other misc changes).
by fireball@svn.reactos.org
Author: fireball Date: Fri Jun 29 21:20:26 2007 New Revision: 27330 URL:
http://svn.reactos.org/svn/reactos?rev=27330&view=rev
Log: - Reimplement HalpAssignPCISlotResources() (based on the old implementation, just changing to the new way of reading/writing PCI config space, formatting and other misc changes). Modified: trunk/reactos/hal/halx86/generic/pci.c Modified: trunk/reactos/hal/halx86/generic/pci.c URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/hal/halx86/generic/pci.c?r…
============================================================================== --- trunk/reactos/hal/halx86/generic/pci.c (original) +++ trunk/reactos/hal/halx86/generic/pci.c Fri Jun 29 21:20:26 2007 @@ -485,6 +485,14 @@ return STATUS_NOT_IMPLEMENTED; } +static ULONG STDCALL +PciSize(ULONG Base, ULONG Mask) +{ + ULONG Size = Mask & Base; /* Find the significant bits */ + Size = Size & ~(Size - 1); /* Get the lowest of them to find the decode size */ + return Size; +} + NTSTATUS NTAPI HalpAssignPCISlotResources(IN PBUS_HANDLER BusHandler, @@ -494,10 +502,126 @@ IN PDRIVER_OBJECT DriverObject, IN PDEVICE_OBJECT DeviceObject OPTIONAL, IN ULONG Slot, - IN OUT PCM_RESOURCE_LIST *pAllocatedResources) -{ - KEBUGCHECK(0); - return STATUS_SUCCESS; + IN OUT PCM_RESOURCE_LIST *AllocatedResources) +{ + PCI_COMMON_CONFIG PciConfig; + SIZE_T Address; + SIZE_T ResourceCount; + ULONG Size[PCI_TYPE0_ADDRESSES]; + NTSTATUS Status = STATUS_SUCCESS; + UCHAR Offset; + PCM_PARTIAL_RESOURCE_DESCRIPTOR Descriptor; + PCI_SLOT_NUMBER SlotNumber; + ULONG WriteBuffer; + + /* FIXME: Should handle 64-bit addresses */ + + /* Read configuration data */ + SlotNumber.u.AsULONG = Slot; + HalpReadPCIConfig(BusHandler, SlotNumber, &PciConfig, 0, PCI_COMMON_HDR_LENGTH); + + /* Check if we read it correctly */ + if (PciConfig.VendorID == PCI_INVALID_VENDORID) + return STATUS_NO_SUCH_DEVICE; + + /* Read the PCI configuration space for the device and store base address and + size information in temporary storage. Count the number of valid base addresses */ + ResourceCount = 0; + for (Address = 0; Address < PCI_TYPE0_ADDRESSES; Address++) + { + if (0xffffffff == PciConfig.u.type0.BaseAddresses[Address]) + PciConfig.u.type0.BaseAddresses[Address] = 0; + + /* Memory resource */ + if (0 != PciConfig.u.type0.BaseAddresses[Address]) + { + ResourceCount++; + + Offset = FIELD_OFFSET(PCI_COMMON_CONFIG, u.type0.BaseAddresses[Address]); + + /* Write 0xFFFFFFFF there */ + WriteBuffer = 0xffffffff; + HalpWritePCIConfig(BusHandler, SlotNumber, &WriteBuffer, Offset, sizeof(ULONG)); + + /* Read that figure back from the config space */ + HalpReadPCIConfig(BusHandler, SlotNumber, &Size[Address], Offset, sizeof(ULONG)); + + /* Write back initial value */ + HalpWritePCIConfig(BusHandler, SlotNumber, &PciConfig.u.type0.BaseAddresses[Address], Offset, sizeof(ULONG)); + } + } + + /* Interrupt resource */ + if (0 != PciConfig.u.type0.InterruptLine) + ResourceCount++; + + /* Allocate output buffer and initialize */ + *AllocatedResources = ExAllocatePoolWithTag( + PagedPool, + sizeof(CM_RESOURCE_LIST) + + (ResourceCount - 1) * sizeof(CM_PARTIAL_RESOURCE_DESCRIPTOR), + TAG('H','a','l',' ')); + + if (NULL == *AllocatedResources) + return STATUS_NO_MEMORY; + + (*AllocatedResources)->Count = 1; + (*AllocatedResources)->List[0].InterfaceType = PCIBus; + (*AllocatedResources)->List[0].BusNumber = BusHandler->BusNumber; + (*AllocatedResources)->List[0].PartialResourceList.Version = 1; + (*AllocatedResources)->List[0].PartialResourceList.Revision = 1; + (*AllocatedResources)->List[0].PartialResourceList.Count = ResourceCount; + Descriptor = (*AllocatedResources)->List[0].PartialResourceList.PartialDescriptors; + + /* Store configuration information */ + for (Address = 0; Address < PCI_TYPE0_ADDRESSES; Address++) + { + if (0 != PciConfig.u.type0.BaseAddresses[Address]) + { + if (/*PCI_BASE_ADDRESS_SPACE_MEMORY*/ 0 == + (PciConfig.u.type0.BaseAddresses[Address] & 0x1)) + { + Descriptor->Type = CmResourceTypeMemory; + Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; /* FIXME I have no idea... */ + Descriptor->Flags = CM_RESOURCE_MEMORY_READ_WRITE; /* FIXME Just a guess */ + Descriptor->u.Memory.Start.QuadPart = (PciConfig.u.type0.BaseAddresses[Address] & PCI_ADDRESS_MEMORY_ADDRESS_MASK); + Descriptor->u.Memory.Length = PciSize(Size[Address], PCI_ADDRESS_MEMORY_ADDRESS_MASK); + } + else if (PCI_ADDRESS_IO_SPACE == + (PciConfig.u.type0.BaseAddresses[Address] & 0x1)) + { + Descriptor->Type = CmResourceTypePort; + Descriptor->ShareDisposition = CmResourceShareDeviceExclusive; /* FIXME I have no idea... */ + Descriptor->Flags = CM_RESOURCE_PORT_IO; /* FIXME Just a guess */ + Descriptor->u.Port.Start.QuadPart = PciConfig.u.type0.BaseAddresses[Address] &= PCI_ADDRESS_IO_ADDRESS_MASK; + Descriptor->u.Port.Length = PciSize(Size[Address], PCI_ADDRESS_IO_ADDRESS_MASK & 0xffff); + } + else + { + ASSERT(FALSE); + return STATUS_UNSUCCESSFUL; + } + Descriptor++; + } + } + + if (0 != PciConfig.u.type0.InterruptLine) + { + Descriptor->Type = CmResourceTypeInterrupt; + Descriptor->ShareDisposition = CmResourceShareShared; /* FIXME Just a guess */ + Descriptor->Flags = CM_RESOURCE_INTERRUPT_LEVEL_SENSITIVE; /* FIXME Just a guess */ + Descriptor->u.Interrupt.Level = PciConfig.u.type0.InterruptLine; + Descriptor->u.Interrupt.Vector = PciConfig.u.type0.InterruptLine; + Descriptor->u.Interrupt.Affinity = 0xFFFFFFFF; + + Descriptor++; + } + + ASSERT(Descriptor == (*AllocatedResources)->List[0].PartialResourceList.PartialDescriptors + ResourceCount); + + /* FIXME: Should store the resources in the registry resource map */ + + return Status; } ULONG
17 years, 5 months
1
0
0
0
← Newer
1
2
3
4
5
...
42
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
Results per page:
10
25
50
100
200