WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIPluginManager

IID:da58ad80-4eb6-11d2-8164-006008119d7a
Inherits From:nsISupports

This interface is implemented by the following components:


Methods

[noscript] void GetValue ( nsPluginManagerVariable variable , nativeVoid value ) [noscript] void RegisterPlugin ( REFNSIID CID , char* pluginName , char* description , nativeChar mimeTypes , nativeChar mimeDescriptions , nativeChar fileExtensions , PRInt32 count ) void reloadPlugins ( PRBool reloadPages ) [noscript] void UnregisterPlugin ( REFNSIID CID ) [noscript] void UserAgent ( nativeChar resultingAgentString )

void GetValue ( nsPluginManagerVariable variable , nativeVoid value )

Returns the value of a variable associated with the plugin manager.

(Corresponds to NPN_GetValue.)

Arguments:
variable: - the plugin manager variable to get
value: - the address of where to store the resulting value

void RegisterPlugin ( REFNSIID CID , char* pluginName , char* description , nativeChar mimeTypes , nativeChar mimeDescriptions , nativeChar fileExtensions , PRInt32 count )

Arguments:
CID
pluginName
description
mimeTypes
mimeDescriptions
fileExtensions
count

void reloadPlugins ( PRBool reloadPages )

Causes the plugins directory to be searched again for new plugin libraries.

(Corresponds to NPN_ReloadPlugins.)

Arguments:
reloadPages: - indicates whether currently visible pages should also be reloaded

void UnregisterPlugin ( REFNSIID CID )

Unregister a plugin from the plugin manager

Arguments:
CID: the CID of the plugin to unregister.

void UserAgent ( nativeChar resultingAgentString )

Returns the user agent string for the browser.

(Corresponds to NPN_UserAgent.)

Arguments:
resultingAgentString: - the resulting user agent string

Reference documentation is generated from Mozilla's source.