Desktop Functions: Smart Device Functions:
|
Search Results for "RESOURCE" in [All]ws2_321: WSACleanup Enums
/// The browse dialog box can display shareable resources on remote systems.
''' The browse dialog box can display shareable resources on remote systems. 3: CSIDL
CSIDL_RESOURCES = 0x0038,
CSIDL_RESOURCES_LOCALIZED = 0x0039,
CSIDL_RESOURCES = &H38
CSIDL_RESOURCES_LOCALIZED = &H39
/** Transform resources of source PE. */
DELTA_FLAG_RESOURCES = (0x00000010), /* flags[ 4 ] */ 5: 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)
LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,
LOAD_LIBRARY_AS_IMAGE_RESOURCE = &H20 7: NtStatus
ResourceDataNotFound = 0xc0000089,
ResourceTypeNotFound = 0xc000008a,
ResourceNameNotFound = 0xc000008b,
ResourceInUse = 0xc0000708, 8: 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> 9: RegType
RegResourceList = 8,
RegFullResourceDescriptor = 9,
RegResourceRequirementsList = 10, 11: ResourceScope 12: ResourceType 13: ResourceUsage 14: SE_OBJECT_TYPE The .NET Framework equivalent is System.Security.AccessControl.ResourceType (http://msdn2.microsoft.com/library/System.Security.AccessControl.ResourceType). 15: 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. 16: 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, httpapi18: HttpTerminate 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. 21: 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> 22: IUIFramework
HRESULT LoadUI(IntPtr instance, [MarshalAs(UnmanagedType.LPWStr)] string resourceName); cfgmgr32
InvalidResourceid = 0x0000000B,
FreeResources = 0x00000029,
SameResources = 0x0000002D, For more resources, references, calling from scripting, download code, etc, see: gdiplus25: GdiplusShutdown wininet26: FtpGetFile
throw new InvalidOperationException(Resources.FTPClient_NoFTPSiteSpecified);
throw new InvalidOperationException(Resources.FTPClient_HDSourceFileDoesNotExist); 27: InternetConnect To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection. rasapi3228: RasHangUp shlwapi
''' 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 = 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. 33: OleCreate
/// <summary> Release unmanaged resources </summary> getuname34: GetUName If you want to obtain (localized) names of Unicode characters, instead calling this function you can also load strings from the same place the function loads them. On Windows 7 it means from file \System32\{Culture}\getuname.dll.mui. ({Culture} is name of culture you want to obtain localized resources for e.g. en-US). An advantage of this approach is that you can choose culture without need to switch current Windows language (Windows Ultimate edition only). ntdll35: PROCESSINFOCLASS
ProcessResourceManagement, 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); 37: NetFileClose
If MsgBox("Are you sure you want to disconnect this resource?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then 38: NetSessionEnum
/// Unable to contact resource. Connection timed out. 39: NetShareGetInfo The NetShareGetInfo function retrieves information about a particular shared resource on a server.
const int NERR_NetNameNotFound = 2310; // This shared resource does not exist. 40: NetUseAdd You can also use the WNetAddConnection2 and WNetAddConnection3 functions to redirect a local device to a network resource. Connections added by NetUseAdd are not shown in the Explorer. You should use one of the WNetAddConnection methods to make the networkdrive visible in the explorer. 41: NetUseDel 42: NetUseEnum user3243: ClipCursor
static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint cbIconBits, bool fIcon, uint dwVersion, int cxDesired, int cyDesired, uint uFlags);
Private Shared Function CreateIconFromResourceEx(pbIconBits As Byte(), cbIconBits As UInteger, fIcon As Boolean, dwVersion As UInteger, cxDesired As Integer, cyDesired As Integer, uFlags As UInteger) As IntPtr
static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint
Public Shared Function CreateIconFromResourceEx(ByVal pbIconBits As Byte(), _
// Free resources used by this Process object.
' Free resources used by this Process object. 47: GetCursorInfo 48: GetGuiResources
static extern uint GetGuiResources(IntPtr hProcess, uint uiFlags);
/// - WIN32 resources (accelerator tables, bitmap resources, dialog box templates, font resources, menu resources, raw data resources, string table entries, message table entries, cursors/icons)
extern public static int GetGuiResources(IntPtr hProcess, int uiFlags);
public static int GetGuiResourcesGDICount()
return GetGuiResources(Process.GetCurrentProcess().Handle, 0);
public static int GetGuiResourcesUserCount()
return GetGuiResources(Process.GetCurrentProcess().Handle, 1); 49: GetIconInfo The hbmColor and hbmMask are pointers to unmanaged data and must be deleted after use. The following code will grab the icon info for a cursor handle and dispose of the unmanaged resources, if needed: 50: GetSystemMetrics Site Resources:51: IsIconic
/// Clean up any resources being used. 52: LoadBitmap
static extern IntPtr LoadBitmap(IntPtr hInstance, long resourceID)
static extern IntPtr LoadBitmap(IntPtr hInstance, int resourceID); 53: LoadIcon For loading icon-resource identified as integer ID
' For loading icon-resource identified as integer ID 54: LoadImage C++/CLI: This solution allows you to load an image from an unmanaged resource in the assembly. In my case I added a .cur file to my .rc. The cursor had an ID of 101. After loading the cursor I assigned it to the Forms::Cursor. To use integer resource ID instead of string, and avoid using MAKEINTRESOURCE, prepend the integer with '#'. For example, to use resource ID 32512, enter "#32512" for lpszName.
LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,
/// <param name="resId">Name of the resource icon that should be loaded. - or to load an image from a managed resource (dll): [System.Drawing.Bitmap.FromResource] 55: LoadString
public String GetStringResource(IntPtr hModuleInstance, uint uiStringID) 56: SetWindowsHookEx
/// Before terminating, an application must call the UnhookWindowsHookEx function to free system resources
/// The global hooks are a shared resource, and installing one affects all applications in the same desktop as 57: SwapMouseButton
/// Clean up any resources being used. 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; winscard60: SCardConnect Cut off search results after 60. Please refine your search. |