Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "SID" in [All]

wlanapi

.

    Console.WriteLine("SSID: " + network.dot11Ssid.ucSSID);

.

public static extern uint WlanScan(IntPtr hClientHandle,ref Guid pInterfaceGuid,IntPtr pDot11Ssid,IntPtr pIeData,IntPtr pReserved);

.

Public Shared Function WlanScan(ByVal hClientHandle As IntPtr, ByRef pInterfaceGuid As Guid, ByVal pDot11Ssid As IntPtr, ByVal pIeData As IntPtr, ByVal pReserved As IntPtr) As UInteger

.

pDot11Ssid : Pointer to a DOT11_SSID structure.

quickusb

.

            LastError = "Unknown error inside WriteData";

.

            LastError = "Unknown error inside WriteData";

ws2_32

.

        // other side until conditional

.

        // enable true conditional accept: connection is not ack-ed to the other side until conditional function returns CF_ACCEPT  

psapi

.

   [MarshalAs(UnmanagedType.LPArray, ArraySubType=UnmanagedType.U4)] [In][Out] UInt32[] processIds,

.

Public Shared Function EnumProcesses(<MarshalAs(UnmanagedType.LPArray, ArraySubType:=UnmanagedType.U4), [In](), [Out]()> ByVal processIds As Integer(), ByVal size As Integer, <[Out]()> ByRef needed As Integer) As Boolean

.

The ArraySubType field for processIds and the entire MarshalAs attribute for bytesCopied are probably unnecessary (since they're the same as the defaults).

.

         [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U4)] [In][Out] UInt32[] processIds,

.

         UInt32[] processIds = new UInt32[arraySize];

.

         bool success = EnumProcesses(processIds, arrayBytesSize, out bytesCopied);

.

         Console.WriteLine("ProcessIds[{0}] = {1}", index, processIds[index]);

.

GetWindowThreadProcessId(hWnd, out pid);

mpr

.

        /// degradation taken into consideration.

gdi32

.

/// The ABC widths of the default character are used for characters outside the range of the currently selected

.

    const int PS_INSIDEFRAME = 6;

.

// ____________ Place the following code inside an event handler: ____________________________

Constants

.

Guid 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");

15: MAPI
.

  /// The value of the nEditFields parameter was outside the range of 0 through 4.

16: NERR_
.

        public const int DfsDataIsIdentical = 2681;

.

    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)));

.
Summary
The maximum supported size in bytes of a SID
.

const int SECURITY_MAX_SID_SIZE = 68;

.

Const SECURITY_MAX_SID_SIZE As Integer = 68

.

Guid SID_SShellBrowser = new Guid("{000214E2-0000-0000-C000-000000000046}");

.

public const int FSCTL_FIND_FILES_BY_SID = 0x0009008f;

.

        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);

Enums

23: CSIDL
.

enum CSIDL {

.

    CSIDL_ADMINTOOLS        = 0x0030,

.

    CSIDL_ALTSTARTUP        = 0x001d,

.

    CSIDL_APPDATA           = 0x001a,

.

    CSIDL_BITBUCKET         = 0x000a,

.

    CSIDL_CDBURN_AREA           = 0x003b,

.

    CSIDL_COMMON_ADMINTOOLS     = 0x002f,

.

    CSIDL_COMMON_ALTSTARTUP     = 0x001e,

.

    CSIDL_COMMON_APPDATA        = 0x0023,

.

    CSIDL_COMMON_DESKTOPDIRECTORY   = 0x0019,

.

    CSIDL_COMMON_DOCUMENTS      = 0x002e,

.

    CSIDL_COMMON_FAVORITES      = 0x001f,

.

    CSIDL_COMMON_MUSIC          = 0x0035,

.

    CSIDL_COMMON_OEM_LINKS      = 0x003a,

.

    CSIDL_COMMON_PICTURES       = 0x0036,

.

    CSIDL_COMMON_PROGRAMS       = 0X0017,

.

    CSIDL_COMMON_STARTMENU      = 0x0016,

.

    CSIDL_COMMON_STARTUP        = 0x0018,

.

    CSIDL_COMMON_TEMPLATES      = 0x002d,

.

    CSIDL_COMMON_VIDEO          = 0x0037,

.

