In Configuration Manager, the GetSessionHandle Windows Management Instrumentation (WMI) class method creates an in-memory copy of the site control file (SCF) on which to work.
The following syntax is simplified from Managed Object Format (MOF) code, and it is intended to show the definition of the method.
SInt32 GetSessionHandle( String SessionHandle );
- Data type: StringQualifiers: [out]Handle to the in-memory copy of the site control file.
An SInt32 data type that is 0 to indicate success or non-zero to indicate failure.
For information about handling returned errors, see About Configuration Manager Errors.
Multiple administrators can modify the site control file at the same time. As a result the SMS Provider manages simultaneous changes to the file by using session handles. The session handle identifies an in-memory copy of the site control file and identifies the changes made to the file.
Your application must pass the session handle as a context qualifier in all IWbemServices, SWbemServices, IWbemClassObject, and SWbemObject methods that are related to the site control file. For more information, see Configuration Manager Context Qualifiers.
For more information, see Configuration Manager Server Runtime Requirements.
For more information, see Configuration Manager Server Development Requirements.
Send comments about this topic to Microsoft.