--*/ #include "Common/Platform/NMR_XmlReader_GCC.h" #include "Common/Platform/NMR_ImportStream_GCC.h" #include "Common/NMR_Exception_Windows.h" namespace NMR { CXmlReader_GCC::CXmlReader_GCC(_In_ PImportStream pImportStream) : CXmlReader (pImportStream) { // empty on purpose } void CXmlReader_GCC::GetQualifiedName(_Outptr_result_buffer_maybenull_(*pcwchQualifiedName + 1) const nfWChar ** ppwszQualifiedName, _Out_opt_ nfUint32 *pcwchQualifiedName) { throw CNMRException(NMR_ERROR_NOTIMPLEMENTED); } void CXmlReader_GCC::GetValue(_Outptr_result_buffer_maybenull_(*pcwchValue + 1) const nfWChar ** ppwszValue, _Out_opt_ nfUint32 *pcwchValue) { throw CNMRException(NMR_ERROR_NOTIMPLEMENTED); } nfBool CXmlReader_GCC::Read(_Out_ eXmlReaderNodeType & NodeType) { throw CNMRException(NMR_ERROR_NOTIMPLEMENTED); } nfBool CXmlReader_GCC::IsEOF()
m_bNameSpaceIsAttribute = false; m_nZeroInsertIndex = 0; m_bIsEOF = false; registerNameSpace(NMR_NATIVEXMLNS_XML_PREFIX, NMR_NATIVEXMLNS_XML_URI); registerNameSpace(NMR_NATIVEXMLNS_ATTRIBUTE, NMR_NATIVEXMLNS_XML_URI); } CXmlReader_Native::~CXmlReader_Native() { } void CXmlReader_Native::GetValue(_Outptr_result_buffer_maybenull_(*pcwchValue + 1) const nfWChar ** ppwszValue, _Out_opt_ nfUint32 *pcwchValue) { if (ppwszValue == nullptr) throw CNMRException(NMR_ERROR_INVALIDPARAM); *ppwszValue = m_pCurrentValue; if (pcwchValue != nullptr) *pcwchValue = nfWStrLen(m_pCurrentValue); } void CXmlReader_Native::GetLocalName(_Outptr_result_buffer_maybenull_(*pcwchLocalName + 1) const nfWChar ** ppwszLocalName, _Out_opt_ nfUint32 *pcwchLocalName) { if (ppwszLocalName == nullptr) throw CNMRException(NMR_ERROR_INVALIDPARAM);
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT. // //********************************************************* // FrameProviderMft0.cpp : Implementation of CFrameProviderMft0 #include "stdafx.h" #include "FrameProviderMft0.h" #include "SampleHelpers.h" #include <WinString.h> // CFrameProviderMft0 STDMETHODIMP CFrameProviderMft0::GetIids( /* [out] */ _Out_ ULONG *iidCount, /* [size_is][size_is][out] */ _Outptr_result_buffer_maybenull_(*iidCount) IID **iids) { HRESULT hr = S_OK; do { CHK_NULL_PTR_BRK(iidCount); CHK_NULL_PTR_BRK(iids); *iids = NULL; *iidCount = 0; } while (FALSE); return hr; } STDMETHODIMP CFrameProviderMft0::GetRuntimeClassName( /* [out] */ _Outptr_result_maybenull_ HSTRING *className) {
#define __isascii(_c) ( (unsigned)(_c) < 0x80 ) #endif // !defined(__isascii) // disable warnings #if _MSC_VER >= 1200 #pragma warning(push) #endif #pragma warning(disable:4127) // conditional expression is constant void SerenumScanOtherIdForMouse( _In_reads_(BufLen) PCHAR PBuffer, _In_ ULONG BufLen, _Outptr_result_buffer_maybenull_(*PmouseIdLen) PCHAR *PpMouseId, _Out_ ULONG *PmouseIdLen ) /*++ Routine Description: This routines a PnP packet for a mouse ID up to the first PnP delimiter (i.e, '('). Arguments: PBuffer - Pointer to the buffer to scan BufLen - Length of the buffer in bytes
// of effects changes from the list returned from this function. The APO // uses this event until either this function is called again or the APO // is destroyed. The passed handle may be NULL. In this case, the APO // stops using any previous handle and does not signal an event. // // Remarks // // An APO imlements this method to allow Windows to discover the current // effects applied by the APO. The list of effects may depend on what signal // processing mode the APO initialized (see AudioProcessingMode in the // APOInitSystemEffects2 structure) as well as any end user configuration. // // If there are no effects then the function still succeeds, ppEffectsIds // returns a NULL pointer, and pcEffects returns a count of 0. // STDMETHODIMP CSwapAPOGFX::GetEffectsList(_Outptr_result_buffer_maybenull_(*pcEffects) LPGUID *ppEffectsIds, _Out_ UINT *pcEffects, _In_ HANDLE Event) { HRESULT hr; BOOL effectsLocked = FALSE; IF_TRUE_ACTION_JUMP(ppEffectsIds == NULL, hr = E_POINTER, Exit); IF_TRUE_ACTION_JUMP(pcEffects == NULL, hr = E_POINTER, Exit); // Synchronize access to the effects list and effects changed event m_EffectsLock.Enter(); effectsLocked = TRUE; // Always close existing effects change event handle if (m_hEffectsChangedEvent != NULL) { CloseHandle(m_hEffectsChangedEvent);