As far as I know, you can't control a native Illustrator menuitem I'm afraid. I presume you're trying to prevent the save operation, but perhaps there's another way to accomplish your aim. At least, I hope so, because I don't know of any way to prevent saving. If you expand on your problem, maybe I can suggest something.
Actually, I just thought of a hacky way to do this. AIDocumentSuite has a method SetDocumentModified() -- if you set this to false, Illustrator will not allow the user to save because, well, there's nothing TO save...right? :)
I have got almost the same question.
I have customize Illustrator's save menu by adding a "custom save menu item". The problem is that this item is always enable, even if no documents are opened.
So, how could i disable or enabe this item, to does like Illustrator does for its save item.
You need to configure your menuitem when you create it to request update messages -- make sure you specify kMenuItemWantsUpdateOption as option when you create it. That way you get notified by illustrator whenever the menu on which your menuitem is about to be displayed. You can respond to the event and decide if you item is enabled, disabled, checked or unchecked, even set its text based on whatever you decide.
Additionally, if you want to reduce some of the work you have to do, you can use AIMenuSuite::UpdateMenuItemAutomatically() to specify conditions in which you want AI to automatically handle your menuitem for you. In our product we often let AI handle the 'no document open' case for us.