Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.6 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // Job Scheduler Service
  4. //
  5. // Microsoft Windows
  6. // Copyright (C) Microsoft Corporation, 1992 - 1996.
  7. //
  8. // File: jobedit.cxx
  9. //
  10. // Contents: EditJob method.
  11. //
  12. // Notes: The job scheduler DLL, schedulr.dll, contains the code for the
  13. // scheduler UI. The folder and property sheet UI run as Explorer
  14. // extensions. The job property sheet UI can also be invoked by
  15. // programatic clients who call ITask::EditJob. This file
  16. // contains the implementation of EditJob. Since the scheduler
  17. // service, mstask.exe, does not post any UI, it statically links
  18. // only with those component libs of schedulr.dll that don't
  19. // contain any UI code.
  20. //
  21. // History: 14-Mar-96 EricB created
  22. //
  23. //-----------------------------------------------------------------------------
  24. #include "..\pch\headers.hxx"
  25. #pragma hdrstop
  26. #include "job_cls.hxx"
  27. HRESULT
  28. DisplayJobProperties(
  29. LPTSTR pszJob,
  30. ITask * pITask);
  31. //+----------------------------------------------------------------------------
  32. //
  33. // Member: CJob::ITask::EditJob
  34. //
  35. // Synopsis: Invoke the edit job property sheet.
  36. //
  37. //-----------------------------------------------------------------------------
  38. STDMETHODIMP
  39. CJob::EditJob(HWND hParent, DWORD dwReserved)
  40. {
  41. if (m_ptszFileName != NULL && m_ptszFileName[0] != TEXT('\0'))
  42. {
  43. return DisplayJobProperties(m_ptszFileName, (ITask *)this);
  44. }
  45. return STG_E_NOTFILEBASEDSTORAGE;
  46. }