wwApi Class
This is is the original wwApi class that requires instantiation. Most methods in the wwApi library don't require instantiation, only the methods here require the instance.
do wwApi
loApi = CREATEOBJECT("wwAPI")
? loApi.CreateGuid()
Class Members
Member | Description | |
---|---|---|
![]() |
ActivateWindow | Activates the Window specified by Window Title or Window Handle.
o.ActivateWindow(lvTitle,lnParentHandle)
|
![]() |
aProfileSections | Retrieves all sections of an INI File.
o.aProfileSections(@laSections, lcIniFile)
|
![]() |
GetLastError | Returns the last Windows API error code. Should be called immediately after an API function if an error occurred to retrieve the error code.
o.GetLastError()
|
![]() |
GetUserName | Returns the currently logged on user.
o.GetUserName()
|
![]() |
GetComputerName | Returns the name of the computer as a string.
o.GetComputerName()
|
![]() |
GetSystemDir | Returns the Windows System directory.
o.GetSystemDir(llWindowsDir)
|
![]() |
GetTempPath | Returns the Windows OS temp file path. Unlike SYS(2023) this method returns the Windows TEMP path for the current user rather than VFP's temporary file path even though these may point at the sameā¦
o.GetTempPath()
|
![]() |
GetSystemErrorMsg | Returns the Message text for a Win32API error code.
o.GetSystemErrorMsg(lnErrorNo,lcDLL)
|
![]() |
CreateGUID | Creates either a string or binary GUID value.\ Example: {9F47F480-9641-11D1-A3D0-00600889F23B}
o.CreateGUID(llBinary)
|
![]() |
PlayWave | Plays a WAV file synchronously or asynchronously.
o.PlayWave(pcWaveFile,pnPlayType)
|
![]() |
LogonUser | Allows checking whether a username and password are valid with Windows security.
o.LogonUser(lcUsername, lcPassword, lcServer)
|
![]() |
ImpersonateUser | Allows you to switch user context to a different user in your application by specifying username and password. You can call RevertToSelf() to revert back to the original user account.
o.ImpersonateUser(lcUsername,lcPassword)
|
![]() |
RevertToSelf | This method reverts the impersonated user back to the original user that the application was started under. Useful to rever the user after having called ImpersonateUser.
o.RevertToSelf()
|
![]() |
MessageBeep | Sounds the specified System sound.
o.MessageBeep(lnSound)
|
![]() |
EnumKey | Returns a registry value from a key name based on a numeric index. Allows enumeration of keys in a FOR loop. If key is empty end of list is reached.
o.EnumKey(tnHKey, tcSubKey, tnIndex)
|
![]() |
ReadRegistryString | Reads a string or integer value from the registry.
o.ReadRegistryString(tnHKey, tcSubkey, tcEntry, tlInteger)
|
![]() |
WriteProfileString | Writes a value into an INI file.
o.WriteProfileString(pcFileName,pcSection,pcEntry,pcValue)
|
![]() |
WriteRegistryString | Writes a string value to the registry. If the value doesn't exist it's created. If the key doesn't exist it is also created, but this will only succeed if it's the last key on the hive.
o.WriteRegistryString(tnHKey, tcSubkey, tcEntry, tcValue,tlCreate)
|
![]() |
GetProfileString | Read Profile String information from a given text file using Windows INI formatting conventions
o.GetProfileString(pcFileName,pcSection,pcEntry, pnBufferSize)
|