Problem:
This demo shows how to create and set the properties of a shortcut using the CreateShortcut Win32 API function.
Resolution:
INTRODUCTION
==========
This demo will demonstrate how to create and set the properties of a shortcut using the CreateShortcut method.
SOURCE FILES:
==========
Program Files Description
------------------- -----------------------------------------------------------
wsshortcut.cbl
Application program
Copy Files:
------------------- -----------------------------------------------------------
wintypes.cpy
Resource Files:
------------------- -----------------------------------------------------------
mflogo.bmp
REQUIREMENTS:
==========
To be able to run this sample application you will need to modify the source code where indicated. Namely;
invoke theshortcut "setIconLocation" using z"Drive:\\Location\\mflogo.bmp"
Make the command point to the location of the mflogo.bmp file
OPERATION:
========
Rebuild the application and step thru or run the program.
The expected results will be the creation of a folder called "Stuff" located in the C:\\Documents and Settings\\All Users\\Start Menu\\Programs directory and the addition of a shortcut called "Micro Focus web site" under that folder.
REFERENCES
========
MSDN reference web page on the CreateShortcut method;
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthcreateshortcut.asp
==========================================================
Keywords: demonstration, sample, example, demo, win32 api, createshortcut.zip
demo.ex
demo.ne