Windows: Remove High Security Integrated Logon
[openafs.git] / src / WINNT / client_creds / main.cpp
index a6499eb..b3d554c 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Copyright 2000, International Business Machines Corporation and others.
  * All Rights Reserved.
- * 
+ *
  * This software has been released under the terms of the IBM Public
  * License.  For details, see the LICENSE file in the top-level source
  * directory or online at http://www.openafs.org/dl/license10.html
@@ -11,7 +11,9 @@
 #include <ws2tcpip.h>
 
 extern "C" {
+#include <afsconfig.h>
 #include <afs/param.h>
+#include <roken.h>
 #include <afs/stds.h>
 #include <osilog.h>
 #include <afs/fs_utils.h>
@@ -84,7 +86,6 @@ extern "C" int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR pCmdLine,
    return 0;
 }
 
-#define ISHIGHSECURITY(v) ( ((v) & LOGON_OPTION_HIGHSECURITY)==LOGON_OPTION_HIGHSECURITY)
 #define REG_CLIENT_PROVIDER_KEY "SYSTEM\\CurrentControlSet\\Services\\TransarcAFSDaemon\\NetworkProvider"
 
 BOOL InitApp (LPSTR pszCmdLineA)
@@ -154,8 +155,8 @@ BOOL InitApp (LPSTR pszCmdLineA)
 
          case ':':
              CopyAnsiToString(g.SmbName,pszCmdLineA);
-                        MapShareName(pszCmdLineA);
-                        break;
+             MapShareName(pszCmdLineA);
+             break;
 
          case 'z':
          case 'Z':
@@ -275,7 +276,7 @@ BOOL InitApp (LPSTR pszCmdLineA)
                    OutputDebugString("AFSD Service not configured\n");
                else if ( fAutoInit )
                    OutputDebugString("AFSD Service will be started\n");
-           }   
+           }
        }
    }
 
@@ -283,13 +284,13 @@ BOOL InitApp (LPSTR pszCmdLineA)
     if ( g.fIsWinNT && !IsServiceRunning() && IsServiceConfigured() && fAutoInit ) {
         SC_HANDLE hManager;
 
-        if ((hManager = OpenSCManager( NULL, NULL, 
+        if ((hManager = OpenSCManager( NULL, NULL,
                                        SC_MANAGER_CONNECT |
                                        SC_MANAGER_ENUMERATE_SERVICE |
                                        SC_MANAGER_QUERY_LOCK_STATUS)) != NULL )
         {
             SC_HANDLE hService;
-            if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"), 
+            if ((hService = OpenService( hManager, TEXT("TransarcAFSDaemon"),
                                          SERVICE_QUERY_STATUS | SERVICE_START) ) != NULL)
             {
                 if (StartService(hService, 0, 0)) {
@@ -336,7 +337,7 @@ BOOL InitApp (LPSTR pszCmdLineA)
       else if (!IsServerInstalled())
          Message (MB_ICONHAND, IDS_UNCONFIG_TITLE, IDS_UNCONFIG_DESC);
       }
-   if (IsServiceRunning()) { 
+   if (IsServiceRunning()) {
       if ( fRenewMaps )
       {
           if ( IsDebuggerPresent() )