Leaked source code of windows server 2003
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.

48 lines
963 B

  1. /*
  2. * This util is used by the batch file that a user uses to copy
  3. * admin tools from the NT Server CD to a NT Workstation.
  4. * This tool is used to add the File Manager and Server Manager
  5. * extensions for MacFile.
  6. *
  7. * Usage: sfmreg.reg SMAddons sfmmgr.dll ntnet.ini
  8. * sfmreg.reg Addons sfmmgr.dll winfile.ini
  9. *
  10. * Author: Ram Cherala Feb 24th 95 Copied from test\util\afpini
  11. *
  12. */
  13. #define DOSWIN32
  14. #include <windows.h>
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <lmerr.h>
  18. extern BOOL FAR PASCAL WriteAfpMgrIniStrings (
  19. DWORD nArgs,
  20. LPSTR apszArgs[],
  21. LPSTR *ppszResult
  22. );
  23. extern int CDECL main(int argc, char *argv[]);
  24. int CDECL
  25. main (int argc, char *argv[])
  26. {
  27. TCHAR ResultBuffer[1024];
  28. // go past the file name argument
  29. argc--;
  30. ++argv;
  31. if(WriteAfpMgrIniStrings(argc, argv , (LPSTR*) &ResultBuffer))
  32. {
  33. return(0);
  34. }
  35. else
  36. {
  37. return(1);
  38. }
  39. }
  40.