Click or drag to resize
NOVAS31SHGetSpecialFolderPath Method
Get path to a system folder

Namespace: ASCOM.Astrometry.NOVAS
Assembly: ASCOM.Astrometry (in ASCOM.Astrometry.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
public static bool SHGetSpecialFolderPath(
	IntPtr hwndOwner,
	StringBuilder lpszPath,
	int nFolder,
	bool fCreate
)

Parameters

hwndOwner
Type: SystemIntPtr
SUpply null / nothing to use "current user"
lpszPath
Type: System.TextStringBuilder
returned string folder path
nFolder
Type: SystemInt32
Folder Number from CSIDL enumeration e.g. CSIDL_PROGRAM_FILES_COMMONX86 = 44 = 0x2c
fCreate
Type: SystemBoolean
Indicates whether the folder should be created if it does not already exist. If this value is nonzero, the folder is created. If this value is zero, the folder is not created

Return Value

Type: Boolean
TRUE if successful; otherwise, FALSE.
Remarks