|
of_setnotifyconnection
|
|
Full name
|
pfc_n_cst_error.of_setnotifyconnection
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setnotifyconnection(mailsession)
|
Name
|
Datatype
|
lenv_obj
|
environment
|
public function integer of_setnotifyconnection (mailsession ams_mses);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetNotifyConnection
//
// Access: public
//
// Arguments:
// ams_mses The mail connection.
//
// Returns: integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// This function is called to set the mail connection to use for
// sending notificiations via the mail system.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 5.0.02 Prevent mailsession from being established if running Unix or Mac.
// MAPI is not supported on these platforms.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
/////////////////////////////////////////////////////////////////////////////
environment lenv_obj
// Determine whether mail notification is supported for current platform
GetEnvironment (lenv_obj)
if IsValid (lenv_obj) then
if lenv_obj.ostype <> windows! and lenv_obj.ostype <> windowsnt! then
return -1
end if
else
return -1
end if
// Set the notify connection information.
ims_mses = ams_mses
return 1
end function
Name
|
Owner
|
systemfunctions.getenvironment |
systemfunctions
|
systemfunctions.isvalid |
systemfunctions
|