Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Tue, 13 Mar 2007 12:25:56 +0200,    group: microsoft.public.platformsdk.com_ole        back       


IPersistStream::Load implementation in MMC Snap-In   
I need to implement IPersistStream in my MMC snap-in because I want to 
implement IsDirty and Save methods.

I do not save my data in the provided stream. I have other actions to 
perform on save.

I do not have anything to Load.

What is the correct implementation of Load in this case?

I have tried three variants.
1. return S_OK.
2. return E_NOTIMPL.
3. return S_FALSE.

Returning S_OK from extension snap-in makes MMC crash, while it works fine 
with standalone snap-in. Other variants work.

What is the correct implementation of Load when I have nothing to Load?
date: Tue, 13 Mar 2007 12:25:56 +0200   author:   Max please@newsgroup

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us