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.

64 lines
1.9 KiB

  1. // MsPwdMig.idl : IDL source for MsPwdMig.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (MsPwdMig.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. typedef enum pmErrorEnum
  8. {
  9. PM_E_EVERYONE_NOT_MEMBEROF_COMPATIBILITY_GROUP = 0x80040200,
  10. PM_E_EVERYONE_DOES_NOT_INCLUDE_ANONYMOUS = 0x80040201,
  11. PM_E_HIGH_ENCRYPTION_NOT_INSTALLED = 0x80040202,
  12. PM_E_GENERATE_SESSION_KEY_FAILED = 0x80040203,
  13. PM_E_GENERATE_SESSION_PASSWORD_FAILED = 0x80040204,
  14. PM_E_PASSWORD_MIGRATION_NOT_ENABLED = 0x80040205,
  15. PM_E_ENCRYPTION_KEYS_DO_NOT_MATCH = 0x80040206,
  16. PM_E_PASSWORD_MIGRATION_NOT_RUNNING = 0x80040207,
  17. PM_E_SESSION_NOT_ESTABLISHED = 0x80040208,
  18. PM_E_NO_ENCRYPTION_KEY_FOR_DOMAIN = 0x80040209,
  19. }
  20. pmErrorEnum;
  21. [
  22. object,
  23. uuid(EB134929-B2B4-4060-94A7-12BC54B278E1),
  24. dual,
  25. helpstring("IPasswordMigration Interface"),
  26. pointer_default(unique)
  27. ]
  28. interface IPasswordMigration : IDispatch
  29. {
  30. [id(1), helpstring("method EstablishSession")]
  31. HRESULT EstablishSession([in] BSTR bstrSourceServer, [in] BSTR bstrTargetServer);
  32. [id(2), helpstring("method CopyPassword")]
  33. HRESULT CopyPassword([in] BSTR bstrSourceAccount, [in] BSTR bstrTargetAccount, [in] BSTR bstrTargetPassword);
  34. [id(3), helpstring("method GenerateKey")]
  35. HRESULT GenerateKey([in] BSTR bstrSourceDomainName, [in] BSTR bstrKeyFilePath, [in] BSTR bstrPassword);
  36. };
  37. [
  38. uuid(C57D771B-04D7-44BF-96B3-4B21264B80F9),
  39. version(1.0),
  40. helpstring("Microsoft Password Migration 1.0")
  41. ]
  42. library MsPwdMig
  43. {
  44. importlib("stdole32.tlb");
  45. importlib("stdole2.tlb");
  46. enum pmErrorEnum;
  47. [
  48. uuid(2B6CEACD-43D9-4400-B654-E8F1E0437E1B),
  49. helpstring("PasswordMigration Class")
  50. ]
  51. coclass PasswordMigration
  52. {
  53. [default] interface IPasswordMigration;
  54. };
  55. };