LookupPrivilegeValue

  BOOL LookupPrivilegeValue(lpszSystemName, lpszName, pluid)    
  LPTSTR lpszSystemName;    
  LPTSTR lpszName;    
  PLUID pluid;    

The LookupPrivilegeValue function retrieves the value used on the target system to locally represent the specified privilege. The privilege is specified by programmatic name.

Parameters

lpszSystemName

Supplies the name of the system at which the lookup is to be performed. If the null string is provided, the local system is assumed.

lpszName

Provides the privilege's programmatic name.

pluid

Receives the locally unique ID the privilege is known by on the target machine.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. To obtain extended error information, use the GetLastError function.