Jump to content

WinQueryProfileData: Difference between revisions

From EDM2
No edit summary
No edit summary
Line 4: Line 4:


==Syntax==
==Syntax==
  WinQueryProfileData ( HAB ''hab'', PSZ ''pszAppName'', PSZ ''pszKeyName'', PVOID ''pvoidRet'', PUSHORT ''pushortRet'' );
  WinQueryProfileData ( HAB ''hab'', PSZ ''pszAppName'', PSZ ''pszKeyName'', PVOID ''pValue'', PUSHORT ''pusSize'' );


==Parameters==
==Parameters==

Revision as of 14:40, 24 November 2023

This function is used to get a string from the OS2 INI file.

Replaced by PrfQueryProfileData since OS/2 1.2 [1]

Syntax

WinQueryProfileData ( HAB hab, PSZ pszAppName, PSZ pszKeyName, PVOID pValue, PUSHORT pusSize );

Parameters

HAB
The anchor block handle
PSZ
Program name string
PSZ
Key for which text is desired
PVOID
The returned data
PUSHORT
The size of the returned data

Return

WinQueryProfileData Returns a success/failure indicator (BOOL).