Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//+--------------------------------------------------------------------------- // // Microsoft Windows // Copyright (C) Microsoft Corporation, 1992-1998. // // File: dwnnot.idl // // Contents: IDownloadNotify interfaces // // Classes: // // Functions: // // History: 08-07-97 DBau (David Bau) Created // //---------------------------------------------------------------------------- cpp_quote("//=--------------------------------------------------------------------------=") cpp_quote("// dwnnot.h") cpp_quote("//=--------------------------------------------------------------------------=") cpp_quote("// (C) Copyright 1995-1998 Microsoft Corporation. All Rights Reserved.") cpp_quote("//") cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") cpp_quote("// PARTICULAR PURPOSE.") cpp_quote("//=--------------------------------------------------------------------------=") cpp_quote("") cpp_quote("#pragma comment(lib,\"uuid.lib\")") cpp_quote("") cpp_quote("//---------------------------------------------------------------------------=") cpp_quote("// IDownloadNotify Interface.") cpp_quote("")
import "objidl.idl"; import "oleidl.idl";
interface IDownloadNotify;
//+--------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation, 1995-1998. // // Contents: IDownloadNotify interface definition // //----------------------------------------------------------------------------
// IOleCommandTarget command group GUID and command IDs
cpp_quote("EXTERN_C const GUID CGID_DownloadHost;")
cpp_quote("#ifndef _LPDOWNLOADHOST_CMDID_DEFINED") cpp_quote("#define _LPDOWNLOADHOST_CMDID_DEFINED")
cpp_quote("#define DWNHCMDID_SETDOWNLOADNOTIFY (0)")
cpp_quote("#endif")
cpp_quote("#ifndef _LPDOWNLOADNOTIFY_DEFINED") cpp_quote("#define _LPDOWNLOADNOTIFY_DEFINED")
cpp_quote("#define DWNTYPE_HTM 0") cpp_quote("#define DWNTYPE_IMG 1") cpp_quote("#define DWNTYPE_BITS 2") cpp_quote("#define DWNTYPE_FILE 3")
[local, object, uuid(caeb5d28-ae4c-11d1-ba40-00c04fb92d79), pointer_default(unique)] interface IDownloadNotify : IUnknown { typedef [unique] IDownloadNotify *LPDOWNLOADNOTIFY;
// Called when a download is about to begin; return E_ABORT to avoid download HRESULT DownloadStart( [in] LPCWSTR pchUrl, // may be NULL if URL is unspecified [in] DWORD dwDownloadId, [in] DWORD dwType, [in] DWORD dwReserved);
// Called when a download is finished; even called if download was aborted at DownloadStart HRESULT DownloadComplete( [in] DWORD dwDownloadId, [in] HRESULT hrNotify, [in] DWORD dwReserved); }
cpp_quote("#endif")
|