Using Win32 functions in Visual FoxPro Image Gallery
Resource
..msdn
BeginUpdateResource
CopyImage
EndUpdateResource
FindResource
LoadImage
LoadResource
LoadString
LockResource
SizeofResource
UpdateResource
Code examples:
Storing registration key in the resources of an executable file
BeginUpdateResource
    Add comment     W32 Constants      Translate this page
The BeginUpdateResource function returns a handle that can be used by the UpdateResource function to add, delete, or replace resources in an executable file.
Code examples:
Storing registration key in the resources of an executable file
Declaration:
 
HANDLE BeginUpdateResource(
    LPCTSTR pFileName,
    BOOL bDeleteExistingResources
);
 
FoxPro declaration:
 
DECLARE INTEGER BeginUpdateResource IN kernel32;
    STRING pFileName,;
    INTEGER bDeleteExistingResources
 
 
Parameters:
pFileName
[in] Pointer to a null-terminated string that specifies the executable file in which to update resources.

bDeleteExistingResources
[in] Specifies whether to delete the pFileName parameter"s existing resources.
Return value:
If the function succeeds, the return value is a handle that can be used by the UpdateResource and EndUpdateResource functions.
My comment:
An application must be able to obtain write access to the executable file; it cannot be currently executing. If pFileName does not specify a full path, the system searches for the file in the current directory.
Word Index links for the BeginUpdateResource :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-05-16 10:30:30
Modified: 2003-05-16 10:33:41
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (23.22.212.158)
3 sec.Example: 'Using FrameRgn for displaying system colors'
6.37 hrs.Example: 'How to write and read Window Properties for the specified window'
6.38 hrs.Example: 'Retrieving a universal form for the drive-based path for a network resource'
8.02 hrs.Function: 'NetFileGetInfo'
8.03 hrs.Example: 'How to retrieve list of system DSNs (Data Source Name) with parameters'
10.44 hrs.Function: 'GetPrivateProfileString'
Function group: 'Registry'
 Example: 'Placing On-screen Alert on top of all windows'
 Function: 'CreateMailslot'
11.71 hrs.Example: 'How to delete all print jobs for a printer'
 
Function group: 'Path'
Google
Advertise here!