' ########################################################################################
' Microsoft Windows
' File: wmnetsourcecreator.inc
' Copyright (c) 2011 Jos? Roca
' Portions Copyright (c) Microsoft Corporation.
' All Rights Reserved.
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
' EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
' MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
' ########################################################################################
#IF NOT %DEF(PBX_wmnetsourcecreator_PBI)
#DEFINE PBX_wmnetsourcecreator_PBI
%EQUATE `WMNETSOURCECREATOR_INC = 1
'/* header files for imported files */
#INCLUDE ONCE "Legacy/COM/OAIdl.inc"
$CLSID_ClientNetManager = GUID$("{CD12A3CE-9C42-11D2-BEED-0060082F2054}")
$IID_INSNetSourceCreator = GUID$("{0C0E4080-9081-11D2-BEEC-0060082F2054}")
'typedef unsigned __int64 QWORD;
' ########################################################################################
' Interface name = INSNetSourceCreator
' IID = 0C0E4080-9081-11D2-BEEC-0060082F2054
' Inherited interface = IUnknown
' ########################################################################################
#IF NOT %DEF(%INSNetSourceCreator_INTERFACE_DEFINED)
 %INSNetSourceCreator_INTERFACE_DEFINED = 1
INTERFACE INSNetSourceCreator $IID_INSNetSourceCreator
 INHERIT IUnknown
 ' =====================================================================================
 METHOD Initialize ( ' VTable offset = 12
 ) AS LONG
 ' =====================================================================================
 METHOD CreateNetSource ( ' VTable offset = 16
 BYREF pszStreamName AS WSTRINGZ
 , BYVAL pMonitor AS IUnknown
 , BYVAL pData AS BYTE PTR
 , BYVAL pUserContext AS IUnknown
 , BYVAL pCallback AS IUnknown
 , BYVAL qwContext AS QUAD
 ) AS LONG
 ' =====================================================================================
 METHOD GetNetSourceProperties ( ' VTable offset = 20
 BYREF pszStreamName AS WSTRINGZ
 , BYREF ppPropertiesNode AS IUnknown
 ) AS LONG
 ' =====================================================================================
 METHOD GetNetSourceSharedNamespace ( ' VTable offset = 24
 BYREF ppSharedNamespace AS IUnknown
 ) AS LONG
 ' =====================================================================================
 METHOD GetNetSourceAdminInterface ( ' VTable offset = 28
 BYREF pszStreamName AS WSTRINGZ
 , BYREF pVal AS VARIANT
 ) AS LONG
 ' =====================================================================================
 METHOD GetNumProtocolsSupported ( ' VTable offset = 32
 BYREF pcProtocols AS DWORD
 ) AS LONG
 ' =====================================================================================
 METHOD GetProtocolName ( ' VTable offset = 36
 BYVAL dwProtocolNum AS DWORD
 , BYREF pwszProtocolName AS DWORD
 , BYREF pcchProtocolName AS WORD
 ) AS LONG
 ' =====================================================================================
 METHOD Shutdown ( ' VTable offset = 40
 ) AS LONG
 ' =====================================================================================
END INTERFACE
#ENDIF ' /* __INSNetSourceCreator_INTERFACE_DEFINED__ */
#ENDIF
