diff --git a/Windows API/RfInitializeObjectAttributes.cpp b/Windows API/RfInitializeObjectAttributes.cpp new file mode 100644 index 0000000..2b0c4cd --- /dev/null +++ b/Windows API/RfInitializeObjectAttributes.cpp @@ -0,0 +1,9 @@ +#define InitializeObjectAttributes(p, n, a, r, s) \ +{ \ + (p)->Length = sizeof(OBJECT_ATTRIBUTES); \ + (p)->RootDirectory = r; \ + (p)->Attributes = a; \ + (p)->ObjectName = n; \ + (p)->SecurityDescriptor = s; \ + (p)->SecurityQualityOfService = NULL; \ +}