    CSIDL_COMPUTERSNEARME       = 0x003d,

.

    CSIDL_CONNECTIONS           = 0x0031,

.

    CSIDL_CONTROLS          = 0x0003,

.

    CSIDL_COOKIES           = 0x0021,

.

    CSIDL_DESKTOP           = 0x0000,

.

    CSIDL_DESKTOPDIRECTORY      = 0x0010,

.

    CSIDL_DRIVES            = 0x0011,

.

    CSIDL_FAVORITES         = 0x0006,

.

    CSIDL_FLAG_CREATE           = 0x8000,

.

    CSIDL_FLAG_DONT_VERIFY      = 0x4000,

.

    CSIDL_FLAG_MASK         = 0xFF00,

.

    CSIDL_FLAG_NO_ALIAS         = 0x1000,

.

    CSIDL_FLAG_PER_USER_INIT    = 0x0800,

.

    CSIDL_FONTS             = 0x0014,

.

    CSIDL_HISTORY           = 0x0022,

.

    CSIDL_INTERNET          = 0x0001,

.

    CSIDL_INTERNET_CACHE        = 0x0020,

.

    CSIDL_LOCAL_APPDATA         = 0x001c,

.

    CSIDL_MYDOCUMENTS           = 0x000c,

.

    CSIDL_MYMUSIC           = 0x000d,

.

    CSIDL_MYPICTURES        = 0x0027,

.

    CSIDL_MYVIDEO           = 0x000e,

.

    CSIDL_NETHOOD           = 0x0013,

.

    CSIDL_NETWORK           = 0x0012,

.

    CSIDL_PERSONAL          = 0x0005,

.

    CSIDL_PRINTERS          = 0x0004,

.

    CSIDL_PRINTHOOD         = 0x001b,

.

    CSIDL_PROFILE           = 0x0028,

.

    CSIDL_PROGRAM_FILES         = 0x0026,

.

    CSIDL_PROGRAM_FILES_COMMON      = 0x002b,

.

    CSIDL_PROGRAM_FILES_COMMONX86   = 0x002c,

.

    CSIDL_PROGRAM_FILESX86      = 0x002a,

.

    CSIDL_PROGRAMS          = 0x0002,

.

    CSIDL_RECENT            = 0x0008,

.

    CSIDL_RESOURCES         = 0x0038,

.

    CSIDL_RESOURCES_LOCALIZED       = 0x0039,

.

    CSIDL_SENDTO            = 0x0009,

.

    CSIDL_STARTMENU         = 0x000b,

.

    CSIDL_STARTUP           = 0x0007,

.

    CSIDL_SYSTEM            = 0x0025,

.

    CSIDL_SYSTEMX86         = 0x0029,

.

    CSIDL_TEMPLATES         = 0x0015,

.

    CSIDL_WINDOWS           = 0x0024  

.

Enum CSIDL

.

    CSIDL_ADMINTOOLS = &H30

.

    CSIDL_ALTSTARTUP = &H1D

.

    CSIDL_APPDATA = &H1A

.

    CSIDL_BITBUCKET = &HA

.

    CSIDL_CDBURN_AREA = &H3B

.

    CSIDL_COMMON_ADMINTOOLS = &H2F

.

    CSIDL_COMMON_ALTSTARTUP = &H1E

.

    CSIDL_COMMON_APPDATA = &H23

.

    CSIDL_COMMON_DESKTOPDIRECTORY = &H19

.

    CSIDL_COMMON_DOCUMENTS = &H2E

.

    CSIDL_COMMON_FAVORITES = &H1F

.

    CSIDL_COMMON_MUSIC = &H35

.

    CSIDL_COMMON_OEM_LINKS = &H3A

.

    CSIDL_COMMON_PICTURES = &H36

.

    CSIDL_COMMON_PROGRAMS = &H17

.

    CSIDL_COMMON_STARTMENU = &H16

.

    CSIDL_COMMON_STARTUP = &H18

.

    CSIDL_COMMON_TEMPLATES = &H2D

.

    CSIDL_COMMON_VIDEO = &H37

.

    CSIDL_COMPUTERSNEARME = &H3D

.

    CSIDL_CONNECTIONS = &H31

.

