windows-nt/Source/XPSP1/NT/net/sfm/setup/sfmreg/sfmreg.c
2020-09-26 16:20:57 +08:00

49 lines
915 B
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* This util is used by the batch file that a user uses to copy
* admin tools from the NT Server CD to a NT Workstation.
* This tool is used to add the File Manager and Server Manager
* extensions for MacFile.
*
* Usage: sfmreg.reg SMAddons sfmmgr.dll ntnet.ini
* sfmreg.reg Addons sfmmgr.dll winfile.ini
*
* Author: Ram Cherala Feb 24th 95 Copied from test\util\afpini
*
*/
#define DOSWIN32
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <lmerr.h>
extern BOOL FAR PASCAL WriteAfpMgrIniStrings (
DWORD nArgs,
LPSTR apszArgs[],
LPSTR *ppszResult
);
extern int CDECL main(int argc, char *argv[]);
int CDECL
main (int argc, char *argv[])
{
TCHAR ResultBuffer[1024];
// go past the file name argument
argc--;
++argv;
if(WriteAfpMgrIniStrings(argc, argv , (LPSTR*) &ResultBuffer))
{
return(0);
}
else
{
return(1);
}
}