winnt-port-cleanup-20010111
authorMichael Nelson <mikenel@iapetus.com>
Thu, 11 Jan 2001 06:41:23 +0000 (06:41 +0000)
committerDerrick Brashear <shadow@dementia.org>
Thu, 11 Jan 2001 06:41:23 +0000 (06:41 +0000)
Add needed headers, convert from SERVICETYPE to AFSSERVICETYPE

src/WINNT/afsapplib/al_wizard.h
src/WINNT/afsclass/afsclassfn.cpp
src/WINNT/afsclass/afsclassfn.h
src/WINNT/afsclass/worker.h
src/WINNT/afssvrmgr/svc_create.h

index 51ef7c5..615b027 100644 (file)
@@ -10,6 +10,8 @@
 #ifndef AL_WIZARD_H
 #define AL_WIZARD_H
 
+#include <windows.h>
+#include <prsht.h>
 #include <WINNT/TaLocale.h>
 #include <WINNT/subclass.h>
 
index 6d35691..736c922 100644 (file)
@@ -1952,7 +1952,7 @@ BOOL AfsClass_RenameFileset (LPIDENT lpiFileset, LPTSTR pszNewName, ULONG *pStat
 
 #define iswhite(_ch) ((_ch)==TEXT(' ') || (_ch)==TEXT('\t'))
 
-LPIDENT AfsClass_CreateService (LPIDENT lpiServer, LPTSTR pszService, LPTSTR pszCommand, LPTSTR pszParams, LPTSTR pszNotifier, SERVICETYPE type, SYSTEMTIME *pstIfCron, ULONG *pStatus)
+LPIDENT AfsClass_CreateService (LPIDENT lpiServer, LPTSTR pszService, LPTSTR pszCommand, LPTSTR pszParams, LPTSTR pszNotifier, AFSSERVICETYPE type, SYSTEMTIME *pstIfCron, ULONG *pStatus)
 {
    BOOL rc = TRUE;
    ULONG status;
index fc0743d..8cf44dd 100644 (file)
@@ -137,7 +137,7 @@ BOOL    AfsClass_GetRandomKey         (LPIDENT lpi, LPENCRYPTIONKEY pKey, ULONG
  *
  */
 
-LPIDENT AfsClass_CreateService        (LPIDENT lpiServer, LPTSTR pszService, LPTSTR pszCommand, LPTSTR pszParams, LPTSTR pszNotifier, SERVICETYPE type, SYSTEMTIME *pstIfCron, ULONG *pStatus = NULL);
+LPIDENT AfsClass_CreateService        (LPIDENT lpiServer, LPTSTR pszService, LPTSTR pszCommand, LPTSTR pszParams, LPTSTR pszNotifier, AFSSERVICETYPE type, SYSTEMTIME *pstIfCron, ULONG *pStatus = NULL);
 BOOL    AfsClass_DeleteService        (LPIDENT lpiService, ULONG *pStatus = NULL);
 
 BOOL    AfsClass_StartService         (LPIDENT lpiStart, BOOL fTemporary, ULONG *pStatus = NULL);
index 4dab137..ac61cc5 100644 (file)
@@ -470,7 +470,7 @@ typedef union // WORKERPACKET
       struct {
          PVOID hServer;        // [in] token from BosServerOpen()
          LPTSTR pszService;    // [in] name of new service
-         SERVICETYPE type;     // [in] service type (stCRON, stFS, etc)
+         AFSSERVICETYPE type;  // [in] service type (stCRON, stFS, etc)
          LPTSTR pszCommand;    // [in] full command-line to execute
          LPTSTR pszTimeCron;   // [in] date/time (CRON only)
          LPTSTR pszNotifier;   // [in] command executed on exit
index 2eb27fd..0446b4c 100644 (file)
@@ -24,7 +24,7 @@ typedef struct
    TCHAR szParams[ cchNAME ];
    TCHAR szNotifier[ cchNAME ];
    TCHAR szLogFile[ cchNAME ];
-   SERVICETYPE type;
+   AFSSERVICETYPE type;
    BOOL fRunNow;
    SYSTEMTIME stIfCron;
    } SVC_CREATE_PARAMS, *LPSVC_CREATE_PARAMS;