IoCreateSymbolicLink
NTSTATUS __stdcall IoCreateSymbolicLink(_UNICODE_STRING *SymbolicLinkName, _UNICODE_STRING *DeviceName){
int v2;
_OBJECT_ATTRIBUTES ObjectAttributes;
VOID *LinkHandle;
*(&ObjectAttributes.Length + 1) = 0;
*(&ObjectAttributes.Attributes + 1) = 0;
LinkHandle = 0i64;
ObjectAttributes.RootDirectory = 0i64;
ObjectAttributes.SecurityQualityOfService = 0i64;
ObjectAttributes.ObjectName = SymbolicLinkName;
ObjectAttributes.SecurityDescriptor = (void *)SePublicDefaultUnrestrictedSd;
ObjectAttributes.Length = 48;
ObjectAttributes.Attributes = 592;
v2 = ZwCreateSymbolicLinkObject(&LinkHandle, 983041, &ObjectAttributes, DeviceName);
if( v2 >= 0 )
ZwClose((_HANDLE)LinkHandle);
return v2;
}Referenced by:
IopCreateArcName
IopCreateArcNamesCd
RamdiskStart
WmipDriverEntry