Desktop Functions: Smart Device Functions:
|
Search Results for "RESOURCE" in [All]winmm1: 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: getuname3: 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). 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; gdiplususer327: 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. 11: GetCursorInfo
12: 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); 13: 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: 14: GetSystemMetrics Site Resources:15: IsIconic
/// Clean up any resources being used. 16: LoadBitmap
static extern IntPtr LoadBitmap(IntPtr hInstance, long resourceID)
static extern IntPtr LoadBitmap(IntPtr hInstance, int resourceID); 17: LoadIcon For loading icon-resource identified as integer ID
' For loading icon-resource identified as integer ID 18: 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] 19: LoadString
public String GetStringResource(IntPtr hModuleInstance, uint uiStringID) 20: 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 21: SwapMouseButton
/// Clean up any resources being used. odbc3222: SQLBindCol
//Free resources and disconnect 23: SQLFreeHandle
24: SQLFreeStmt
cards25: cdtTerm
hidrapi27: CeCreateFile
coredll28: CreateEvent
''' Releases all resources held by the current WaitEvent. So the device ID is a very useful thing for software that wants to target just your device, e.g. copy protection, or to provide immutable identity to web service calls. Equally so it’s a resource that should be protected to mitigate the risk of identity theft. 30: LoadIcon
31: NOTIFYICONDATA
// Obtains the app icon (the resource number is fixed for all apps) for the current 32: PlaySound
SND_RESOURCE = &H40004 ' name is resource name or atom
SND_RESOURCE = 0x40004, // name is resource name or atom
SND_RESOURCE = 0x40004, // name is resource name or atom
SND_RESOURCE = &H40004 ' name is resource name or atom 33: RegCreateKeyEx The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 34: RegDeleteKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 35: RegDeleteValue The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 36: RegFlushKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 37: RegOpenKeyEx The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 38: RegQueryInfoKey The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource. 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. 41: 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> 42: IUIFramework
HRESULT LoadUI(IntPtr instance, [MarshalAs(UnmanagedType.LPWStr)] string resourceName); Enums43: BrowseInfoFlags
/// The browse dialog box can display shareable resources on remote systems.
''' The browse dialog box can display shareable resources on remote systems. 44: CSIDL
CSIDL_RESOURCES = 0x0038,
CSIDL_RESOURCES_LOCALIZED = 0x0039,
CSIDL_RESOURCES = &H38
CSIDL_RESOURCES_LOCALIZED = &H39 45: DELTA_FLAG_TYPE
/** Transform resources of source PE. */
DELTA_FLAG_RESOURCES = (0x00000010), /* flags[ 4 ] */ 46: 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) 47: LoadLibraryFlags
LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,
LOAD_LIBRARY_AS_IMAGE_RESOURCE = &H20 48: NtStatus
ResourceDataNotFound = 0xc0000089,
ResourceTypeNotFound = 0xc000008a,
ResourceNameNotFound = 0xc000008b,
ResourceInUse = 0xc0000708, 49: 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> 50: RegType
RegResourceList = 8,
RegFullResourceDescriptor = 9,
RegResourceRequirementsList = 10, 52: ResourceScope
53: ResourceType
54: ResourceUsage
55: SE_OBJECT_TYPE The .NET Framework equivalent is System.Security.AccessControl.ResourceType (http://msdn2.microsoft.com/library/System.Security.AccessControl.ResourceType). 56: 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. 57: 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, httpapi59: HttpTerminate
Constants60: DI_
/// the function uses the actual resource size. Cut off search results after 60. Please refine your search. |