Desktop Functions: Smart Device Functions:
|
Search Results for "SID" in [All]xpsprint1: JOA4DUEQG7YUGUDKSCDS574CTKD6PP14CTJ3GI1E10ONP8J5RNBQPG8ELIASBTTWGFPLJBZMO9IT47LQDWG7GJ61GWE8NIU45Q95 TÇÝò'àoün4ªÚB²I´ÛÈZ!l©7Jq¾'¡l¤j Ö&rsiDM(ÅjlöØes«²¼e¶AD¯{gõ¸I¦õ/ÿàËè* &3×v%BO*1ækjM&FÑ{¬ñÕÒ|ÉÆIÏnagâ¶Û:MPÄ/ZJ<ÐG^Ôʱö3ÆÊ;µP;<hN=Á{Ë9TôÌjÛl{¼#:bs½ËU2G©1 ±æó5Jêߺ*ýcXhLýÐï*UÁ;å»wñdAK>§OODñ³føáÄØíåß!°èøï2ó?J3ã·¥¸×æø@tâD]"ÎïlSÉõXɸ26kéáªiQdæ[ Structures2: AI
/// The getaddrinfo will resolve only if a global address is configured. The IPv6 and IPv4 loopback address is not considered a valid global address. This option is only supported on Windows Vista or later. 3: CAPTUREPARMS
/// set to AVSTREAMMASTER_AUDIO, the audio stream is considered the master stream and the video stream
''' member is set to AVSTREAMMASTER_AUDIO, the audio stream is considered the master stream 4: DEBUG_EVENT
public int dwProcessId;
public struct DOT11_BSSID_LIST
IntPtr BSSIDs;
Public Structure DOT11_BSSID_LIST
Public BSSIDs As IntPtr 6: DOT11_SSID
public struct DOT11_SSID
public uint uSSIDLength;
public string ucSSID;
Public Structure DOT11_SSID
Public uSSIDLength As UInteger
Public ucSSID As String
FD_CLSID = 0x00000001,
public Guid clsid;
FD_CLSID = &H1
Public clsid As Guid 8: HEAPENTRY32
internal UInt32 th32ProcessID; 9: HEAPLIST32
internal UInt32 th32ProcessID;
public IntPtr lgrmi2_sid;
public SIDTYPE lgrmi2_sidusage;
// You should already have the HPolicy and SID ready
LsaEnumerateAccountRights(HPolicy, SID, out rightsPtr, out countOfRights); 13: MARGINS 14: MEMORYSTATUS The CLR offer us no way to tell us that memory is getting tight. Many think this API provides the best solution. This is mentioned by Jeffrey Richter in his book 'CLR via C#' ISBN: 0-7356-2163-2. It is useful in determining if your system is under excessive memory load by looking at the dwMemoryLoad member of the MEMORYSTATUSEX structure. If this value is > 80 (per Mr. Richter in his discussion of Garbage Collection), it is an indication that you might want to consider converting some strong references into weak references. Remember that a weakreference type will be collected when Generation 0 is full, so it is not a good technique for caching (as many seem to think). 15: MEMORYSTATUSEX The CLR offer us no way to tell us that memory is getting tight. Many think this API provides the best solution. This is mentioned by Jeffrey Richter in his book 'CLR via C#' ISBN: 0-7356-2163-2. It is useful in determining if your system is under excessive memory load by looking at the dwMemoryLoad member of the MEMORYSTATUSEX structure. If this value is > 80 (per Mr. Richter in his discussion of Garbage Collection), it is an indication that you might want to consider converting some strong references into weak references. Remember that a weakreference type will be collected when Generation 0 is full, so it is not a good technique for caching (as many seem to think).
public uint ProcessId
public uint ProcessId
Public ReadOnly Property ProcessId() As UInteger The winmm dll may not execute properly on 64-bit systems. Consequently, the StructLayout must be Sequential, with CharSet = Ansi, and Pack = 4. This particular type has some special layout considerations (the c union keyword) which typically means developers would use the explicit layout. However, the explicit layout breaks down on 64-bit systems for any type with an IntPtr in the type. Consequently, the C# types have been redesigned to use Sequential layout so that they will automatically adjust to 64-bit systems. This means private fields with public properties which perform the gunky work of making it look like there is a union. 19: NAME_BUFFER Considered Obsolete 20: NCB Considered Obsolete 21: OBJECTDESCRIPTOR
public Guid clsid;
Public clsid As Guid
public UIntPtr UniqueProcessId;
public IntPtr InheritedFromUniqueProcessId;
Public UniqueProcessId As IntPtr
Public InheritedFromUniqueProcessId As IntPtr
public int dwProcessId;
Public dwProcessId As Integer 24: REOBJECT
public Guid clsid;
CLSID clsid;
public IntPtr PSiD; 26: SetServiceStatus PER 'Programming Server-Side Applications for Microsoft Windows 2000' ISBN: 0-7356-0753-227: SID
struct SID_IDENTIFIER_AUTHORITY
public SID_IDENTIFIER_AUTHORITY(byte[] value)
Structure SID_IDENTIFIER_AUTHORITY Used by InitializeSid
struct SID_IDENTIFIER_AUTHORITY
public SID_IDENTIFIER_AUTHORITY(byte[] value)
Structure SID_IDENTIFIER_AUTHORITY Used by InitializeSid 29: STATPROPSETSTG
/// CLSID (GUID) associated with this property set, specified when the property set was initially created
public Guid clsid; 30: TRUSTEE
TRUSTEE_IS_SID,
TRUSTEE_IS_OBJECTS_AND_SID, Is often used as a type inside a USB_NODE_CONNECTION_INFORMATION_EX structure, hence the need for the "Pack=1" This structure is often nested inside the USB_HUB_INFORMATION structure, hence the need for the "pack=1" Often nested inside a USB_NODE_INFORMATION structure There is no Marshal.MemSet method to zero-out the buffer prior to use, so you might consider the following hack 35: USER_INFO
public IntPtr user_sid; // This is a PSID 36: USE_INFO_2
/// <summary>Pointer to a SID structure that contains the security identifier (SID) that uniquely identifies the user.</summary>
public int usri23_user_sid;
Public usri23_user_sid As Integer 37: USE_INFO_23
/// <summary>Pointer to a SID structure that contains the security identifier (SID) that uniquely identifies the user.</summary>
public int usri23_user_sid;
Public usri23_user_sid As Integer 38: USE_INFO_23
/// <summary>Pointer to a SID structure that contains the security identifier (SID) that uniquely identifies the user.</summary>
public int usri23_user_sid;
Public usri23_user_sid As Integer 39: WIN32_FIND_DATA The problem I saw was when the file had no FILETIME information (0) as the file was created on a MAC inside of a ZIP file. When trying to get back to a DateTime using the DateTime.FromFileTimeUtc the DateTime created was 12/31/1979 23:52:50 (seven minutes and ten seconds before 1/1/1980) instead of 1/1/1980 00:00:00. I am in Arizona which always has a seven HOUR offset from GMT so I don't know if that played into the calculation or not (seven minutes vs. seven hours).
/// DOT11_SSID->_DOT11_SSID
public DOT11_SSID dot11Ssid;
public string dot11Bssid;
''' DOT11_SSID->_DOT11_SSID
Public dot11Ssid As DOT11_SSID
Public dot11Bssid As String
public DOT11_SSID[] pDot11Ssid;
public DOT11_BSSID_LIST[] pDesiredBssidList; The history of this shows that IntPtrs for pDot11Ssid and pDesiredBssidList were changed to DOT11_SSID[] and DOT11_LIST[]. Then it should have some kind of explanation about the reason. I think whether to use IntPtr or DOT11_SSID[] etc should be determined by which one you want, "Marshal" or "UnMarshal". Also, DOT11_SSID[] looks to be wrong. It is to point one "SSID" not a series of SSID. Also, it would be great if it explains how to marshal ucSSID in DOT11, because the ucSSID is just ANSI string ( without the terminating '\0'. )
public DOT11_SSID hostedNetworkSSID;
public DOT11_MAC_ADDRESS wlanHostedNetworkBSSID;
// The maximum size of the SSID list supported by this interface.
internal uint dwMaxDesiredSsidListSize;
internal uint dwMaxDesiredBssidListSize; The constructor of this structure "unmarshal" WLAN_INTERFACE_INFO_LIST data obtained by calling WlanEnumInterfaces(). This is a good example on how to marshal pointer-to-pointer case in C++ world ( kind of confusing because in C# or Managed Environment more broadly, it is just reference, so as you can see from the implementation for C#, it is to be treated like just a single pointer case. Also, this example shows how to handle an array for the InterfaceInfo inside of this structure. It needs two level of marshaling and this example shows that. The constructor of this structure "unmarshal" WLAN_INTERFACE_INFO_LIST data obtained by calling WlanEnumInterfaces(). This is a good example on how to marshal pointer-to-pointer case in C++ world ( kind of confusing because in C# or Managed Environment more broadly, it is just reference, so as you can see from the implementation for C#, it is to be treated like just a single pointer case. Also, this example shows how to handle an array for the InterfaceInfo inside of this structure. It needs two level of marshaling and this example shows that. 47: WSAQUERYSET
public IntPtr lpServiceClassId; crypt3248: CryptQueryObject ConstantsGuid CLSID_SecurityManager = new Guid("7b8a2d94-0ac9-11d1-896c-00c04fb6bfc4"); static readonly Guid CLSID_TF_LangBarMgr = new Guid("EBB08C45-6C4A-4FDC-AE53-4EB8C4C7DB8E");
public static Guid GUID_DEVINTERFACE_SIDESHOW = new Guid("152E5811-FEB9-4B00-90F4-D32947AE1681"); 52: MAPI
/// The value of the nEditFields parameter was outside the range of 0 through 4. 53: NERR_
public const int DfsDataIsIdentical = 2681; 54: PROPERTYKEY
public static PropertyKey PKEY_DeviceDisplay_BaselineExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x0000004E); // VT_CLSID
public static PropertyKey PKEY_DeviceDisplay_ExperienceId = new PropertyKey(0x78c34fc8, 0x104a, 0x4aca, 0x9e, 0xa4, 0x52, 0x4d, 0x52, 0x99, 0x6e, 0x57, 0x00000059); // VT_CLSID
public static PropertyKey SENSOR_PROPERTY_TYPE = new PropertyKey(0X7F8383EC, 0XD3EC, 0X495C, 0XA8, 0XCF, 0XB8, 0XBB, 0XE8, 0X5C, 0X29, 0X20, 2); //[VT_CLSID]
public static PropertyKey SENSOR_PROPERTY_PERSISTENT_UNIQUE_ID = new PropertyKey(0X7F8383EC, 0XD3EC, 0X495C, 0XA8, 0XCF, 0XB8, 0XBB, 0XE8, 0X5C, 0X29, 0X20, 5); //[VT_CLSID]
public static PropertyKey PKEY_PROVIDER_CLSID = new PropertyKey(0x84179e61, 0x60f6, 0x4c1c, 0x88, 0xed, 0xf1, 0xc5, 0x31, 0xb3, 0x2b, 0xda, 3);
public static PropertyKey PKEY_CONFIGUI_CLSID = new PropertyKey(0x554b24ea, 0xe8e3, 0x45ba, 0x93, 0x52, 0xdf, 0xb5, 0x61, 0xe1, 0x71, 0xe4, 3);
public static PropertyKey PKEY_WCN_SSID = new PropertyKey(0x88190b8b, 0x4684, 0x11da, 0xa2, 0x6a, 0x00, 0x02, 0xb3, 0x98, 0x8e, 0x81, 0x00000020); // VT_LPWSTR (should be VT_UI1|VT_VECTOR, but that's not supported by IFunctionInstanceCollectionQuery::AddPropertyConstraint)
public static PropertyKey SIDESHOW_CAPABILITY_DEVICE_ID = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 1); // [ VT_LPWSTR ]
public static PropertyKey SIDESHOW_CAPABILITY_SCREEN_TYPE = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 2); // [ VT_I4 ]
public static PropertyKey SIDESHOW_CAPABILITY_SCREEN_WIDTH = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 3); // [ VT_UI2 ]
public static PropertyKey SIDESHOW_CAPABILITY_SCREEN_HEIGHT = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 4); // [ VT_UI2 ]
public static PropertyKey SIDESHOW_CAPABILITY_COLOR_DEPTH = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 5); // [ VT_UI2 ]
public static PropertyKey SIDESHOW_CAPABILITY_COLOR_TYPE = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 6); // [ VT_I4 ]
public static PropertyKey SIDESHOW_CAPABILITY_DATA_CACHE = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 7); // [ VT_BOOL ]
public static PropertyKey SIDESHOW_CAPABILITY_SUPPORTED_LANGUAGES = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 8); // [ VT_LPWSTR ]
public static PropertyKey SIDESHOW_CAPABILITY_CURRENT_LANGUAGE = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 9); // [ VT_LPWSTR ]
public static PropertyKey SIDESHOW_CAPABILITY_SUPPORTED_THEMES = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 10);// [ VT_LPWSTR ]
public static PropertyKey SIDESHOW_CAPABILITY_SUPPORTED_IMAGE_FORMATS = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 14);// [ VT_LPWSTR ]
public static PropertyKey SIDESHOW_CAPABILITY_CLIENT_AREA_WIDTH = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 15);// [ VT_UI2 ]
public static PropertyKey SIDESHOW_CAPABILITY_CLIENT_AREA_HEIGHT = new PropertyKey(0x8abc88a8, 0x857b, 0x4ad7, 0xa3, 0x5a, 0xb5, 0x94, 0x2f, 0x49, 0x2b, 0x99, 16);// [ VT_UI2 ]
public static PropertyKey PKEY_SYSFX_PreMixClsid = new PropertyKey("{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D}",1);
public static PropertyKey PKEY_SYSFX_PostMixClsid = new PropertyKey("{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D}",2);
public static PropertyKey PKEY_SYSFX_UiClsid = new PropertyKey("{D04E05A6-594B-4FB6-A80D-01AF5EED7D1D}",3);
public static PropertyKey PKEY_AudioEndpoint_Ext_UiClsid = new PropertyKey("{1DA5D803-D492-4EDD-8C23-E0C0FFEE7F0E}",1);
static extern IntPtr GetSidSubAuthority(IntPtr sid, UInt32 subAuthorityIndex);
static extern IntPtr GetSidSubAuthorityCount(IntPtr sid);
TokenUser = 1, TokenGroups, TokenPrivileges, TokenOwner, TokenPrimaryGroup, TokenDefaultDacl, TokenSource, TokenType, TokenImpersonationLevel, TokenStatistics, TokenRestrictedSids, TokenSessionId, TokenGroupsAndPrivileges, TokenSessionReference, TokenSandBoxInert, TokenAuditPolicy, TokenOrigin, TokenElevationType, TokenLinkedToken, TokenElevation, TokenHasRestrictions, TokenAccessInformation, TokenVirtualizationAllowed, TokenVirtualizationEnabled,
TokenUIAccess, TokenMandatoryPolicy, TokenLogonSid, MaxTokenInfoClass
IntPtr pSid = Marshal.ReadIntPtr(pb);
int dwIntegrityLevel = Marshal.ReadInt32(GetSidSubAuthority(pSid, (Marshal.ReadByte(GetSidSubAuthorityCount(pSid)) - 1U))); Guid SID_SShellBrowser = new Guid("{000214E2-0000-0000-C000-000000000046}"); 58: WINBASE
public const int FSCTL_FIND_FILES_BY_SID = 0x0009008f; 59: WINERROR
public const int ERROR_NON_ACCOUNT_SID = 1257;
public const int ERROR_NON_DOMAIN_SID = 1258;
public const int ERROR_INVALID_SID = 1337;
public const int ERROR_TOO_MANY_SIDS = 1389;
/// The name or security ID (SID) of the domain specified is inconsistent with the trust information for that domain.
/// The attribute GOVERNSID is missing.
public const int ERROR_DS_GOVERNSID_MISSING = 8410;
/// The source object's SID already exists in destination forest.
public const int ERROR_DS_SRC_SID_EXISTS_IN_FOREST = 8539;
/// Security principal objects can only be created inside domain naming contexts.
/// Two or more components referenced directly or indirectly by the application manifest have the same COM server CLSIDs.
public const int ERROR_SXS_DUPLICATE_CLSID = 14023;
/// Manifest Parse Error : Parameter entities cannot be used inside markup declarations in an internal subset.
public const int CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT = (int)(0x80004024 - 0x100000000);
/// Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.
/// The provided side-by-side configuration is invalid
/// The CLSID was not found in the software installation data in the Active Directory.
/// The owner SID on a per-user subscription doesn't exist
public const int EVENT_E_INVALID_PER_USER_SID = (int)(0x80040207 - 0x100000000);
public const int EVENT_E_PER_USER_SID_NOT_LOGGED_ON = (int)(0x80040210 - 0x100000000);
/// It is illegal to call out while inside message filter.
/// No context is associated with this call. This happens for some custom marshalled calls and on the client side of the call.
public const int CO_E_INVALIDSID = (int)(0x8001012D - 0x100000000);
public const int CO_E_NOMATCHINGSIDFOUND = (int)(0x8001012F - 0x100000000);
/// The system function, LookupAccountSID, failed
public const int CO_E_LOOKUPACCSIDFAILED = (int)(0x80010130 - 0x100000000);
/// The SID filtering operation removed all SIDs.
public const int ERROR_ALL_SIDS_FILTERED = (int)(0xC0090002 - 0x100000000);
/// A security context was deleted before the context was completed. This is considered a logon failure.
/// Tried to reference a part of the file outside the proper range.
/// The component's CLSID is missing or corrupt
public const int COMADMIN_E_NOREGISTRYCLSID = (int)(0x80110411 - 0x100000000);
/// Application file CLSIDs or IIDs do not match corresponding DLLs
public const int COMADMIN_E_CLSIDORIIDMISMATCH = (int)(0x80110418 - 0x100000000);
/// A CLSID with the same GUID as the new application ID is already installed on this machine
public const int COMADMIN_E_APPLID_MATCHES_CLSID = (int)(0x80110446 - 0x100000000);
/// The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.
public const int COMADMIN_E_PROGIDINUSEBYCLSID = (int)(0x80110815 - 0x100000000); oleaut3260: GetActiveObject
static extern int GetActiveObject(ref Guid rclsid, IntPtr pvReserved,
static extern void GetActiveObject(ref Guid rclsid, IntPtr pvReserved,
ByRef rclsid As Guid, pvReserved As IntPtr, _ Cut off search results after 60. Please refine your search. |