Desktop Functions: Smart Device Functions:
|
Search Results for "CharSet" in [All]netapi32
[DllImport("netapi32.dll", CharSet=CharSet.Auto)]
[DllImport("Netapi32.dll", CallingConvention=CallingConvention.Winapi, SetLastError=true, CharSet=CharSet.Auto)]
[DllImport("Netapi32.dll", CallingConvention=CallingConvention.Winapi, SetLastError=true, CharSet=CharSet.Auto)] 3: DsGetDcClose
[DllImport("Netapi32.dll", CharSet = CharSet.Auto, SetLastError = true)] 4: DsGetDcName
[DllImport("Netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[DllImport("Netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] 5: DsGetDcOpen
[DllImport(Netapi32, CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("Netapi32.dll", EntryPoint = "DsGetDcOpenW", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Unicode)]
[DllImport("NetApi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("NetApi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
<DllImport("NetApi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
[DllImport("netapi32.dll", CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] There is no indication that the NetApiBufferFree function sets the last error code, so SetLastError attribute should not be set (this removes extra calls in the interop layer to store the last error code). Also, the CharSet property on the attribute need not be applied either, as there is only one version of this function. 10: NetDfsAdd
[DllImport("Netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] 11: NetDfsEnum
[DllImport("Netapi32.dll", CharSet = CharSet.Auto/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]
<DllImport("Netapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)] 13: NetDfsGetInfo
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode/*, SetLastError=true //Return value (NET_API_STATUS) contains error */)]
<DllImport("Netapi32.dll", CharSet:=CharSet.Unicode, SetLastError:=True)> _ <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _ <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Auto)> _ 14: NetDfsMove
[DllImport("Netapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
<DllImport("Netapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _ 15: NetDfsRemove
[DllImport("Netapi32.dll", CharSet = CharSet.Auto, SetLastError = true)] 16: NetDfsSetInfo
[DllImport("Netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] 17: NetFileClose
[DllImport("netapi32.dll", SetLastError=true, CharSet = CharSet.Unicode)] 18: NetFileEnum
[DllImport("netapi32.dll", SetLastError=true, CharSet=CharSet.Unicode)] 19: NetGetDCName
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]
<DllImport("Netapi32.dll", CharSet:=CharSet.Unicode)> _
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)] 21: NetGroupAdd
[DllImport("NetApi32.dll", CharSet=CharSet.Auto, SetLastError=true)] 22: NetJoinDomain
[DllImport("netapi32.dll", CharSet=CharSet.Unicode)] Be careful to specify CharSet.Unicode as otherwise the strings will be encoded as Ansi whereas the function only supports Unicode.
[DllImport("netapi32.dll", CharSet = CharSet.Unicode)] 23: NetlGroupEnum
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport("NetApi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("netapi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 25: NetLocalGroupDel
[DllImport("NetApi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("NetApi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport("NetAPI32.dll", CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport( "advapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)] private static extern int NetApiBufferFree (System.IntPtr pBuffer);
[DllImport("Netapi32.dll", EntryPoint = "NetRemoteComputerSupports", CharSet = CharSet.Unicode)]
[DllImport("Netapi32.dll", EntryPoint = "NetRemoteComputerSupports", CharSet = CharSet.Unicode)] 31: NetRemoteTOD
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]
<DllImport("netapi32", CharSet:=CharSet.Unicode)> Function NetRemoteTOD( _
CharSet=CharSet.Unicode, ExactSpelling=true,
[DllImport("netapi32.dll", SetLastError=true, CharSet = CharSet.Unicode)]
[DllImport("netapi32.dll", SetLastError=true, CharSet = CharSet.Unicode)]
[DllImport("Netapi32.dll", CharSet = CharSet.Unicode, SetLastError = true)]
<DllImport("Netapi32.dll", CharSet := CharSet.Unicode, SetLastError := True)> _ 34: netserverenum
[DllImport("Netapi32", CharSet = CharSet.Auto, SetLastError = true), SuppressUnmanagedCodeSecurityAttribute]
[DllImport ("Netapi32", CharSet=CharSet.Unicode)] 35: NetServerGetInfo
[DllImport("Netapi32.dll", CharSet=CharSet.Auto, SetLastError=true)]
[DllImport("Netapi32", CharSet = CharSet.Auto, SetLastError = true)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 36: NetSessionDel
[DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 37: NetShareDel
<DllImport("netapi32", CharSet:=CharSet.Unicode)> _ 38: NetShareEnum
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode)]
<DllImport("Netapi32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[DllImport("Netapi32.dll", CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 39: NetShareGetInfo
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)]
[DllImport("Netapi32", CharSet=CharSet.Auto)]
[DllImport("Netapi32", CharSet=CharSet.Auto)] 40: NetStatisticsGet
[DllImport("Netapi32.dll", CharSet = CharSet.Unicode, ExactSpelling = true)] 41: NetUnjoinDomain
[DllImport("netapi32.dll", SetLastError=true, CharSet = CharSet.Auto)]
<DllImport("netapi32.dll", CharSet:=CharSet.Unicode, SetLastError:=True)> _ 42: NetUseAdd
[DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 43: NetUseDel
[DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)] 44: NetUseEnum
[DllImport("NetApi32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Public Structure USE_INFO_2 45: NetUserAdd
[DllImport("netapi32.dll", CharSet=CharSet.Unicode, SetLastError=true)]
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _
[DllImport("netapi32.dll", CharSet=CharSet.Unicode, CallingConvention=CallingConvention.StdCall,
<DllImport("netapi32.dll", CallingConvention:=CallingConvention.StdCall, CharSet:=CharSet.Unicode)> _ 47: NetUserGetGroups
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 48: NetUserGetInfo
[DllImport("Netapi32.dll", CharSet=CharSet.Unicode, ExactSpelling=true)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 50: NetUserModalsGet [DllImport("netapi32.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall, SetLastError = true)] 51: NetUserModalsGet
[DllImport("netapi32.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall, SetLastError = true)] 52: NetUserModalsSet
[DllImport("netapi32.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall, SetLastError = true)] 53: NetUserSetInfo
[DllImport("netapi32.dll", CharSet = CharSet.Unicode)]
[DllImport("netapi32.dll", CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 54: NetValidateName
[DllImport("netapi32.dll", SetLastError=true,CharSet=CharSet.Unicode)]
[DllImport("Netapi32.dll",CharSet=CharSet.Unicode)]
[DllImport("Netapi32.dll",SetLastError=true,CharSet=CharSet.Unicode)]
[DllImport("Netapi32.dll",CharSet=CharSet.Unicode)] 55: NetWkstaGetInfo
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 56: NetWkstaUserEnum
[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError=true)] <DllImport("netapi32.dll", CharSet := CharSet.Unicode, SetLastError:=True)> _
[DllImport("netapi32.dll", CharSet = CharSet.Unicode, SetLastError=true)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] 57: USER_INFO_0
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ 58: USER_INFO_1
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] 59: USER_INFO_2
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> 60: USER_INFO_23
[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)] <StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> _ Cut off search results after 60. Please refine your search. |