Using Win32 functions in Visual FoxPro Image Gallery
Process and Thread
..msdn
AssignProcessToJobObject
CommandLineToArgvW
CreateJobObject
CreateProcess
CreateProcessAsUser
CreateProcessWithLogonW
ExitProcess
FreeEnvironmentStrings
GetCommandLine
GetCurrentProcess
GetCurrentProcessId
GetCurrentThread
GetCurrentThreadId
GetEnvironmentStrings
GetEnvironmentVariable
GetPriorityClass
GetProcessIoCounters
GetProcessTimes
GetProcessVersion
GetStartupInfo
GetThreadPriority
IsWow64Process
OpenProcess
RegisterServiceProcess
SetEnvironmentVariable
SetPriorityClass
SetThreadPriority
Sleep
TerminateJobObject
TerminateProcess
WinExec
Code examples:
Converting command-line string to a set of Unicode argument strings
CommandLineToArgvW
..msdn    Add comment     W32 Constants      Translate this page
Parses a Unicode command-line string, and returns a pointer to a set of Unicode argument strings and a count of arguments, similar to the standard C run-time argv and argc values
Code examples:
Converting command-line string to a set of Unicode argument strings
Declaration:
LPWSTR * CommandLineToArgvW(
  LPCWSTR lpCmdLine,  // pointer to a command-line string
  int *pNumArgs       // receives the argument count
);
FoxPro declaration:
DECLARE INTEGER CommandLineToArgvW IN shell32;
    INTEGER   lpCmdLine,;
    INTEGER @ pNumArgs
Parameters:
lpCmdLine
[in] Pointer to a null-terminated Unicode command-line string.

pNumArgs
[out] Pointer to an integer variable that receives the count of arguments parsed.
Return value:
If the function succeeds, the return value is a non-NULL pointer to the constructed argument list, which is an array of Unicode strings.

If the function fails, the return value is NULL.
My comment:
Windows NT/2000/XP: Included in Windows NT 3.5 and later.
Windows 95/98/Me: Unsupported.

MSDN: if the first parameter is the empty string, "", the function returns the path to the current executable file.

See also: GetCommandLine
Word Index links for the CommandLineToArgvW :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-11 19:40:13
Modified: 2013-10-17 22:00:12
Visited in last 7 days: 16
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
22 sec.Function: 'SHGetPathFromIDList'
40 sec.
Function group: 'File System'
59 sec.
Function group: 'Dialog Box'
1.32 min.Function: 'FtpCommand'
1.7 min.Function: 'FtpDeleteFile'
2.05 min.Function: 'GetCurrencyFormat'
2.43 min.Function: 'PathBuildRoot'
2.92 min.Function: 'GetPerformanceInfo'
3.85 min.Function: 'AVIFileInfo'
Google
Advertise here!