मुख्य सामग्री पर जाएँ

GW2GetPolicySettings

GW2GetPolicySettings function, दिए गए session से संबद्ध policy settings file की सामग्री के अनुरूप एक string प्रदान करता है।


#include "glasswall.core2.api.h"

int GW2GetPolicySettings (
Session session,
char **policiesBuffer,
size_t *policiesLength,
Policy_format format);

पैरामीटर

session session की ID, जैसा कि GW2OpenSession द्वारा लौटाया गया है

policiesBuffer एक string pointer output parameter है, जिसे policy settings information से भरा जाता है। इस pointer द्वारा उपयोग की गई memory को user द्वारा मुक्त करने की आवश्यकता नहीं है। विफलता की स्थिति में यह parameter nullptr पर सेट किया जा सकता है।

policiesLength एक output parameter है, जिसे policiesBuffer द्वारा इंगित memory के bytes में आकार से भरा जाता है

format डेटा का format। यह PF_XML होना चाहिए।

रिटर्न

  एक integer लौटाता है जो बताता है कि function call सफल रहा या नहीं। Negative numbers विफलता को दर्शाते हैं। return codes की व्याख्या के लिए Return Types तालिका देखें।