summaryrefslogtreecommitdiffstats
path: root/private/nw/nwscript/nwscript.c
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/nw/nwscript/nwscript.c
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/nw/nwscript/nwscript.c')
-rw-r--r--private/nw/nwscript/nwscript.c84
1 files changed, 84 insertions, 0 deletions
diff --git a/private/nw/nwscript/nwscript.c b/private/nw/nwscript/nwscript.c
new file mode 100644
index 000000000..f56e23ff0
--- /dev/null
+++ b/private/nw/nwscript/nwscript.c
@@ -0,0 +1,84 @@
+/*************************************************************************
+*
+* NWSCRIPT.C
+*
+* This module is the NetWare Logon Script utility.
+*
+* Copyright (c) 1995 Microsoft Corporation
+*
+* $Log: N:\NT\PRIVATE\NW4\NWSCRIPT\VCS\NWSCRIPT.C $
+*
+* Rev 1.3 22 Jan 1996 16:48:32 terryt
+* Add automatic attach query during map
+*
+* Rev 1.2 22 Dec 1995 14:26:08 terryt
+* Add Microsoft headers
+*
+* Rev 1.1 20 Nov 1995 16:10:38 terryt
+* Close open NDS handles
+*
+* Rev 1.0 15 Nov 1995 18:07:42 terryt
+* Initial revision.
+*
+* Rev 1.1 23 May 1995 19:37:18 terryt
+* Spruce up source
+*
+* Rev 1.0 15 May 1995 19:10:58 terryt
+* Initial revision.
+*
+*************************************************************************/
+
+#include <stdio.h>
+#include <windows.h>
+#include <stdlib.h>
+#include <time.h>
+#include <direct.h>
+#include <process.h>
+#include <string.h>
+#include <malloc.h>
+#include <nwapi.h>
+
+#include "nwscript.h"
+
+int NTNetWareLoginScripts( int argc, char ** argv );
+
+unsigned int fNDS = FALSE;
+
+/*************************************************************************
+*
+* main
+* Main function and entry point
+*
+* ENTRY:
+* argc (input)
+* count of the command line arguments.
+* argv (input)
+* vector of strings containing the command line arguments;
+* (not used due to always being ANSI strings).
+*
+* EXIT
+* (int) exit code: SUCCESS for success; FAILURE for error.
+*
+*************************************************************************/
+
+int _CRTAPI1
+main( int argc,
+ char **argv )
+{
+ //
+ // Call wksta to reset the sync login script flag if it did set it.
+ // This flag is set and reset everytime so that if nw login scripts
+ // are not used, user does not need wait.
+ // Ignore any errors.
+ //
+ (void) NwSetLogonScript(RESET_SYNC_LOGONSCRIPT) ;
+
+ (void)NTNetWareLoginScripts( argc, argv );
+
+ CleanupExit( 0 );
+
+ return 0;
+
+} /* main() */
+
+