Unit GroupTyp

Classes

Functions

ExtractCmdLine - ** ExtractCmdLine ** What does it do?: This function takes the input from the pszCmdLine ** argument and retrieves the Executable File Name & Path ** and Returns it to the Calling Routine.
ParseGroupItems - ** There are two main functions, ParseGroupItems and ExtractCmdLine.

Types

TGroupInfo_t

Constants

Variables


Functions


Function ExtractCmdLine(pszCmdLine: string): String;

** ExtractCmdLine ** What does it do?: This function takes the input from the pszCmdLine ** argument and retrieves the Executable File Name & Path ** and Returns it to the Calling Routine. ** ** Arguments: ** Name: pszCmdLIne ** Type: String ** Why: This represents the command line you ** want to parse. For Instance, if the ** Command Line Value looks like this: ** ** c:\win95\notepad c:\documents\rigsby.txt ** ** Where c:\win95\notepad is the program ** and c:\documents\rigsby.txt is a parameter ** being passed to it, this function will ** pluck out the c:\win95\notepad and ** return it to the calling routine. ** ** Returns: STRING: representing the program name. ** ** Notes: For those with special needs, this routine may be ** modified to pass the Parameters back as well in a ** var parameter. Since the function know where the parms ** start, it would be just a matter of Taking the ** length of the string and subtracting the iSpaceFound ** value from it to get the number of bytes to copy then ** using the iSpaceFound as the reference of where to ** start the COPY from.

Function ParseGroupItems(pszGroupInfo:string;var GroupInfo: TGroupInfo_t):BOOLEAN;

** There are two main functions, ParseGroupItems and ExtractCmdLine.

** ParseGroupItems: ** What does it do?: This function takes the input from the pszGroupInfo ** argument and parses it out into the GroupInfo ** Structure. ** ** Arguments: ** Name: pszGroupInfo ** Type: String ** Why: This is one of the strings that was ** passed back from the dde call that ** contains the Item Information. ** ** Name: GroupInfo ** Type: TGroupInfo_t; ** Why: The Information from pszGroupInfo ** is parsed into this structure and ** passed back to the calling routine. ** ** Returns: TRUE: The Function Sucessfully Parse the Input. ** FALSE: The input could not be sucessfully parsed.


Types


TGroupInfo_t = record
ItemName : String;
CmdLine : String;
WorkingDir : String;
IconFile : String;
GroupPosition : longint;
IconIndex : longint;
Shortcutkey : longint;
MinimizeFlag : longint;
end;
** This is what I could figure out the Strucutre of the information ** passed back from the Program Manager Looks Like.

Constants


Variables