Outlook (or MAPI for that matter) doesn't know whether the item is being
accessed by your custom code or through the UI; the same security setting
will be applied; they only depend on who the current user is.
In cases like yours, hidden items is what Outlook itself and other
third-part apps are using: on the MAPI level, each folder has two contents
tables - one is the regular one and another one is hidden (look at a folder
with OutlookSpy - click IMAPIFolder, go to the "Associated Contents" table).
The hidden items are accessible through Extended MAPI (C++/Delphi only), CDO
1.21 (Folder.HiddenMessages collection) or Redemption (url below,
RDOFolder.HiddenItems collection).
Outlook 2007 provides access to the hidden folder items through the
MAPIFolder.GetStorage method.
Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
> Hi
>
[quoted text clipped - 10 lines]
>
> Tks