#include <nwqms.h> or #include <nwcalls.h>NWCCODE N_API NWChangeToClientRights2 (NWCONN_HANDLE conn, nuint32 queueID, nuint32 jobNumber);
The queue server's login user ID and associated security equivalence list are replaced by the ID and security equivalence list of the user who placed the job in the queue.
NWChangeToClientRights2 does not change any path mappings the queue server may have on the job server. However, all access rights to those directories are recalculated to conform to the rights of the queue client. Files opened before calling NWChangeToClientRights2 continue to be accessible with the server's rights. Files opened after calling NWChangeToClientRights2 are accessible only with the client's rights.
The job server creates path mappings needed to carry out the client's requests after calling NWChangeToClientRights2.
NWRestoreQueueServerRights reverses the effects of NWChangeToClientsRights2. The server's rights are automatically reset if the server calls NWFinishServicingQueueJob2 or NWAbortServicingQueueJob2.
Only a queue server that has previously accepted a job for service can call NWChangeToClientRights2.
Queue Management