Desktop Functions: Smart Device Functions:
|
Search Results for "RESOURCE" in [All]uxtheme
SetSystemVisualStyle(@"C:\WINDOWS\resources\Themes\Luna\Luna.msstyles", "Metallic", "NormalSize", 0);
SetSystemVisualStyle("C:\WINDOWS\resources\Themes\Luna\Luna.msstyles", "Metallic", "NormalSize", 0) ntdll
ProcessResourceManagement, winscard3: SCardConnect
/// <param name="hContext">A handle that identifies the resource manager context. The resource manager context is set by a previous call to the SCardEstablishContext function.</param> httpapishlwapi
''' Determines whether a path string represents a network resource.
''' <returns>Returns TRUE if the string represents a network resource, or FALSE otherwise.</returns> string resourcePath = resourcePath = Environment.ExpandEnvironmentVariables(resourcePath); int result = SHLoadIndirectString(resourcePath, outBuff, -1, IntPtr.Zero); string sWin8ManifestString = Delegates12: EnumResTypeProc misc13: FAQ 14: Helpful Tools
winmm15: PlaySound
/// <summary>name is resource name or atom</summary>
SND_RESOURCE = 0x00040004
''' the resource needed to generate that sound is busy playing
''' SND_FILENAME or SND_RESOURCE.
''' The pszSound parameter is a resource identifier; hmod must
''' identify the instance that contains the resource.
SND_RESOURCE = &H40004 the resources previously set up: Constants17: DI_
/// the function uses the actual resource size. 18: LR_
/// lpszName specifies the image resource in the hinst module. If the image resource is to be loaded by name,
/// the lpszName parameter is a pointer to a null-terminated string that contains the name of the image resource.
/// If the image resource is to be loaded by ordinal, use the MAKEINTRESOURCE macro to convert the image ordinal
/// To pass these constants to the LoadImage function, use the MAKEINTRESOURCE macro. For example, to load the OCR_NORMAL cursor,
/// pass MAKEINTRESOURCE(OCR_NORMAL) as the lpszName parameter and NULL as the hinst parameter.
/// the function uses the actual resource size. If the resource contains multiple images, the function uses the size of the first image.
/// Tries to reload an icon or cursor resource from the original resource file rather than simply copying the current image.
/// This is useful for creating a different-sized copy when the resource file contains multiple sizes of the resource.
/// in the resource file closest to the desired size. This will succeed only if hImage was loaded by LoadIcon or LoadCursor,
public const int LR_COPYFROMRESOURCE = 0x4000;
/// same resource will load the image again and return a different handle.
/// When you use this flag, the system will destroy the resource when it is no longer needed.
/// When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.
/// Windows 95/98/Me: The function finds the first image with the requested resource name in the cache, regardless of the size requested. <Flags()> Public Enum LoadResourceFlags As UInteger
''' lpszName specifies the image resource in the hinst module. If the image resource is to be loaded by name,
''' the lpszName parameter is a pointer to a null-terminated string that contains the name of the image resource.
''' If the image resource is to be loaded by ordinal, use the MAKEINTRESOURCE macro to convert the image ordinal
''' To pass these constants to the LoadImage function, use the MAKEINTRESOURCE macro. For example, to load the OCR_NORMAL cursor,
''' pass MAKEINTRESOURCE(OCR_NORMAL) as the lpszName parameter and NULL as the hinst parameter.
''' the function uses the actual resource size. If the resource contains multiple images, the function uses the size of the first image.
''' Tries to reload an icon or cursor resource from the original resource file rather than simply copying the current image.
''' This is useful for creating a different-sized copy when the resource file contains multiple sizes of the resource.
''' in the resource file closest to the desired size. This will succeed only if hImage was loaded by LoadIcon or LoadCursor,
LR_COPYFROMRESOURCE = &H4000
''' same resource will load the image again and return a different handle.
''' When you use this flag, the system will destroy the resource when it is no longer needed.
''' When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.
''' Windows 95/98/Me: The function finds the first image with the requested resource name in the cache, regardless of the size requested. 19: NERR_
/// <summary> 2105 - A network resource shortage occurred. </summary>
public const int NoNetworkResource = 2105;
/// <summary> 2117 - The operation is invalid on a redirected resource. </summary>
/// <summary> 2119 - The server is currently out of the requested resource. </summary>
/// <summary> 2222 - The resource name could not be found. </summary>
public const int ResourceNotFound = 2222;
/// <summary> 2225 - The resource permission list already exists. </summary>
public const int ResourceExists = 2225;
/// <summary> 2230 - The limit of 64 entries per resource was exceeded. </summary>
/// <summary> 2310 - This shared resource does not exist. </summary>
/// <summary> 2318 - This device cannot be shared as both a spooled and a non-spooled resource. </summary>
/// <summary> 2372 - The system cannot delete current connections to network resources. </summary>
/// <summary> 2392 - The shared resource you are connected to could not be found. </summary>
/// <summary> 2519 - A second connection to a Remoteboot resource is not allowed. </summary> 20: PROPERTYKEY
public static PropertyKey PKEY_Device_ResourcePickerTags = new PropertyKey(0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 12); // DEVPROP_TYPE_STRING
public static PropertyKey PKEY_Device_ResourcePickerExceptions = new PropertyKey(0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 13); // DEVPROP_TYPE_STRING
public static PropertyKey PKEY_Calendar_Resources = new PropertyKey( 0x00F58A38, 0xC54B, 0x4C40, 0x86, 0x96, 0x97, 0x23, 0x59, 0x80, 0xEA, 0xE1, 100);
public static PropertyKey WPD_OBJECT_GENERATE_THUMBNAIL_FROM_RESOURCE = new PropertyKey(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, 24);
public static PropertyKey WPD_APPOINTMENT_RESOURCES = new PropertyKey(0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3, 11);
public static PropertyKey WPD_SECTION_DATA_REFERENCED_OBJECT_RESOURCE = new PropertyKey(0x516AFD2B, 0xC64E, 0x44F0, 0x98, 0xDC, 0xBE, 0xE1, 0xC8, 0x8F, 0x7D, 0x66, 5);
public static PropertyKey WPD_RENDERING_INFORMATION_PROFILE_ENTRY_CREATABLE_RESOURCES = new PropertyKey(0xC53D039F, 0xEE23, 0x4A31, 0x85, 0x90, 0x76, 0x39, 0x87, 0x98, 0x70, 0xB4, 4);
public static PropertyKey WPD_RESOURCE_DEFAULT = new PropertyKey(0xE81E79BE, 0x34F0, 0x41BF, 0xB5, 0x3F, 0xF1, 0xA0, 0x6A, 0xE8, 0x78, 0x42, 0);
public static PropertyKey WPD_RESOURCE_CONTACT_PHOTO = new PropertyKey(0x2C4D6803, 0x80EA, 0x4580, 0xAF, 0x9A, 0x5B, 0xE1, 0xA2, 0x3E, 0xDD, 0xCB, 0);
public static PropertyKey WPD_RESOURCE_THUMBNAIL = new PropertyKey(0xC7C407BA, 0x98FA, 0x46B5, 0x99, 0x60, 0x23, 0xFE, 0xC1, 0x24, 0xCF, 0xDE, 0);
public static PropertyKey WPD_RESOURCE_ICON = new PropertyKey(0xF195FED8, 0xAA28, 0x4EE3, 0xB1, 0x53, 0xE1, 0x82, 0xDD, 0x5E, 0xDC, 0x39, 0);
public static PropertyKey WPD_RESOURCE_AUDIO_CLIP = new PropertyKey(0x3BC13982, 0x85B1, 0x48E0, 0x95, 0xA6, 0x8D, 0x3A, 0xD0, 0x6B, 0xE1, 0x17, 0);
public static PropertyKey WPD_RESOURCE_ALBUM_ART = new PropertyKey(0xF02AA354, 0x2300, 0x4E2D, 0xA1, 0xB9, 0x3B, 0x67, 0x30, 0xF7, 0xFA, 0x21, 0);
public static PropertyKey WPD_RESOURCE_GENERIC = new PropertyKey(0xB9B9F515, 0xBA70, 0x4647, 0x94, 0xDC, 0xFA, 0x49, 0x25, 0xE9, 0x5A, 0x07, 0);
public static PropertyKey WPD_RESOURCE_VIDEO_CLIP = new PropertyKey(0xB566EE42, 0x6368, 0x4290, 0x86, 0x62, 0x70, 0x18, 0x2F, 0xB7, 0x9F, 0x20, 0);
public static PropertyKey WPD_RESOURCE_BRANDING_ART = new PropertyKey(0xB633B1AE, 0x6CAF, 0x4A87, 0x95, 0x89, 0x22, 0xDE, 0xD6, 0xDD, 0x58, 0x99, 0);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_TOTAL_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 2);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_READ = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 3);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_WRITE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 4);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_DELETE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 5);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_OPTIMAL_READ_BUFFER_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 6);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_OPTIMAL_WRITE_BUFFER_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 7);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_FORMAT = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 8);
public static PropertyKey WPD_RESOURCE_ATTRIBUTE_RESOURCE_KEY = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 9);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 2);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_ATTRIBUTES = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 3);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_OPEN = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 4);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_WRITE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 6);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CLOSE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 7);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_DELETE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 8);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CREATE_RESOURCE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 9);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_REVERT = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 10);
public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_SEEK = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 11);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_OBJECT_ID = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1001);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_ACCESS_MODE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1002);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_KEYS = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1003);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_ATTRIBUTES = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1004);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_CONTEXT = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1005);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1006);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1007);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_WRITE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1008);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_WRITTEN = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1009);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_DATA = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1010);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_OPTIMAL_TRANSFER_BUFFER_SIZE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1011);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_SEEK_OFFSET = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1012);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_SEEK_ORIGIN_FLAG = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1013);
public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_POSITION_FROM_START = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1014);
public static PropertyKey WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_READ_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5001);
public static PropertyKey WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_WRITE_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5002);
public static PropertyKey WPDNSE_OBJECT_HAS_CONTACT_PHOTO = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 2); // [ VT_BOOL ] Indicates whether the object has a contact photo resource.
public static PropertyKey WPDNSE_OBJECT_HAS_THUMBNAIL = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 3); // [ VT_BOOL ] Indicates whether the object has a thumbnail resource.
public static PropertyKey WPDNSE_OBJECT_HAS_ICON = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 4); // [ VT_BOOL ] Indicates whether the object has an icon resource.
public static PropertyKey WPDNSE_OBJECT_HAS_AUDIO_CLIP = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 5); // [ VT_BOOL ] Indicates whether the object has a voice annotation resource.
public static PropertyKey WPDNSE_OBJECT_HAS_ALBUM_ART = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 6); // [ VT_BOOL ] Indicates whether the object has an album art resource.
public static PropertyKey WPDNSE_OBJECT_OPTIMAL_READ_BLOCK_SIZE = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 7); // [ VT_UI4 ] The optimal buffer size clients can use to read data chunks of the default resource. 21: RESOURCE
const UInt32 RESOURCE_CONNECTED = 0x00000001;
const UInt32 RESOURCE_GLOBALNET = 0x00000002;
const UInt32 RESOURCE_REMEMBERED = 0x00000003;
const UInt32 RESOURCETYPE_ANY = 0x00000000;
const UInt32 RESOURCETYPE_DISK = 0x00000001;
const UInt32 RESOURCETYPE_PRINT = 0x00000002;
const UInt32 RESOURCEUSAGE_CONNECTABLE = 0x00000001;
const UInt32 RESOURCEUSAGE_CONTAINER = 0x00000002;
const UInt32 RESOURCEUSAGE_RESERVED = 0x80000000;
const UInt32 RESOURCEDISPLAYTYPE_GENERIC = 0x00000000;
const UInt32 RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001;
const UInt32 RESOURCEDISPLAYTYPE_SERVER = 0x00000002;
const UInt32 RESOURCEDISPLAYTYPE_SHARE = 0x00000003;
const UInt32 RESOURCEDISPLAYTYPE_FILE = 0x00000004;
const UInt32 RESOURCEDISPLAYTYPE_GROUP = 0x00000005;
const UInt32 RESOURCEDISPLAYTYPE_TREE = 0x0000000A; 22: WINERROR
/// The specified network resource or device is no longer available.
/// The network resource type is not correct.
/// Not enough resources are available to process this command.
/// The requested resource is in use.
/// The local device name has a remembered connection to another network resource.
/// Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again..
/// Insufficient system resources exist to complete the requested service.
public const int ERROR_NO_SYSTEM_RESOURCES = 1450;
/// Insufficient system resources exist to complete the requested service.
public const int ERROR_NONPAGED_SYSTEM_RESOURCES = 1451;
/// Insufficient system resources exist to complete the requested service.
public const int ERROR_PAGED_SYSTEM_RESOURCES = 1452;
/// Not enough resources are available to complete this operation.
public const int RPC_S_OUT_OF_RESOURCES = 1721;
/// The specified image file did not contain a resource section.
public const int ERROR_RESOURCE_DATA_NOT_FOUND = 1812;
/// The specified resource type cannot be found in the image file.
public const int ERROR_RESOURCE_TYPE_NOT_FOUND = 1813;
/// The specified resource name cannot be found in the image file.
public const int ERROR_RESOURCE_NAME_NOT_FOUND = 1814;
/// The specified resource language ID cannot be found in the image file.
public const int ERROR_RESOURCE_LANG_NOT_FOUND = 1815;
/// A resource required for this operation is disabled.
public const int ERROR_RESOURCE_DISABLED = 4309;
/// The resource required for this operation does not exist.
public const int ERROR_RESOURCE_NOT_PRESENT = 4316;
/// The last remaining item in this group or resource cannot be deleted.
/// The cluster resource cannot be moved to another group because other resources are dependent on it.
public const int ERROR_DEPENDENT_RESOURCE_EXISTS = 5001;
/// The cluster resource dependency cannot be found.
/// The cluster resource cannot be made dependent on the specified resource because it is already dependent.
/// The cluster resource is not online.
public const int ERROR_RESOURCE_NOT_ONLINE = 5004;
/// The cluster resource is not available.
public const int ERROR_RESOURCE_NOT_AVAILABLE = 5006;
/// The cluster resource could not be found.
public const int ERROR_RESOURCE_NOT_FOUND = 5007;
/// The cluster node is not the owner of the resource.
public const int ERROR_HOST_NODE_NOT_RESOURCE_OWNER = 5015;
/// The cluster resource could not be created in the specified resource monitor.
/// The cluster resource could not be brought online by the resource monitor.
/// The operation could not be completed because the cluster resource is online.
public const int ERROR_RESOURCE_ONLINE = 5019;
/// The cluster resource could not be deleted or brought offline because it is the quorum resource.
public const int ERROR_QUORUM_RESOURCE = 5020;
/// The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource.
/// The group or resource is not in the correct state to perform the requested operation.
/// The properties were stored but not all changes will take effect until the next time the resource is brought online.
public const int ERROR_RESOURCE_PROPERTIES_STORED = 5024;
/// The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class.
/// The cluster resource could not be deleted since it is a core resource.
public const int ERROR_CORE_RESOURCE = 5026;
/// The quorum resource failed to come online.
public const int ERROR_QUORUM_RESOURCE_ONLINE_FAILED = 5027;
/// The cluster node failed to take control of the quorum resource because the resource is owned by another active node.
/// A cluster resource failed.
public const int ERROR_RESOURCE_FAILED = 5038;
/// One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network.
/// This operation cannot be performed on the cluster resource as it the quorum resource. You may not bring the quorum resource offline or modify its possible owners list.
/// The cluster quorum resource is not allowed to have any dependencies.
/// The cluster resource cannot be brought online. The owner node cannot run this resource.
public const int ERROR_NODE_CANT_HOST_RESOURCE = 5071;
/// This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor.
public const int ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED = 5076;
/// The specified resource type was not found.
public const int ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND = 5078;
/// The specified node does not support a resource of this type. This may be due to version inconsistencies or due to the absence of the resource DLL on this node.
/// The specified resource name is not supported by this resource DLL. This may be due to a bad (or changed) name supplied to the resource DLL.
/// The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This may happen if the resource is in a pending state.
/// An attempt to modify a resource property failed because it conflicts with another existing property.
public const int ERROR_RESOURCE_PROPERTY_UNCHANGEABLE = 5089;
/// The quorum resource does not contain the quorum log.
/// Two or more parameter values specified for a resource's properties are in conflict.
/// Cross-domain move of non-empty resource groups is not allowed.
public const int ERROR_DS_CANT_MOVE_RESOURCE_GROUP = 8499;
/// Error due to lack of resources.
/// Lack of system resources has required isolated activation to be disabled for the current thread of execution.
/// Another single phase resource manager has already been enlisted in this transaction.
/// The resource manager has requested to be the coordinator (last resource manager) for the transaction.
/// Another single phase resource manager has already been enlisted in this transaction.
/// Instead of committing, the resource heuristically aborted.
/// Instead of aborting, the resource heuristically committed.
/// Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.
/// Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.
/// There is no resource presently associated with this enlistment
public const int XACT_E_NORESOURCE = (int)(0x8004D00C - 0x100000000);
/// The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.
/// The resource manager id is not associated with this transaction or the transaction manager.
/// The indicated unit of work does not match the unit of work expected by the resource manager.
/// The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed
/// Resource manager reenlistment to determine transaction status timed out.
/// The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics
/// The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.
/// The resource manager has performed a single-phase commit of the transaction.
/// The resource manager has requested to be the coordinator (last resource manager) for the transaction.
public const int XACT_S_LASTRESOURCEMANAGER = 0x0004D010;
/// There are insufficient resources to open another file.
/// Could not allocate some required resource (memory, events, ...)
public const int RPC_E_OUT_OF_RESOURCES = (int)(0x80010101 - 0x100000000);
/// OSS ASN.1 Error: System resource error.
/// The Smart card resource manager is not running.
/// The Smart card resource manager has shut down.
/// Cannot create a duplicate resource of type Distributed Transaction Coordinator
public const int MSDTC_E_DUPLICATE_RESOURCE = (int)(0x80110701 - 0x100000000); 23: WM
Enums24: BrowseInfoFlags
/// The browse dialog box can display shareable resources on remote systems.
''' The browse dialog box can display shareable resources on remote systems. 25: CSIDL
CSIDL_RESOURCES = 0x0038,
CSIDL_RESOURCES_LOCALIZED = 0x0039,
CSIDL_RESOURCES = &H38
CSIDL_RESOURCES_LOCALIZED = &H39 26: DELTA_FLAG_TYPE
/** Transform resources of source PE. */
DELTA_FLAG_RESOURCES = (0x00000010), /* flags[ 4 ] */ 27: HRESULT
///Could not allocate some required resource (memory, events, ...)
[Description("Could not allocate some required resource (memory, events, ...)")]
public const int RPC_E_OUT_OF_RESOURCES = unchecked((int)0x80010101);
///There are insufficient resources to open another file.
[Description("There are insufficient resources to open another file.")]
///Another single phase resource manager has already been enlisted in this transaction.
[Description("Another single phase resource manager has already been enlisted in this transaction.")]
///Instead of committing, the resource heuristically aborted.
[Description("Instead of committing, the resource heuristically aborted.")]
///Instead of aborting, the resource heuristically committed.
[Description("Instead of aborting, the resource heuristically committed.")]
///Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.
[Description("Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.")]
///Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.
[Description("Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.")]
///There is no resource presently associated with this enlistment
[Description("There is no resource presently associated with this enlistment")]
public const int XACT_E_NORESOURCE = unchecked((int)0x8004D00C);
///The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.
[Description("The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.")]
///The resource manager id is not associated with this transaction or the transaction manager.
[Description("The resource manager id is not associated with this transaction or the transaction manager.")]
///The indicated unit of work does not match the unit of work expected by the resource manager.
[Description("The indicated unit of work does not match the unit of work expected by the resource manager.")]
///The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed
[Description("The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed")]
///Resource manager reenlistment to determine transaction status timed out.
[Description("Resource manager reenlistment to determine transaction status timed out.")]
///The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics
[Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")]
///The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.
[Description("The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.")]
///The resource manager has performed a single-phase commit of the transaction.
[Description("The resource manager has performed a single-phase commit of the transaction.")]
///The resource manager has requested to be the coordinator (last resource manager) for the transaction.
[Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")]
public const int XACT_S_LASTRESOURCEMANAGER = unchecked((int)0x0004D010);
///OSS ASN.1 Error: System resource error.
[Description("OSS ASN.1 Error: System resource error.")]
///The Smart card resource manager is not running.
[Description("The Smart card resource manager is not running.")]
///The Smart card resource manager has shut down.
[Description("The Smart card resource manager has shut down.")]
///The Smart card resource manager is too busy to complete this operation.
[Description("The Smart card resource manager is too busy to complete this operation.")]
///Cannot create a duplicate resource of type Distributed Transaction Coordinator
[Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")]
public const int MSDTC_E_DUPLICATE_RESOURCE = unchecked((int)0x80110701);
'''Could not allocate some required resource (memory, events, ...)
<Description("Could not allocate some required resource (memory, events, ...)")> _
Public Const RPC_E_OUT_OF_RESOURCES As Integer = CInt(&H80010101UI)
'''There are insufficient resources to open another file.
<Description("There are insufficient resources to open another file.")> _
'''Another single phase resource manager has already been enlisted in this transaction.
<Description("Another single phase resource manager has already been enlisted in this transaction.")> _
'''Instead of committing, the resource heuristically aborted.
<Description("Instead of committing, the resource heuristically aborted.")> _
'''Instead of aborting, the resource heuristically committed.
<Description("Instead of aborting, the resource heuristically committed.")> _
'''Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.
<Description("Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.")> _
'''Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.
<Description("Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.")> _
'''There is no resource presently associated with this enlistment
<Description("There is no resource presently associated with this enlistment")> _
Public Const XACT_E_NORESOURCE As Integer = CInt(&H8004d00cUI)
'''The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.
<Description("The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.")> _
'''The resource manager id is not associated with this transaction or the transaction manager.
<Description("The resource manager id is not associated with this transaction or the transaction manager.")> _
'''The indicated unit of work does not match the unit of work expected by the resource manager.
<Description("The indicated unit of work does not match the unit of work expected by the resource manager.")> _
'''The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed
<Description("The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed")> _
'''Resource manager reenlistment to determine transaction status timed out.
<Description("Resource manager reenlistment to determine transaction status timed out.")> _
'''The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics
<Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")> _
'''The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.
<Description("The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.")> _
'''The resource manager has performed a single-phase commit of the transaction.
<Description("The resource manager has performed a single-phase commit of the transaction.")> _
'''The resource manager has requested to be the coordinator (last resource manager) for the transaction.
<Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")> _
Public Const XACT_S_LASTRESOURCEMANAGER As Integer = CInt(&H4d010)
'''OSS ASN.1 Error: System resource error.
<Description("OSS ASN.1 Error: System resource error.")> _
'''The Smart card resource manager is not running.
<Description("The Smart card resource manager is not running.")> _
'''The Smart card resource manager has shut down.
<Description("The Smart card resource manager has shut down.")> _
'''The Smart card resource manager is too busy to complete this operation.
<Description("The Smart card resource manager is too busy to complete this operation.")> _
'''Cannot create a duplicate resource of type Distributed Transaction Coordinator
<Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")> _
Public Const MSDTC_E_DUPLICATE_RESOURCE As Integer = CInt(&H80110701UI) 28: LoadLibraryFlags
LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,
LOAD_LIBRARY_AS_IMAGE_RESOURCE = &H20 29: NtStatus
ResourceDataNotFound = 0xc0000089,
ResourceTypeNotFound = 0xc000008a,
ResourceNameNotFound = 0xc000008b,
ResourceInUse = 0xc0000708, 30: RasError
/// <summary>641. The server cannot allocate NetBIOS resources needed to support the client. </summary>
ERROR_SERVER_OUT_OF_RESOURCES,
/// <summary>818. The Network Access Protection (NAP) enforcement client could not create system resources for remote access connections. Some network services or resources might not be available. </summary>
ERROR_RASQEC_RESOURCE_CREATION_FAILED,
/// <summary>819. The Network Access Protection Agent (NAP Agent) service has been disabled or is not installed on this computer. Some network services or resources might not be available. </summary>
/// <summary>820. The Network Access Protection (NAP) enforcement client failed to register with the Network Access Protection Agent (NAP Agent) service. Some network services or resources might not be available. </summary>
/// <summary>822. The Network Access Protection (NAP) enforcement client did not respond. Some network services or resources might not be available. </summary> 31: RegType
RegResourceList = 8,
RegFullResourceDescriptor = 9,
RegResourceRequirementsList = 10, 33: ResourceScope 34: ResourceType 35: ResourceUsage 36: SE_OBJECT_TYPE The .NET Framework equivalent is System.Security.AccessControl.ResourceType (http://msdn2.microsoft.com/library/System.Security.AccessControl.ResourceType). 37: SHCONTF
SHCONTF_SHAREABLE = 0x0400, // hint that client is looking sharable resources (remote shares)
SHCONTF_SHAREABLE = &H400 ' hint that client is looking sharable resources (remote shares)
SHAREABLE = &H400 ' . The calling application is looking for resources that can be shared.
FASTITEMS = &H2000 ' . Windows Vista and later ' . The calling application is looking for resources that can be enumerated quickly. 38: WindowsMessages
/// An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
'''An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.
''' pool of font resources.
/// Clean up any resources being used.
wlan_hosted_network_reason_insufficient_resources, rasapi3240: RasHangUp advapi32
const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;
if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))
if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY)) 42: LsaLookupSids
const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;
if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))
if (ret == STATUS_INSUFFICIENT_RESOURCES || ret == STATUS_NO_MEMORY)
if (ret == STATUS_INSUFFICIENT_RESOURCES || ret == STATUS_NO_MEMORY)
if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))
if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY)) 43: OpenThreadToken
//Implement IDisposable. (from Implementing Finalize and Dispose to Clean Up Unmanaged Resources ) 44: RegCloseKey (Special Note: The .NET Framework (3.0 and earlier at least) cannot read registry values of special types (for example: REG_RESOURCE_LIST and REG_FULL_RESOURCE_DESCRIPTOR). I am not sure if they will ever be available under .NET, to see examples of these types of values at work, visit your registry under (HKLM\HARDWARE\DESCRIPTION\System) and (HKLM\HARDWARE\RESOURCEMAP\Hardware Abstraction Layer\ACPI x86 platform). 45: RegGetValue
RegResourceList = 8,
RegFullResourceDescriptor = 9,
RegResourceRequirementsList = 10,
static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);
static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle); Interfaces
void OnLowResource([In] uint reserved);
BINDSTATUS_FINDINGRESOURCE = 1
INET_E_RESOURCE_NOT_FOUND = 0x800C0005,
/// Dispose and free used resources
public void OnLowResource( uint reserved )
case HRESULTS.INET_E_RESOURCE_NOT_FOUND:
Description = "Resource Not Found.";break;
/// Gets the set of properties of the manifest resource with the specified metadata signature.
/// <param name="mdmr">[in] An <c>mdManifestResource</c> token that represents the resource for which to get the properties. </param>
/// <param name="ptkImplementation">[out] A pointer to an <c>mdFile</c> token or an mdAssemblyRef token that represents the file or assembly, respectively, that contains the resource. </param>
/// <param name="pdwOffset">[out] A pointer to a value that specifies the offset to the beginning of the resource within the file.</param>
/// <param name="pdwResourceFlags">[out] A pointer to flags that describe the metadata applied to a resource. The flags value is a combination of one or more <c>CorManifestResourceFlags</c> values.</param>
/// STDMETHOD(GetManifestResourceProps)( // S_OK or error.
/// mdManifestResource mdmr, // [IN] The ManifestResource for which to get the properties.
/// mdToken *ptkImplementation, // [OUT] mdFile or mdAssemblyRef that provides the ManifestResource.
/// DWORD *pdwOffset, // [OUT] Offset to the beginning of the resource within the file.
/// DWORD *pdwResourceFlags) PURE;// [OUT] Flags.
void GetManifestResourceProps(
[Out] out CorManifestResourceFlags pdwResourceFlags);
/// Gets a pointer to an enumerator for the resources referenced in the current assembly manifest.
/// <param name="phEnum">[in, out] A pointer to the enumerator. This must be a null value when the <c>EnumManifestResources</c> method is called for the first time.</param>
/// <param name="rManifestResources">[out] The array used to store the <c>mdManifestResource</c> metadata tokens.</param>
/// <param name="cMax">[in] The maximum number of <c>mdManifestResource</c> tokens that can be placed in <c>rManifestResources</c>.</param>
/// <param name="pcTokens">[out] The number of <c>mdManifestResource</c> tokens actually placed in <c>rManifestResources</c>.</param>
/// STDMETHOD(EnumManifestResources)( // S_OK or error
/// mdManifestResource rManifestResources[], // [OUT] Put ManifestResources here.
/// ULONG cMax, // [IN] Max Resources to put.
void EnumManifestResources(
[Out, MarshalAs(UnmanagedType.LPArray)] uint[] rManifestResources,
/// Gets a pointer to the manifest resource with the specified name.
/// <param name="szName">[in] The name of the resource.</param>
/// <param name="ptkManifestResource">[out] The array used to store the <c>mdManifestResource</c> metadata tokens, each of which represents a manifest resource.</param>
/// STDMETHOD(FindManifestResourceByName)( // S_OK or error
/// LPCWSTR szName, // [IN] Name of the ManifestResource.
/// mdManifestResource *ptkManifestResource) PURE; // [OUT] Put the ManifestResource token here.
void FindManifestResourceByName(
[Out] out uint ptkManifestResource);
ffContainsMetaData = 0x0000, // This is not a resource file
ffContainsNoMetaData = 0x0001, // This is a resource file or other non-metadata-containing file
public enum CorManifestResourceFlags : uint {
mrPublic = 0x0001, // The Resource is exported from the Assembly.
mrPrivate = 0x0002, // The Resource is private to the Assembly. 51: IProgressDialog
/// <param name="hInstAnimation">An instance handle to the module from which the AVI resource should be loaded.</param>
/// <param name="idAnimation">An AVI resource identifier. To create this value, use the MAKEINTRESOURCE macro. The control loads the AVI resource from the module specified by hInstAnimation.</param> 52: IUIFramework
HRESULT LoadUI(IntPtr instance, [MarshalAs(UnmanagedType.LPWStr)] string resourceName); msi
case 5 : return Resources.MsiErrorAccessDenied ;
case 1610: return Resources.MsiErrorBadConfiguration ;
case 1627: return Resources.MsiErrorFunctionFailed ;
case 87: return Resources.MsiErrorInvalidParameter ;
case 234: return Resources.MsiErrorMoreData ;
case 0: return Resources.MsiErrorSuccess ;
case 1605: return Resources.MsiErrorUnknownProduct ;
case 1608: return Resources.MsiErrorUnknownProperty ;
case 1647: return Resources.MsiErrorUnknownPatch ;
return Resources.AgentErrorUnknown;
case 5 : return Resources.MsiErrorAccessDenied ;
case 1610: return Resources.MsiErrorBadConfiguration ;
case 1627: return Resources.MsiErrorFunctionFailed ;
case 87: return Resources.MsiErrorInvalidParameter ;
case 234: return Resources.MsiErrorMoreData ;
case 0: return Resources.MsiErrorSuccess ;
case 1605: return Resources.MsiErrorUnknownProduct ;
case 1608: return Resources.MsiErrorUnknownProperty ;
case 1647: return Resources.MsiErrorUnknownPatch ;
return Resources.AgentErrorUnknown; ole32Setting the delay too short (or zero) can have unintended consequences, as some DLL's will return control before they have finished cleaning up resources, or they will continue executing in the background. Setting the delay too short (or zero) can have unintended consequences, as some DLL's will return control before they have finished cleaning up resources, or they will continue executing in the background. 57: OleCreate
/// <summary> Release unmanaged resources </summary> cards58: cdtTerm netapi32
if (!LookupAccountName(this.ResourceName, this.UserName, Sid, ref cbSid, referencedDomainName, ref cchReferencedDomainName, out sidUse))
if (!LookupAccountName(this.ResourceName, this.UserName, Sid, ref cbSid, referencedDomainName, ref cchReferencedDomainName, out sidUse))
aSystemName.SetTo(this.ResourceName); 60: NetFileClose
If MsgBox("Are you sure you want to disconnect this resource?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then Cut off search results after 60. Please refine your search. |