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.

30 lines
972 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Copyright 1996-1998 Microsoft Corporation. All Rights Reserved.
  4. //
  5. // Contents: Synchronized Callback object
  6. //
  7. // This object is intended to provide a mechanism to make a synchronized
  8. // call under the Apartment model from a secondary thread. Simply marshal
  9. // from the main thread to the secondary thread and call the CallBack method
  10. // on the marshalled interface to get a synchronous call.
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef DO_NO_IMPORTS
  14. import "unknwn.idl";
  15. #endif
  16. cpp_quote("#ifndef _SYNCHRONIZED_CALLBACK_H_")
  17. cpp_quote("#define _SYNCHRONIZED_CALLBACK_H_")
  18. [
  19. object,
  20. uuid(74C26041-70D1-11d1-B75A-00A0C90564FE),
  21. pointer_default(unique)
  22. ]
  23. interface ISynchronizedCallBack : IUnknown {
  24. HRESULT CallBack([in, size_is(uSize)] BYTE *pParams, [in] ULONG uSize);
  25. };
  26. cpp_quote("#endif")