Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenbits1_5.idl
Go to the documentation of this file.
00001 /* 00002 * Background Intelligent Transfer Service (BITS) 1.5 interface 00003 * 00004 * Copyright 2008 Google (Dan Hipschman) 00005 * 00006 * This library is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * This library is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this library; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 00019 * 00020 */ 00021 00022 #ifndef DO_NO_IMPORTS 00023 import "bits.idl"; 00024 #endif 00025 00026 [ 00027 uuid(54b50739-686f-45eb-9dff-d6a9a0faa9af), 00028 odl 00029 ] 00030 interface IBackgroundCopyJob2 : IBackgroundCopyJob 00031 { 00032 HRESULT SetNotifyCmdLine([unique] LPCWSTR prog, [unique] LPCWSTR params); 00033 HRESULT GetNotifyCmdLine([out] LPWSTR *prog, [out] LPWSTR *params); 00034 00035 typedef struct _BG_JOB_REPLY_PROGRESS 00036 { 00037 UINT64 BytesTotal; 00038 UINT64 BytesTransferred; 00039 } BG_JOB_REPLY_PROGRESS; 00040 00041 HRESULT GetReplyProgress([in, out] BG_JOB_REPLY_PROGRESS *progress); 00042 HRESULT GetReplyData([out, size_is( , (unsigned long) *pLength)] byte **pBuffer, 00043 [in, out, unique] UINT64 *pLength); 00044 HRESULT SetReplyFileName([unique] LPCWSTR filename); 00045 HRESULT GetReplyFileName([out] LPWSTR *pFilename); 00046 00047 typedef enum 00048 { 00049 BG_AUTH_TARGET_SERVER = 1, 00050 BG_AUTH_TARGET_PROXY 00051 } BG_AUTH_TARGET; 00052 00053 typedef enum 00054 { 00055 BG_AUTH_SCHEME_BASIC = 1, 00056 BG_AUTH_SCHEME_DIGEST, 00057 BG_AUTH_SCHEME_NTLM, 00058 BG_AUTH_SCHEME_NEGOTIATE, 00059 BG_AUTH_SCHEME_PASSPORT 00060 } BG_AUTH_SCHEME; 00061 00062 typedef struct 00063 { 00064 LPWSTR UserName; 00065 LPWSTR Password; 00066 } BG_BASIC_CREDENTIALS; 00067 typedef BG_BASIC_CREDENTIALS *PBG_BASIC_CREDENTIALS; 00068 00069 typedef [switch_type(BG_AUTH_SCHEME)] union 00070 { 00071 [case(BG_AUTH_SCHEME_BASIC, BG_AUTH_SCHEME_DIGEST, BG_AUTH_SCHEME_NTLM, 00072 BG_AUTH_SCHEME_NEGOTIATE, BG_AUTH_SCHEME_PASSPORT)] 00073 BG_BASIC_CREDENTIALS Basic; 00074 [default] 00075 ; 00076 } BG_AUTH_CREDENTIALS_UNION; 00077 00078 typedef struct 00079 { 00080 BG_AUTH_TARGET Target; 00081 BG_AUTH_SCHEME Scheme; 00082 [switch_is(Scheme)] BG_AUTH_CREDENTIALS_UNION Credentials; 00083 } BG_AUTH_CREDENTIALS; 00084 typedef BG_AUTH_CREDENTIALS *PBG_AUTH_CREDENTIALS; 00085 00086 HRESULT SetCredentials(BG_AUTH_CREDENTIALS *cred); 00087 HRESULT RemoveCredentials(BG_AUTH_TARGET target, BG_AUTH_SCHEME scheme); 00088 } Generated on Sat May 26 2012 04:29:49 for ReactOS by
1.7.6.1
|