Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added all_SetPathInfo and all_QueryPathInfo
- Loading branch information
Showing
8 changed files
with
100 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/*! | ||
@file all_querypathinfo.c | ||
@brief utility functions for query path info | ||
shared along all code | ||
(c) osFree Project 2024, <http://www.osFree.org> | ||
for licence see licence.txt in root directory, or project website | ||
@author Yuri Prokushev <yuri.prokushev@gmail.com> | ||
*/ | ||
|
||
#include <all_shared.h> /* shared functions and defines */ | ||
|
||
APIRET all_QueryPathInfo(PSZ pszPathName, | ||
ULONG ulInfoLevel, | ||
PVOID pInfo, | ||
ULONG cbInfoBuf) | ||
{ | ||
#ifdef __386__ | ||
return DosQueryPathInfo(pszPathName, ulInfoLevel, pInfo, cbInfoBuf); | ||
#else | ||
return DosQPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfo, cbInfoBuf, 0); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/*! | ||
@file all_setpathinfo.c | ||
@brief utility functions for set path info | ||
shared along all code | ||
(c) osFree Project 2024, <http://www.osFree.org> | ||
for licence see licence.txt in root directory, or project website | ||
@author Yuri Prokushev <yuri.prokushev@gmail.com> | ||
*/ | ||
|
||
#include <all_shared.h> /* shared functions and defines */ | ||
|
||
APIRET all_SetPathInfo(PSZ pszPathName, | ||
ULONG ulInfoLevel, | ||
PVOID pInfoBuf, | ||
ULONG cbInfoBuf, | ||
ULONG flOptions) | ||
{ | ||
#ifdef __386__ | ||
return DosSetPathInfo(pszPathName, ulInfoLevel, pInfoBuf, cbInfoBuf, flOptions); | ||
#else | ||
return DosSetPathInfo(pszPathName, ulInfoLevel, (PBYTE)pInfoBuf, cbInfoBuf, flOptions, 0); | ||
#endif | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
@echo off | ||
set verbose=yes | ||
set root=. | ||
:loop | ||
if exist "%root%\tools\mk\all.mk" goto found | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/*! | ||
@file all_querypathinfo.h | ||
@brief all_QueryPathInfo utility function header, shared along all code | ||
(c) osFree Project 2024, <http://www.osFree.org> | ||
for licence see licence.txt in root directory, or project website | ||
@author Yuri Prokushev <yuri.prokushev@gmail.com> | ||
*/ | ||
|
||
#ifndef _ALL_QUERYPATHINFO_H_ | ||
#define _ALL_QUERYPATHINFO_H_ | ||
|
||
APIRET all_QueryPathInfo(PSZ pszPathName, | ||
ULONG ulInfoLevel, | ||
PVOID pInfo, | ||
ULONG cbInfoBuf); | ||
|
||
#endif /* _ALL_QUERYPATHINFO_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/*! | ||
@file all_setpathinfo.h | ||
@brief all_SetPathInfo utility function header, shared along all code | ||
(c) osFree Project 2024, <http://www.osFree.org> | ||
for licence see licence.txt in root directory, or project website | ||
@author Yuri Prokushev <yuri.prokushev@gmail.com> | ||
*/ | ||
|
||
#ifndef _ALL_SETPATHINFO_H_ | ||
#define _ALL_SETPATHINFO_H_ | ||
|
||
APIRET all_SetPathInfo(PSZ pszPathName, | ||
ULONG ulInfoLevel, | ||
PVOID pInfoBuf, | ||
ULONG cbInfoBuf, | ||
ULONG flOptions); | ||
|
||
#endif /* _ALL_SETPATHINFO_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters