Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
915 B

/*
* 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);
}
}