wine/dlls/advpack advpack.c

Alexandre Julliard julliard at wine.codeweavers.com
Fri Dec 2 04:29:40 CST 2005


ChangeSet ID:	21613
CVSROOT:	/opt/cvs-commit
Module name:	wine
Changes by:	julliard at winehq.org	2005/12/02 04:29:40

Modified files:
	dlls/advpack   : advpack.c 

Log message:
	James Hawkins <truiken at gmail.com>
	Document many of the advpack functions.

Patch: http://cvs.winehq.org/patch.py?id=21613

Old revision  New revision  Changes     Path
 1.17          1.18          +74 -0      wine/dlls/advpack/advpack.c

Index: wine/dlls/advpack/advpack.c
diff -u -p wine/dlls/advpack/advpack.c:1.17 wine/dlls/advpack/advpack.c:1.18
--- wine/dlls/advpack/advpack.c:1.17	2 Dec 2005 10:29:40 -0000
+++ wine/dlls/advpack/advpack.c	2 Dec 2005 10:29:40 -0000
@@ -126,6 +126,8 @@ HRESULT WINAPI RunSetupCommand( HWND hWn
 
 /***********************************************************************
  *		LaunchINFSection  (ADVPACK.@)
+ *
+ * See LaunchINFSectionEx.
  */
 INT WINAPI LaunchINFSection( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show )
 {
@@ -135,6 +137,21 @@ INT WINAPI LaunchINFSection( HWND hWnd, 
 
 /***********************************************************************
  *		LaunchINFSectionEx  (ADVPACK.@)
+ *
+ * Installs an INF section.
+ *
+ * PARAMS
+ *   hWnd    [I] Handle to the window used for the display.
+ *   hInst   [I] Instance of the process.
+ *   cmdline [I] Contains parameters in the order INF,section,CAB,flags.
+ *   show    [I] How the window should be shown.
+ *
+ * RETURNS
+ *  Success: S_OK.
+ *  Failure: E_FAIL.
+ *
+ * BUGS
+ *  Unimplemented.
  */
 HRESULT WINAPI LaunchINFSectionEx( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show )
 {
@@ -181,6 +198,18 @@ BOOL WINAPI DoInfInstall(const SETUPCOMM
 
 /***********************************************************************
  *              IsNTAdmin	(ADVPACK.@)
+ *
+ * Checks if the user has admin privileges.
+ *
+ * PARAMS
+ *   reserved  [I] Reserved.  Must be 0.
+ *   pReserved [I] Reserved.  Must be NULL.
+ *
+ * RETURNS
+ *   TRUE if user has admin rights, FALSE otherwise.
+ *
+ * BUGS
+ *   Unimplemented.
  */
 BOOL WINAPI IsNTAdmin( DWORD reserved, LPDWORD pReserved )
 {
@@ -190,6 +219,11 @@ BOOL WINAPI IsNTAdmin( DWORD reserved, L
 
 /***********************************************************************
  *             NeedRebootInit  (ADVPACK.@)
+ *
+ * Sets up conditions for reboot checking.
+ *
+ * RETURNS
+ *   Value required by NeedReboot.
  */
 DWORD WINAPI NeedRebootInit(VOID)
 {
@@ -199,6 +233,17 @@ DWORD WINAPI NeedRebootInit(VOID)
 
 /***********************************************************************
  *             NeedReboot      (ADVPACK.@)
+ *
+ * Determines whether a reboot is required.
+ *
+ * PARAMS
+ *   dwRebootCheck [I] Value from NeedRebootInit.
+ *
+ * RETURNS
+ *   TRUE if a reboot is needed, FALSE otherwise.
+ *
+ * BUGS
+ *   Unimplemented.
  */
 BOOL WINAPI NeedReboot(DWORD dwRebootCheck)
 {
@@ -208,6 +253,8 @@ BOOL WINAPI NeedReboot(DWORD dwRebootChe
 
 /***********************************************************************
  *             GetVersionFromFile      (ADVPACK.@)
+ *
+ * See GetVersionFromFileEx.
  */
 HRESULT WINAPI GetVersionFromFile( LPSTR Filename, LPDWORD MajorVer,
                                    LPDWORD MinorVer, BOOL Version )
@@ -225,6 +272,21 @@ typedef struct tagLANGANDCODEPAGE
 
 /***********************************************************************
  *             GetVersionFromFileEx    (ADVPACK.@)
+ *
+ * Gets the files version or language information.
+ *
+ * PARAMS
+ *   lpszFilename [I] The file to get the info from.
+ *   pdwMSVer     [O] Major version.
+ *   pdwLSVer     [O] Minor version.
+ *   bVersion     [I] Whether to retrieve version or language info.
+ *
+ * RETURNS
+ *   Always returns S_OK.
+ *
+ * NOTES
+ *   If bVersion is TRUE, version information is retrieved, else
+ *   pdwMSVer gets the language ID and pdwLSVer gets the codepage ID.
  */
 HRESULT WINAPI GetVersionFromFileEx( LPSTR lpszFilename, LPDWORD pdwMSVer,
                                      LPDWORD pdwLSVer, BOOL bVersion )
@@ -452,6 +514,18 @@ HRESULT WINAPI DelNode( LPCSTR pszFileOr
 /***********************************************************************
  *             DelNodeRunDLL32    (ADVPACK.@)
  *
+ * Deletes a file or directory, WinMain style.
+ *
+ * PARAMS
+ *   hWnd    [I] Handle to the window used for the display.
+ *   hInst   [I] Instance of the process.
+ *   cmdline [I] Contains parameters in the order FileOrDirName,Flags.
+ *   show    [I] How the window should be shown.
+ *
+ * RETURNS
+ *   Success: S_OK.
+ *   Failure: E_FAIL.
+ *
  * BUGS
  *   Unimplemented
  */



More information about the wine-cvs mailing list