This topic has not yet been rated - Rate this topic

RegisterCallback function

Applies to: desktop apps only

Registers user-mode callback functions. The RegisterCallback function is called by a user-mode security package.

A security package loaded into the Local Security Authority (LSA) process can call a registered user-mode callback function using the ClientCallBack function available in the LSA_SECPKG_FUNCTION_TABLE structure.

Syntax

NTSTATUS RegisterCallback(
  __in  ULONG CallbackId,
  __in  PLSA_CALLBACK_FUNCTION Callback
);

Parameters

CallbackId [in]

Specifies an identifier for the function.

Callback [in]

Specifies the callback function that will execute in the user's process space. For information about the prototype for this function, see ClientCallback Function Prototype.

Return value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value is an NTSTATUS code indicating the reason it failed.

Remarks

The registered function is accessed by means of the ClientCallback function.

A pointer to the RegisterCallback function is available in the SECPKG_DLL_FUNCTIONS structure received from the SpInstanceInit function.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Ntsecpkg.h

See also

ClientCallback
ClientCallback Function Prototype

 

 

Send comments about this topic to Microsoft

Build date: 3/13/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