Preizkusil sem še delovanje na Windows XP.
This commit is contained in:
parent
d5162a64d7
commit
6c92257d6e
@ -511,10 +511,11 @@ HRESULT CMSITSCAOpTaskCreate::Execute(CMSITSCASession *pSession)
|
|||||||
hr = pTask->SetFlags (m_dwFlags ); if (FAILED(hr)) goto finish;
|
hr = pTask->SetFlags (m_dwFlags ); if (FAILED(hr)) goto finish;
|
||||||
hr = pTask->SetPriority (m_dwPriority ); if (FAILED(hr)) goto finish;
|
hr = pTask->SetPriority (m_dwPriority ); if (FAILED(hr)) goto finish;
|
||||||
|
|
||||||
if (!m_sAccountName.IsEmpty()) {
|
// Set task credentials.
|
||||||
hr = pTask->SetAccountInformation(m_sAccountName, m_sPassword.IsEmpty() ? NULL : m_sPassword);
|
hr = m_sAccountName.IsEmpty() ?
|
||||||
if (FAILED(hr)) goto finish;
|
pTask->SetAccountInformation(L"", NULL ) :
|
||||||
}
|
pTask->SetAccountInformation(m_sAccountName, m_sPassword);
|
||||||
|
if (FAILED(hr)) goto finish;
|
||||||
|
|
||||||
hr = pTask->SetIdleWait (m_wIdleMinutes, m_wDeadlineMinutes); if (FAILED(hr)) goto finish;
|
hr = pTask->SetIdleWait (m_wIdleMinutes, m_wDeadlineMinutes); if (FAILED(hr)) goto finish;
|
||||||
hr = pTask->SetMaxRunTime(m_dwMaxRuntimeMS ); if (FAILED(hr)) goto finish;
|
hr = pTask->SetMaxRunTime(m_dwMaxRuntimeMS ); if (FAILED(hr)) goto finish;
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||||
#define _WIN32_WINNT 0x0501 // Include Windows XP symbols
|
#define _WIN32_WINNT 0x0501 // Include Windows XP symbols
|
||||||
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
|
#define _WINSOCKAPI_ // Prevent inclusion of winsock.h in windows.h
|
||||||
|
//#define ASSERT_TO_DEBUG // Enable false asserts to provide opportunity to attach debuger
|
||||||
#ifdef _WINDLL
|
#ifdef _WINDLL
|
||||||
#define MSITSCA_DLL // This is a DLL
|
#define MSITSCA_DLL // This is a DLL
|
||||||
//#ifdef ASSERT_TO_DEBUG // Enable false asserts to provide opportunity to attach debuger
|
|
||||||
#endif
|
#endif
|
||||||
#define _ATL_APARTMENT_THREADED
|
#define _ATL_APARTMENT_THREADED
|
||||||
#define _ATL_NO_AUTOMATIC_NAMESPACE
|
#define _ATL_NO_AUTOMATIC_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user