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.

35 lines
942 B

  1. #include "pch.h"
  2. #include "..\..\w95upgnt\migmain\migmainp.h"
  3. INT
  4. __cdecl
  5. main (
  6. INT argc,
  7. CHAR *argv[]
  8. )
  9. {
  10. if (!MyInitLibs (argc >= 2 ? argv[1] : NULL)) {
  11. printf ("Unable to initialize!\n");
  12. return 255;
  13. }
  14. MemDbSetValue (TEXT("KnownDomain\\Redmond\\jimschm"), 0);
  15. MemDbSetValue (TEXT("KnownDomain\\Redmond\\marcw"), 0);
  16. MemDbSetValue (TEXT("KnownDomain\\Redmond\\mikeco"), 0);
  17. MemDbSetValue (TEXT("KnownDomain\\Red-Mo\\joehol"), 0);
  18. MemDbSetValue (TEXT("KnownDomain\\Red-Mo\\Administrator"), 0);
  19. MemDbSetValue (TEXT("AutosearchDomain\\w95mig1"), 0);
  20. MemDbSetValue (TEXT("AutosearchDomain\\w95mig5"), 0);
  21. MemDbSetValue (TEXT("AutosearchDomain\\fooacct"), 0);
  22. if (!SearchDomainsForUserAccounts()) {
  23. printf ("SearchDomainsForUserAccounts failed. Error=%u\n", GetLastError());
  24. }
  25. MyTerminateLibs();
  26. return 0;
  27. }