PFNPROCESSPOLICIES function pointer

[The PFNPROCESSPOLICIES callback is not supported as of Windows Vista.]

The PFNPROCESSPOLICIES callback is the prototype for a function that returns the user account policy information associated with a specific Windows process.

Syntax

typedef UINT ( CALLBACK *PFNPROCESSPOLICIES)(
   HWND    hwnd,
   LPCTSTR pszPath,
   LPCTSTR pszUserName,
   LPCTSTR pszComputerName,
   DWORD   dwFlags
);

Parameters

  • hwnd
    Handle to a Windows process.

  • pszPath
    Pointer to a zero-terminated string that contains the path to the executable that created the process.

  • pszUserName
    Pointer to a zero-terminated string that, upon return, contains the user name the process is running under.

  • pszComputerName
    Pointer to a zero-terminated string that, upin return, contains the name of the computer the process is running under.

  • dwFlags
    Set of flag values that describe error display behaviors.

    Value Meaning
    PP_DISPLAYERRORS 0x01

    Display error messages. If this flag is not set, then the callback will fail silently upon error.

     

Return value

If the callback is successful, the return value is 0.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Winnetwk.h

Unicode and ANSI names

PFNPROCESSPOLICIESW (Unicode) and PFNPROCESSPOLICIESA (ANSI)

See also

PFNGETPROFILEPATH

PFNRECONCILEPROFILE