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.

67 lines
2.0 KiB

  1. // SAFSessionResolver.idl : IDL source for SAFSessionResolver.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (SAFSessionResolver.tlb) and marshalling code.
  5. import "oaidl.idl";
  6. import "ocidl.idl";
  7. /**
  8. ** ISAFRemoteDesktopCallback Interface
  9. **/
  10. cpp_quote("")
  11. cpp_quote("#define DISPID_RDSCALLBACK_RESOLVEUSERSESSIONID 1")
  12. cpp_quote("#define DISPID_RDSCALLBACK_ONDISCONNECT 2")
  13. cpp_quote("")
  14. #define DISPID_RDSCALLBACK_RESOLVEUSERSESSIONID 1
  15. #define DISPID_RDSCALLBACK_ONDISCONNECT 2
  16. [
  17. object,
  18. uuid(A39442C2-10A5-4805-BE54-5E6BA334DC29),
  19. dual,
  20. helpstring("ISAFRemoteDesktopServer Interface"),
  21. pointer_default(unique)
  22. ]
  23. interface ISAFRemoteDesktopCallback : IDispatch
  24. {
  25. [id(DISPID_RDSCALLBACK_RESOLVEUSERSESSIONID), helpstring("method ResolveUserSessionID")]
  26. HRESULT ResolveUserSessionID(
  27. [in] BSTR connectParms,
  28. [in] BSTR userSID,
  29. [in] BSTR expertHelpBlob,
  30. [in] BSTR userHelpBlob,
  31. [in] ULONG_PTR hShutdown,
  32. [out] long *sessionID,
  33. [in] DWORD dwPID,
  34. [out] ULONG_PTR* hHelpCtr,
  35. [out, retval] int* userResponse
  36. );
  37. [id(DISPID_RDSCALLBACK_ONDISCONNECT), helpstring("method OnDisconnect")]
  38. HRESULT OnDisconnect([in] BSTR connectParms, [in] BSTR userSID, [in] long sessionID);
  39. };
  40. [
  41. uuid(087EAABE-39BA-47C2-AB77-A93009A70F0A),
  42. version(1.0),
  43. helpstring("SAFSessionResolver 1.0 Type Library")
  44. ]
  45. library SAFSESSIONRESOLVERLib
  46. {
  47. importlib("stdole32.tlb");
  48. importlib("stdole2.tlb");
  49. [
  50. uuid(A55737AB-5B26-4A21-99B7-6D0C606F515E),
  51. helpstring("SessionResolver Class")
  52. ]
  53. coclass SessionResolver
  54. {
  55. [default] interface ISAFRemoteDesktopCallback;
  56. }
  57. };