+ wchar_t *str;
+ const wchar_t *printstr;
+
+ /* 'size' is ignored here due to the crappy Windows APIs. Oh well, this
+ * is just for debugging anyway. */
+ str = get_security_descriptor_string((PSECURITY_DESCRIPTOR)sd);
+ if (str)
+ printstr = str;
+ else
+ printstr = L"(invalid)";
+
+ wprintf(L"Security Descriptor = %ls\n", printstr);
+
+ LocalFree(str);