windows-network-type-allocation-20080128
authorJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 28 Jan 2008 19:49:51 +0000 (19:49 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 28 Jan 2008 19:49:51 +0000 (19:49 +0000)
LICENSE MIT

Microsoft has defined for us:

#define     WNNC_NET_OPENAFS     0x00390000

src/WINNT/afsd/afslogon.c

index f92f788..5a74a35 100644 (file)
 #include "afskfw.h"
 #include "lanahelper.h"
 
+/* Allocated in Windows Driver Kit */
+#ifndef WNNC_NET_OPENAFS
+#define WNNC_NET_OPENAFS     0x00390000
+#endif
+
 #include <WINNT\afsreg.h>
 
 DWORD TraceOption = 0;
@@ -217,7 +222,7 @@ DWORD APIENTRY NPGetCaps(DWORD index)
     switch (index) {
     case WNNC_NET_TYPE:
         /* Don't have our own type; use somebody else's. */
-        return WNNC_NET_SUN_PC_NFS;
+        return WNNC_NET_OPENAFS;
 
     case WNNC_START:
         /* Say we are already started, even though we might wait after we receive NPLogonNotify */