![]() p4CloseSystem() |
![]() DEVELOPER |
![]() |
p4CloseSystem()
Drop Kernel Manager Resources
Connection/Disconnection Calls
Introduction
The P4API p4CloseSystem() is used to terminate a connection to a Kernel Manager, which was initiated via p4SystemLogon().
BOOL p4CloseSystem (
SYSTEM_HANDLE_T systemHandle
);
Parameters
systemHandle
[in] The system-session-id for a Kernel Manager session, as returned by a prior call to p4SystemLogon().
Return Values
If no error occurs, p4CloseSystem() returns TRUE. Otherwise, it returns a value of FALSE, and a specific error code can be retrieved by calling p4GetLastError().
Remarks
p4CloseSystem() must be used to release system resources held by Kernel Managers. This call does a set of implicit p4ClosePro4() calls for any p4OpenPro4() calls made against the systemHandle. However, it is strongly recommended to do explicit p4ClosePro4() calls in a timely fashion and not rely on p4CloseSystem() to do this housekeeping function.
Topic ID: 540185