Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This method is not supported in Windows CE Platform Builder 3.0.
This method logs the user on to a Pocket Outlook session. Make this the first method called for a Pocket Outlook object.
HRESULT Logon( long hWnd );
Parameters
hWnd
[in] Handle to the parent window for the Pocket Outlook session. Pocket Outlook uses this handle for the Display call and for the infrared transfer dialog. This can be the PIM application window from the CePimCommand.For Visual Basic, this parameter is optional and has the Null default value.
Return Values
S_OK indicates success. If an error occurs, the appropriate HRESULT value is returned.
Code Example [Visual Basic]
The following Visual Basic® code snippet shows how to log on the user to Pocket Outlook:
Dim polApp as PocketOutlook.Application
Set polApp = CreateObject("PocketOutlook.Application")
polApp.Logon()
Code Example [C++]
The following C++ code snippet logs the user on to Pocket Outlook:
HRESULT hr;
IPOutlookApp *polApp;
// Initialize COM for Pocket Outlook
if (FAILED(CoInitializeEx(NULL, 0))) return FALSE;
// Get the application object
hr = CoCreateInstance(CLSID_Application, NULL, CLSCTX_INPROC_SERVER, IID_IPOutlookApp, (LPVOID *)&polApp);
if (FAILED(hr)) return FALSE;
// Log on to Pocket Outlook
hr = polApp->Logon(NULL);
if (FAILED(hr)) return FALSE;
Requirements
| Runs On | Versions | Defined in | Include | Link to |
|---|---|---|---|---|
| Windows CE OS | 2.0 and later | pimstore.h |
See Also
IPOutlookApp::Unknown, IPOutlookApp Property Methods
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.