    CSIDL_CONTROLS = &H3

.

    CSIDL_COOKIES = &H21

.

    CSIDL_DESKTOP = &H0

.

    CSIDL_DESKTOPDIRECTORY = &H10

.

    CSIDL_DRIVES = &H11

.

    CSIDL_FAVORITES = &H6

.

    CSIDL_FLAG_CREATE = &H8000

.

    CSIDL_FLAG_DONT_VERIFY = &H4000

.

    CSIDL_FLAG_MASK = &HFF00

.

    CSIDL_FLAG_NO_ALIAS = &H1000

.

    CSIDL_FLAG_PER_USER_INIT = &H800

.

    CSIDL_FONTS = &H14

.

    CSIDL_HISTORY = &H22

.

    CSIDL_INTERNET = &H1

.

    CSIDL_INTERNET_CACHE = &H20

.

    CSIDL_LOCAL_APPDATA = &H1C

.

    CSIDL_MYDOCUMENTS = &HC

.

    CSIDL_MYMUSIC = &HD

.

    CSIDL_MYPICTURES = &H27

.

    CSIDL_MYVIDEO = &HE

.

    CSIDL_NETHOOD = &H13

.

    CSIDL_NETWORK = &H12

.

    CSIDL_PERSONAL = &H5

.

    CSIDL_PRINTERS = &H4

.

    CSIDL_PRINTHOOD = &H1B

.

    CSIDL_PROFILE = &H28

.

    CSIDL_PROGRAM_FILES = &H26

.

    CSIDL_PROGRAM_FILES_COMMON = &H2B

.

    CSIDL_PROGRAM_FILES_COMMONX86 = &H2C

.

    CSIDL_PROGRAM_FILESX86 = &H2A

.

    CSIDL_PROGRAMS = &H2

.

    CSIDL_RECENT = &H8

.

    CSIDL_RESOURCES = &H38

.

    CSIDL_RESOURCES_LOCALIZED = &H39

.

    CSIDL_SENDTO = &H9

.

    CSIDL_STARTMENU = &HB

.

    CSIDL_STARTUP = &H7

.

    CSIDL_SYSTEM = &H25

.

    CSIDL_SYSTEMX86 = &H29

.

    CSIDL_TEMPLATES = &H15

.

    CSIDL_WINDOWS = &H24

.
Documentation
[CSIDL] on MSDN
24: DM
.

/// Selects duplex or double-sided printing for printers capable of duplex printing.

25: DMDUP
.

/// Selects duplex or double-sided printing for printers capable of duplex printing.

.

  // domain object resides in.  Thus DS_NAME_RESULT_ITEM?.pDomain

.

  // This is the string representation of a SID.  Invalid for formatDesired.

.

  // See sddl.h for SID binary <--> text conversion routines.

.

  DS_SID_OR_SID_HISTORY_NAME = 11,

.

    public const int CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT = unchecked((int)0x80004024);

.

    ///Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.

.

    [Description("Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.")]

.

    ///The provided side-by-side configuration is invalid

.

    [Description("The provided side-by-side configuration is invalid")]

.

    ///It is illegal to call out while inside message filter.

.

