seurinfo.idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:2k
源码类别:

模拟服务器

开发平台:

C/C++

  1. //-----------------------------------------------------------------------------
  2. // File: seurinfo.idl
  3. //
  4. // Copyright: Copyright (c) Microsoft Corporation          
  5. //
  6. // Contents:  OLE DB interface definition
  7. //
  8. // Comments: 
  9. //
  10. //-----------------------------------------------------------------------------
  11. #include "idlmulti.h"
  12. //
  13. #if( OLEDBVER >= 0x0200 )
  14.     REMOTED_INTERFACE(0c733aa4-2a1c-11ce-ade5-00aa0044773d)
  15. #else
  16.     LOCAL_INTERFACE(0c733aa4-2a1c-11ce-ade5-00aa0044773d)
  17. #endif
  18. interface ISecurityInfo : IUnknown {
  19. cpp_quote("//@@@+ V2.1")
  20. cpp_quote("#if( OLEDBVER >= 0x0210 )")
  21. typedef DWORD ACCESS_MASK;
  22. enum ACCESS_MASKENUM {
  23. PERM_EXCLUSIVE = 0x00000200L,
  24. PERM_READDESIGN  = 0x00000400L,
  25. PERM_WRITEDESIGN  = 0x00000800L,
  26. PERM_WITHGRANT = 0x00001000L,
  27. PERM_REFERENCE = 0x00002000L,
  28. PERM_CREATE = 0x00004000L,
  29. PERM_INSERT = 0x00008000L,
  30. PERM_DELETE = 0x00010000L,
  31. PERM_READCONTROL = 0x00020000L,
  32. PERM_WRITEPERMISSIONS  = 0x00040000L,
  33. PERM_WRITEOWNER = 0x00080000L,
  34. PERM_MAXIMUM_ALLOWED = 0x02000000L,
  35. PERM_ALL = 0x10000000L,
  36. PERM_EXECUTE = 0x20000000L,
  37. PERM_READ = 0x80000000L,
  38. PERM_UPDATE = 0x40000000L,
  39. PERM_DROP = 0x00000100L,
  40. };
  41. cpp_quote("#define PERM_DESIGN  PERM_WRITEDESIGN")
  42. cpp_quote("#endif // OLEDBVER >= 0x0210")
  43. cpp_quote("//@@@- V2.1")
  44. HRESULT GetCurrentTrustee(
  45. [out] TRUSTEE_W** ppTrustee
  46. );
  47. HRESULT GetObjectTypes(
  48. [out] ULONG * cObjectTypes,
  49. [out] GUID ** rgObjectTypes
  50. );
  51. HRESULT GetPermissions(
  52. [in] GUID ObjectType,
  53. [out] ACCESS_MASK* pPermissions
  54. );
  55. }