Compartir a través de


IPassportManager Interface

Passport Manager Object

A server-side object that is embedded in an Active Server Pages (ASP) page. The Passport Manager object interacts with Microsoft® Internet Information Services (IIS) and ASP to automatically handle Microsoft® .NET Passport cookie reads and writes, and provides information to ASP pages by calling various Passport Manager application programming interface (API) methods and properties.

Functions that access or create the Passport Manager object

Interfaces implemented

IPassportManager Interface The primary interface for the Passport Manager object.
IPassportManager2 Interface A secondary interface for the Passport Manager object (must be queried). Contains new APIs available in the 1.4 version of Passport Manager object.
IPassportManager3 Interface A secondary interface for the Passport Manager object. Contains new APIs available in the 2.0 version of the Passport Manager object.

A sample object instantiation implementation in C++

#include "passport.h"
// assumes that this file is in path
// (main or constructor function, whatever that is for your project)
{
    HRESULT             hr;
    IPassportManager*   piPassMan;

    hr = CoInitialize(NULL);

    hr = CoCreateInstance(CLSID_Manager, NULL, CLSCTX_INPROC_SERVER, IID_IPassportManager, (void**)&piPassMan);
// TODO: include all code that calls Passport Manager object


// cleanup
    hr = piPassMan->Release();
    CoUninitialize();
}

Object information

CLSID 41651BEF-A5C8-11D2-95DF-00C04F8E7A70
Implementation System, msppmgr.dll
Header and IDL files passport.h, passport.idl
Minimum operating systems Microsoft® Windows NT® version 4 (Service Pack 3)