3.1.4.2.7 ATSvc Account Information
The SASec interface has the methods SASetNSAccountInformation and SAGetNSAccountInformation, which manipulate the account information that is associated with ATSvc tasks. This account information, as specified in section 3.2.5.3.5, MUST apply to all ATSvc tasks, including tasks that the client adds (as specified in section 3.1.4.1.1) after calling SASetNSAccountInformation.
To change the account information that is associated with all ATSvc tasks, the client MUST invoke the SASetNSAccountInformation method with the following parameter values:
The account name in the pwsAccount parameter.
The password in the pwszPassword parameter.
To retrieve the account name that is associated with all ATSvc tasks, the client MUST allocate an array of WCHAR's to receive the account name (the array SHOULD be initialized to contain all zeroes).
Next, the client MUST invoke the SAGetNSAccountInformation method with the following parameter values:
The size of the array in WCHAR's in the ccBufferSize parameter.
A pointer to the array in the wszBuffer parameter.