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.

36 lines
967 B

  1. #include <windows.h>
  2. #include <winsock2.h>
  3. #include <svcguid.h>
  4. #include <stdio.h>
  5. DWORD WINAPI
  6. InstallNTDSProvider(
  7. IN LPWSTR szProviderName OPTIONAL, // NULL defaults to name "NTDS"
  8. IN LPWSTR szProviderPath OPTIONAL, // NULL defaults to path
  9. // "%SystemRoot%\System32\winrnr.dll"
  10. IN LPGUID lpProviderId OPTIONAL ); // NULL defaults to GUID
  11. // 3b2637ee-e580-11cf-a555-00c04fd8d4ac
  12. _cdecl
  13. main(int argc, char **argv)
  14. {
  15. DWORD status = NO_ERROR;
  16. status = InstallNTDSProvider( NULL,
  17. NULL,
  18. NULL );
  19. if ( status )
  20. {
  21. printf( "\nInstallation of NTDS Rnr provider was NOT successful.\n" );
  22. printf( "Error: %d\n", status );
  23. return( -1 );
  24. }
  25. printf( "\nInstallation of NTDS Rnr provider was successful.\n" );
  26. return( 0 );
  27. }