windows-nt

Build for Windows NT 4.0 using Visual Studio 2005?

泪湿孤枕 提交于 2019-11-30 17:15:48
An MFC application that I'm trying to migrate uses afxext.h , which causes _AFXDLL to get set, which causes this error if I set /MT : Please use the /MD switch for _AFXDLL builds My research to date indicates that it is impossible to build an application for execution on Windows NT 4.0 using Visual Studio (C++, in this case) 2005. Is this really true? Are there any workaround available? No, there are many applications built with VS2005 that have to support Windows XP, 2000, NT, the whole stack. The issue is that (by default) VS2005 wants to use libraries/exports not present on NT. See this

CreateProcessAsUser vs ShellExecute

半城伤御伤魂 提交于 2019-11-30 10:26:56
I need to ShellExecute something as another user, currently I start a helper process with CreateProcessAsUser that calls ShellExecute , but that seems like too much of a hack (Wrong parent process etc.) Is there a better way to do this? @PabloG: ImpersonateLoggedOnUser does not work: HANDLE hTok; VERIFY(LogonUser("otheruser",0,"password",LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,&hTok)); VERIFY(ImpersonateLoggedOnUser(hTok)); ShellExecute(0,0,"calc.exe",0,0,SW_SHOW); RevertToSelf(); CloseHandle(hTok); will just start calc as the logged in user, not "otheruser" @1800 INFORMATION:

Build for Windows NT 4.0 using Visual Studio 2005?

血红的双手。 提交于 2019-11-30 00:42:30
问题 An MFC application that I'm trying to migrate uses afxext.h , which causes _AFXDLL to get set, which causes this error if I set /MT : Please use the /MD switch for _AFXDLL builds My research to date indicates that it is impossible to build an application for execution on Windows NT 4.0 using Visual Studio (C++, in this case) 2005. Is this really true? Are there any workaround available? 回答1: No, there are many applications built with VS2005 that have to support Windows XP, 2000, NT, the whole

Authenticating to a SQL Server instance as a Windows User via JDBC

為{幸葍}努か 提交于 2019-11-27 23:05:44
I'm having to support multiple database types for my tenant-enabled web application. Among others, I have successfully supported Microsoft's SQL Server, by using the net.sourceforge.jtds.jdbc.Driver class with a connection String like "jdbc:jtds:sqlserver://192.168.1.189:1433/ApplicationName". This works, but it requires that the user explicitly defines a user in the SQL Server instance and enables SQL Server authentication. Now, inevitably, requirements changed, and we're supposed to support connecting to SQL Server via Windows Authentication. Evidently this requires some sort of change to

Authenticating to a SQL Server instance as a Windows User via JDBC

放肆的年华 提交于 2019-11-26 21:19:21
问题 I'm having to support multiple database types for my tenant-enabled web application. Among others, I have successfully supported Microsoft's SQL Server, by using the net.sourceforge.jtds.jdbc.Driver class with a connection String like "jdbc:jtds:sqlserver://192.168.1.189:1433/ApplicationName". This works, but it requires that the user explicitly defines a user in the SQL Server instance and enables SQL Server authentication. Now, inevitably, requirements changed, and we're supposed to support