System.Reflection.MetadataImport._GetPInvokeMap C# (CSharp) Method

_GetPInvokeMap() private method

private _GetPInvokeMap ( IntPtr scope, MetadataArgs &skipAddresses, int token, int &attributes, void importName, void importDll ) : void
scope System.IntPtr
skipAddresses MetadataArgs
token int
attributes int
importName void
importDll void
return void
        private unsafe static extern void _GetPInvokeMap(IntPtr scope, out MetadataArgs.SkipAddresses skipAddresses, 
            int token, 
            out int attributes, 
            void**  importName, 
            void**  importDll);
        

Usage Example

Esempio n. 1
0
        public unsafe void GetPInvokeMap(int token, out PInvokeAttributes attributes, out string importName, out string importDll)
        {
            int   attributes1;
            void *pStringHeap1;
            void *pStringHeap2;

            MetadataImport._GetPInvokeMap(this.m_metadataImport2, token, out attributes1, &pStringHeap1, &pStringHeap2);
            importName = new Utf8String(pStringHeap1).ToString();
            importDll  = new Utf8String(pStringHeap2).ToString();
            attributes = (PInvokeAttributes)attributes1;
        }