of_setsecurity


pfcapsrv.pbl   >   pfc_n_cst_appmanager   >   of_setsecurity   

Full name pfc_n_cst_appmanager.of_setsecurity
Access public
Extend of integer
Return value integer
Prototype public function integer of_setsecurity(boolean)

Name Datatype
No Data

Name Datatype
No Data

public function integer of_setsecurity (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_SetSecurity
//
//	Access:  		public
//
//	Arguments:		
//	ab_Switch		True - start (create) the service,
//						False - stop (destroy) the service
//
//Returns:  		Integer
//						 1 - Successful operation.
//						 0 - No action taken.
//						-1 - An error was encountered.
//
//	Description:  	Starts or stops the Security service
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0.02   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 Sybase, Inc. and its subsidiaries.  All rights reserved.
//	Any distribution of the PowerBuilder Foundation Classes (PFC)
//	source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//
//////////////////////////////////////////////////////////////////////////////

//Check arguments
If IsNull(ab_switch) Then
	Return -1
End if

IF ab_Switch THEN
	IF IsNull(inv_security) Or Not IsValid (inv_security) THEN
		inv_security = CREATE n_cst_security
		Return 1
	END IF
ELSE
	IF IsValid (inv_security) THEN
		DESTROY inv_security
		Return 1
	END IF	
END IF

Return 0

end function

     
Name Owner
pfc_n_cst_appmanager.destructor pfc_n_cst_appmanager

     
Name Owner
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions

     
Full name
No Data

     
Name Scope
No Data