    [Description("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.

.

    [Description("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 = unchecked((int)0x8001012D);

.

    public const int CO_E_NOMATCHINGSIDFOUND = unchecked((int)0x8001012F);

.

    ///The system function, LookupAccountSID, failed

.

    [Description("The system function, LookupAccountSID, failed")]

.

    public const int CO_E_LOOKUPACCSIDFAILED = unchecked((int)0x80010130);

.

    ///The CLSID was not found in the software installation data in the Active Directory.

.

    [Description("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

.

    [Description("The owner SID on a per-user subscription doesn't exist")]

.

    public const int EVENT_E_INVALID_PER_USER_SID = unchecked((int)0x80040207);

.

    public const int EVENT_E_PER_USER_SID_NOT_LOGGED_ON = unchecked((int)0x80040210);

.

    ///The SID filtering operation removed all SIDs.

.

    [Description("The SID filtering operation removed all SIDs.")]

.

    public const int ERROR_ALL_SIDS_FILTERED = unchecked((int)0xC0090002);

.

    ///A security context was deleted before the context was completed.  This is considered a logon failure.

.

    [Description("A security context was deleted before the context was completed.  This is considered a logon failure.")]

.

    ///An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm.  This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list.  Please contact your administrator.

.

    [Description("An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm.  This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list.  Please contact your administrator.")]

.

    ///Tried to reference a part of the file outside the proper range.

.

    [Description("Tried to reference a part of the file outside the proper range.")]

.

    ///The component's CLSID is missing or corrupt

.

    [Description("The component's CLSID is missing or corrupt")]

.

    public const int COMADMIN_E_NOREGISTRYCLSID = unchecked((int)0x80110411);

.

    ///Application file CLSIDs or IIDs do not match corresponding DLLs

.

    [Description("Application file CLSIDs or IIDs do not match corresponding DLLs")]

.

    public const int COMADMIN_E_CLSIDORIIDMISMATCH = unchecked((int)0x80110418);

.

    ///A CLSID with the same GUID as the new application ID is already installed on this machine

.

    [Description("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 = unchecked((int)0x80110446);

.

    ///The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.

.

    [Description("The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.")]

.

    public const int COMADMIN_E_PROGIDINUSEBYCLSID = unchecked((int)0x80110815);

.

    Public Const CO_E_ATTEMPT_TO_CREATE_OUTSIDE_CLIENT_CONTEXT As Integer = CInt(&H80004024UI)

.

    '''Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.

.

    <Description("Unable to complete the call since there is no COM+ security context inside IObjectControl.Activate.")> _

.

    '''The provided side-by-side configuration is invalid

.

    <Description("The provided side-by-side configuration is invalid")> _

.

    '''It is illegal to call out while inside message filter.

.

    <Description("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.

.

    <Description("No context is associated with this call. This happens for some custom marshalled calls and on the client side of the call.")> _

.

    Public Const CO_E_INVALIDSID As Integer = CInt(&H8001012dUI)

.

    Public Const CO_E_NOMATCHINGSIDFOUND As Integer = CInt(&H8001012fUI)

.

    '''The system function, LookupAccountSID, failed

.

    <Description("The system function, LookupAccountSID, failed")> _

.

    Public Const CO_E_LOOKUPACCSIDFAILED As Integer = CInt(&H80010130UI)

.

    '''The CLSID was not found in the software installation data in the Active Directory.

.

    <Description("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

.

    <Description("The owner SID on a per-user subscription doesn't exist")> _

.

    Public Const EVENT_E_INVALID_PER_USER_SID As Integer = CInt(&H80040207UI)

.

    Public Const EVENT_E_PER_USER_SID_NOT_LOGGED_ON As Integer = CInt(&H80040210UI)

.

    '''The SID filtering operation removed all SIDs.

.

    <Description("The SID filtering operation removed all SIDs.")> _

.

    Public Const ERROR_ALL_SIDS_FILTERED As Integer = CInt(&Hc0090002UI)

.

    '''A security context was deleted before the context was completed.  This is considered a logon failure.

.

    <Description("A security context was deleted before the context was completed.  This is considered a logon failure.")> _

.

    '''An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm.  This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list.  Please contact your administrator.

.

    <Description("An attempt was made by this server to make a Kerberos constrained delegation request for a target outside of the server's realm.  This is not supported, and indicates a misconfiguration on this server's allowed to delegate to list.  Please contact your administrator.")> _

.

    '''Tried to reference a part of the file outside the proper range.

.

    <Description("Tried to reference a part of the file outside the proper range.")> _

.

    '''The component's CLSID is missing or corrupt

.

    <Description("The component's CLSID is missing or corrupt")> _

.

    Public Const COMADMIN_E_NOREGISTRYCLSID As Integer = CInt(&H80110411UI)

.

    '''Application file CLSIDs or IIDs do not match corresponding DLLs

.

    <Description("Application file CLSIDs or IIDs do not match corresponding DLLs")> _

.

    Public Const COMADMIN_E_CLSIDORIIDMISMATCH As Integer = CInt(&H80110418UI)

.

    '''A CLSID with the same GUID as the new application ID is already installed on this machine

.

    <Description("A CLSID with the same GUID as the new application ID is already installed on this machine")> _

.

    Public Const COMADMIN_E_APPLID_MATCHES_CLSID As Integer = CInt(&H80110446UI)

.

    '''The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.

.

    <Description("The ProgID provided to the copy operation is invalid. The ProgID is in use by another registered CLSID.")> _

.

    Public Const COMADMIN_E_PROGIDINUSEBYCLSID As Integer = CInt(&H80110815UI)

.

   /// or the carriage return and line feed in combination should be considered

.

    '   or the carriage return and line feed in combination should be considered

.

This is the command you would use for an uninstaller program, a program to delete itself. If you set the first parameter to a directory everything inside of the directory can be (re)moved. To delete set the second parameter to null.

.

    InvalidSid = 0xc0000078,

.

    PS_INSIDEFRAME      = 6,// Normally when the edge is drawn, it’s centred on the outer edge meaning that half the width of the pen is drawn

.

        // outside the shape’s edge, half is inside the shape’s edge. When PS_INSIDEFRAME is specified the edge is drawn

.

        //completely inside the outer edge of the shape.

.

    PS_INSIDEFRAME = 6

.

    ' outside the shape’s edge, half is inside the shape’s edge. When PS_INSIDEFRAME is specified the edge is drawn

.

    'completely inside the outer edge of the shape.

.

    /// Application detected stopped by outside action.

.

The size of the structure in C is not defined (because it is a bitfield) and will vary from compiler to compiler. It is 32 bits on Windows XP, but it is possible that the size is 64 bits on Windows 64 (not tested). Therefore use long for the type of the enum to be on the safe side.

.
Summary
.

enum SID_NAME_USE  {

.

    SidTypeUser = 1,

.

    SidTypeGroup,

.

    SidTypeDomain,

.

    SidTypeAlias,

.

    SidTypeWellKnownGroup,

.

    SidTypeDeletedAccount,

.

    SidTypeInvalid,

.

    SidTypeUnknown,

.

    SidTypeComputer

.

Enum SID_NAME_USE

.
Documentation
SID_NAME_USE @msdn on MSDN
.
Summary
The SID_NAME_USE enumeration type contains values that specify the type of a security identifier (SID).
.

enum SID_NAME_USE {

.

    SidTypeUser = 1,

.

    SidTypeGroup,

.

    SidTypeDomain,

.

    SidTypeAlias,

.

    SidTypeWellKnownGroup,

.

    SidTypeDeletedAccount,

.

    SidTypeInvalid,

.

    SidTypeUnknown,

.

    SidTypeComputer

.

Enum SID_NAME_USE As Integer

.

     SidTypeUser = 1

.

     SidTypeGroup

.

     SidTypeDomain

.

     SidTypeAlias

.

     SidTypeWellKnownGroup

.

     SidTypeDeletedAccount

.

     SidTypeInvalid

.

     SidTypeUnknown

.

     SidTypeComputer

.
Documentation
[SID_NAME_USE] on MSDN
.

SizingWindowSide Enumeration

.

This enumeration specifies what side of a form is being resized when the WM_SIZING notification when it is sent to a window.

.

/// <summary>When resizing a window, this is the side of the window being resized.</summary>

.

protected enum SizingWindowSide : uint

.

Enum SizingWindowSide

.

        [MarshalAs(UnmanagedType.ByValArray)] public SID_AND_ATTRIBUTES[] Groups;

.

    public struct SID_AND_ATTRIBUTES {

.

        public IntPtr Sid;

.

        /// to consider the two clicks a double-click. The two clicks must also occur within a specified time.

.

        /// The number of pixels on either side of a mouse-down point that the mouse pointer can move before a drag operation begins.

.

        /// The SM_XVIRTUALSCREEN metric is the coordinates for the left side of the virtual screen.

.

        /// The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider

.

        /// The coordinates for the left side of the virtual screen. The virtual screen is the bounding rectangle of all display monitors.

.

    ''' Width of the rectangle around the location of a first click in a double-click sequence in pixels. The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click

.

    ''' Height of the rectangle around the location of a first click in a double-click sequence in pixels. The second click must occur within the rectangle defined by SM_CXDOUBLECLK and SM_CYDOUBLECLK for the system to consider the two clicks a double-click. (The two clicks must also occur within a specified time.)

.

    /// The buffer receives a TOKEN_OWNER structure that contains the default owner security identifier (SID) for newly created objects.

.

    /// The buffer receives a TOKEN_PRIMARY_GROUP structure that contains the default primary group SID for newly created objects.

.

    /// The buffer receives a TOKEN_GROUPS structure that contains the list of restricting SIDs in a restricted token.

.

    TokenRestrictedSids,

.

    /// The buffer receives a TOKEN_GROUPS_AND_PRIVILEGES structure that contains the user SID, the group accounts, the restricted SIDs, and the authentication ID associated with the token.

.

    /// The buffer receives the token's logon security identifier (SID).

.

    TokenLogonSid,

.

    TokenRestrictedSids

.

    TokenLogonSid

.

   TRUSTEE_IS_SID,

.

   TRUSTEE_IS_OBJECTS_AND_SID,

.

    TRUSTEE_IS_SID

.

    TRUSTEE_IS_OBJECTS_AND_SID

.

        VT_CLSID = 72,

.
Summary
.

enum WELL_KNOWN_SID_TYPE

.

    WinNullSid                  = 0,

.

    WinWorldSid                 = 1,

.

    WinLocalSid                 = 2,

.

    WinCreatorOwnerSid              = 3,

.

    WinCreatorGroupSid              = 4,

.

    WinCreatorOwnerServerSid            = 5,

.

    WinCreatorGroupServerSid            = 6,

.

    WinNtAuthoritySid               = 7,

.

    WinDialupSid                = 8,

.

    WinNetworkSid                   = 9,

.

    WinBatchSid                 = 10,

.

    WinInteractiveSid               = 11,

.

    WinServiceSid                   = 12,

.

    WinAnonymousSid                 = 13,

.

    WinProxySid                 = 14,

.

    WinEnterpriseControllersSid         = 15,

.

    WinSelfSid                  = 16,

.

    WinAuthenticatedUserSid             = 17,

.

    WinRestrictedCodeSid            = 18,

.

    WinTerminalServerSid            = 19,

.

    WinRemoteLogonIdSid             = 20,

.

    WinLogonIdsSid                  = 21,

.

    WinLocalSystemSid               = 22,

.

    WinLocalServiceSid              = 23,

.

    WinNetworkServiceSid            = 24,

.

    WinBuiltinDomainSid             = 25,

.

    WinBuiltinAdministratorsSid         = 26,

.

    WinBuiltinUsersSid              = 27,

.

    WinBuiltinGuestsSid             = 28,

.

    WinBuiltinPowerUsersSid             = 29,

.

    WinBuiltinAccountOperatorsSid           = 30,

.

    WinBuiltinSystemOperatorsSid        = 31,

.

    WinBuiltinPrintOperatorsSid         = 32,

.

    WinBuiltinBackupOperatorsSid        = 33,

.

    WinBuiltinReplicatorSid             = 34,

.

    WinBuiltinPreWindows2000CompatibleAccessSid = 35,

.

    WinBuiltinRemoteDesktopUsersSid         = 36,

.

    WinBuiltinNetworkConfigurationOperatorsSid  = 37,

.

    WinAccountAdministratorSid          = 38,

.

    WinAccountGuestSid              = 39,

.

    WinAccountKrbtgtSid             = 40,

.

    WinAccountDomainAdminsSid           = 41,

.

    WinAccountDomainUsersSid            = 42,

.

    WinAccountDomainGuestsSid           = 43,

.

    WinAccountComputersSid              = 44,

.

    WinAccountControllersSid            = 45,

.

    WinAccountCertAdminsSid             = 46,

.

    WinAccountSchemaAdminsSid           = 47,

.

    WinAccountEnterpriseAdminsSid           = 48,

.

    WinAccountPolicyAdminsSid           = 49,

.

    WinAccountRasAndIasServersSid           = 50,

.

    WinNTLMAuthenticationSid            = 51,

.

    WinDigestAuthenticationSid          = 52,

.

    WinSChannelAuthenticationSid        = 53,

.

    WinThisOrganizationSid              = 54,

.

    WinOtherOrganizationSid             = 55,

.

    WinBuiltinIncomingForestTrustBuildersSid    = 56,

.

    WinBuiltinPerfMonitoringUsersSid        = 57,

.

    WinBuiltinPerfLoggingUsersSid           = 58,

.

    WinBuiltinAuthorizationAccessSid        = 59,

.

    WinBuiltinTerminalServerLicenseServersSid   = 60,

.

You may want to use the custom-built SizingWindowSide enumeration for the wParam passed in with this message.

.

     WTSIdleTime,

.

    WTSIdleTime

.

     WTSIdleTime,

.

    WTSIdleTime

secur32

.

Inside we both know what's been going on

.

    string _sAccountName =  WindowsIdentity.GetCurrent().Name;

.

    public IntPtr PSiD;

.

      if (data.PSiD != IntPtr.Zero)

.

      System.Security.Principal.SecurityIdentifier sid = new System.Security.Principal.SecurityIdentifier(data.PSiD);

.

                public System.Security.Principal.WindowsIdentity BuildIdentity()

.

                    System.Security.Principal.WindowsIdentity retVal = new System.Security.Principal.WindowsIdentity(m_hToken);

.

        /// <returns>Returns a <c>System.Security.Principal.WindowsIdentity</c> object</returns>

.

        public static System.Security.Principal.WindowsIdentity CreateIdentityS4U(System.Net.NetworkCredential credential, WinLogonType logonType)

.

System.Security.Principal.WindowsIdentity has a constructor that you can use if you know the user's principal name (UPN). It does not work however for domain\username.

shlwapi

.

   ref Guid clsid,

.

   INIT_NOREMAPCLSID = 0x00000001,

.

   MSIDESCRIPTOR = 1,

.

static Guid CLSID_QueryAssociations = new Guid("a07034fd-6caa-4954-ac3f-97a27216f98a");

.

     ref CLSID_QueryAssociations,

.

    Init_NoRemapCLSID = 0x1,

.
Summary
This interface describes the API implemented by preview handlers. When a handler for a given file type is installed on a system, the shell or custom apps can use it to display the contents of these files in their window. Preview handlers usually do not allow in-place editing and may not display all the information contained in the file (for example, macros inside Office documents are ignored by their preview handlers)
54: IsOS
.

     /// Administration mode. Consider using a more specific value such as

.
Summary
PathIsFileSpec - Searches a path for any path-delimiting characters, if there are no path-delimiting characters present, the path is considered to be a File Spec path.
.

/// If there are no path-delimiting characters present, the path is considered to be a File Spec path.

.

''' If there are no path-delimiting characters present, the path is considered to be a File Spec path.

.

    ''' For example, let the starting point, pszFrom, be "c:\FolderA\FolderB\FolderC", and the ending point, pszTo, be "c:\FolderA\FolderD\FolderE". PathRelativePathTo will return the relative path from pszFrom to pszTo as: "..\..\FolderD\FolderE". You will get the same result if you set pszFrom to "\FolderA\FolderB\FolderC" and pszTo to "\FolderA\FolderD\FolderE". On the other hand, "c:\FolderA\FolderB" and "a:\FolderA\FolderD do not share a common prefix, and the function will fail. Note that "\\" is not considered a prefix and is ignored. If you set pszFrom to "\\FolderA\FolderB", and pszTo to "\\FolderC\FolderD", the function will fail.

ntdsapi

.

      // domain object resides in.  Thus DS_NAME_RESULT_ITEM?.pDomain

.

      // This is the string representation of a SID.  Invalid for formatDesired.

.

      // See sddl.h for SID binary <--> text conversion routines.

.

      DS_SID_OR_SID_HISTORY_NAME = 11,

msi

.

static extern int MsiDatabaseCommit(IntPtr hDatabase);

.

Declare Function MsiDatabaseCommit Lib "msi.dll" (TODO) As TODO

.
Documentation
[MsiDatabaseCommit] on MSDN
.

static extern int MsiDatabaseOpenView(IntPtr hDatabase, [MarshalAs(UnmanagedType.LPWStr)] string szQuery, out IntPtr phView);

.

Declare Function MsiDatabaseOpenView Lib "msi.dll" (TODO) As TODO

.
Documentation
[MsiDatabaseOpenView] on MSDN
.

static extern int MsiDoAction(IntPtr hInstall, string szAction);

.
Documentation
[MsiDoAction] on MSDN

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: