Permissions.h 992 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Permissions.h : Permissions DLL 的主头文件
  2. //
  3. #pragma once
  4. #ifndef __AFXWIN_H__
  5. #error include 'stdafx.h' before including this file for PCH
  6. #endif
  7. #include "resource.h" // 主符号
  8. // CPermissionsApp
  9. // 有关此类实现的信息,请参阅 Permissions.cpp
  10. //
  11. class CPermissionsApp : public CWinApp
  12. {
  13. public:
  14. CPermissionsApp();
  15. // 重写
  16. public:
  17. virtual BOOL InitInstance();
  18. DECLARE_MESSAGE_MAP()
  19. };
  20. #define STONEU_API __declspec(dllexport)
  21. int STONEU_API PMS_InitSDK();
  22. int STONEU_API PMS_UnInitSDK();
  23. int STONEU_API PMS_AddGroup( CString sGroupName,int iGroupID );
  24. int STONEU_API PMS_DelGroup( int iGroupID );
  25. int STONEU_API PMS_AddPermitToGroup( CString sPermitName,int iPermitID,int iGroupID );
  26. int STONEU_API PMS_DelPermitFromGroup( int iPermitID,int iGroupID );
  27. int STONEU_API PMS_AddUserToGroup( CString sUserName,int iUserID,int iGroupID );
  28. int STONEU_API PMS_DelUserFromGroup( int iUserID );
  29. int STONEU_API PMS_VerifyUserPermit( int iUserID,int iPermitID,CString sPermitName );