00001 00010 #include <_ansi.h> 00011 #include "MsgQInternal.h" 00012 00013 00014 /************************************************************************** 00015 * MsgQMaxCheck 00016 * Function: This function checks the maximum number of messages in a 00017 ***************************************************************************/ 00018 00019 EXPORT_C int MsgQMaxCheck(ULONG qName, int* err) { 00020 MSGQ_INFO* pMsgQInfo = NULL; 00021 00022 if ((pMsgQInfo = MsgQTableLookup(qName)) != NULL) { 00023 *err = OK; 00024 return (pMsgQInfo->maxNumMsgs); 00025 } 00026 else 00027 *err = KMsgQLibQIdErr; 00028 00029 return(ERROR); 00030 } 00031
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.