I'm no expert on Microsoft extensions but I suspect, in this case, the unique keyword is an attribute of the pointer passed by the caller (i.e. main()), not to whatever the function might do to the argument.
In other words, the function is allowed to assume the pointers passed to it are "unique".