Exemple #1
0
        public static void ReverseStringsReplace(ushort ***strArray, int *numValues)
        {
            ushort **res = ReverseStringsImpl(*strArray, numValues);

            Marshal.FreeCoTaskMem((IntPtr)(*strArray));
            *strArray = res;
        }
Exemple #2
0
        public static int ReturnAsOutStringArray(int hr, ushort ***ret)
        {
            const int NumBytesInInt = sizeof(int);
            string    str           = hr.ToString();

            *ret = (ushort **)Marshal.AllocCoTaskMem(sizeof(ushort *) * NumBytesInInt);
            for (int i = 0; i < NumBytesInInt; i++)
            {
                (*ret)[i] = (ushort *)Marshal.StringToCoTaskMemUni(str);
            }

            return(hr);
        }
Exemple #3
0
 public static void ReverseStringsAsOut(ushort **strArray, int *numValues, ushort ***res)
 {
     *res = ReverseStringsImpl(strArray, numValues);
 }
Exemple #4
0
 public int GetPhrase([NativeTypeName("BSTR **")] ushort ***ppbstrPhrases, [NativeTypeName("UINT *")] uint *pcCount)
 {
     return(((delegate * unmanaged <ITfInputScope2 *, ushort ***, uint *, int>)(lpVtbl[4]))((ITfInputScope2 *)Unsafe.AsPointer(ref this), ppbstrPhrases, pcCount));
 }
Exemple #5
0
 public HRESULT EnumerateBackgroundTasks([NativeTypeName("LPCWSTR")] ushort *packageFullName, [NativeTypeName("ULONG *")] uint *taskCount, [NativeTypeName("LPCGUID *")] Guid **taskIds, [NativeTypeName("LPCWSTR **")] ushort ***taskNames)
 {
     return(((delegate * unmanaged <IPackageDebugSettings *, ushort *, uint *, Guid **, ushort ***, int>)(lpVtbl[9]))((IPackageDebugSettings *)Unsafe.AsPointer(ref this), packageFullName, taskCount, taskIds, taskNames));
 }
Exemple #6
0
 public HRESULT EnumerateApps([NativeTypeName("LPCWSTR")] ushort *packageFullName, [NativeTypeName("ULONG *")] uint *appCount, [NativeTypeName("LPWSTR **")] ushort ***appUserModelIds, [NativeTypeName("LPWSTR **")] ushort ***appDisplayNames)
 {
     return(((delegate * unmanaged <IPackageDebugSettings2 *, ushort *, uint *, ushort ***, ushort ***, int>)(lpVtbl[18]))((IPackageDebugSettings2 *)Unsafe.AsPointer(ref this), packageFullName, appCount, appUserModelIds, appDisplayNames));
 }
 public static extern unsafe uint DsGetSpnW(DS_SPN_NAME_TYPE ServiceType, ushort *ServiceClass, ushort *ServiceName, ushort InstancePort, ushort cInstanceNames, ushort **pInstanceNames, ushort *pInstancePorts, uint *pcSpn, ushort ***prpszSpn);