Guest User

Untitled

a guest
Apr 29th, 2020
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1.  
  2. extern "C"
  3. {
  4. void *Secure_CreateNative(const GUID &type_id);
  5. void Secure_Delete(void *native);
  6. }
  7.  
  8.  
  9. class Secure
  10. {
  11. Secure(const GUID &type_id)
  12. {
  13. m_native = Secure_CreateNative(type_id);
  14. }
  15.  
  16. virtual ~Secure()
  17. {
  18. Secure_Delete(m_native);
  19. }
  20.  
  21. private:
  22. void *m_native;
  23. }
  24.  
  25.  
  26.  
  27. #define GUID_FOR_MY_ZONE_TYPE 0xb1ab1ab1a
  28.  
  29. class Zone : public Secure
  30. {
  31. public:
  32. Zone() : Secure(GUID_FOR_MY_ZONE_TYPE)
  33. {
  34. }
  35. };
  36.  
  37.  
  38. int main()
  39. {
  40.  
  41. Zone z;
  42.  
  43. return 0;
  44. }
Advertisement
Add Comment
Please, Sign In to add comment