WinAPI

From Axaptapedia

Jump to: navigation, search

WinAPI is a wrapper class in Dynamics AX that provides access to the Windows API and its DLLs.

[edit] Dynamics AX 3.0

Get files in Directory

WinAPI api = new WinAPI();
str fileName;
int i;
;
 
[i,fileName] = WinAPI::findFirstFile("C:/Users/Public/Documents/Test/*.*");
while(fileName)
{
   info(fileName);
   fileName = WinAPI::findNextFile(i);
}
Personal tools
Microsoft Community
Microsoft Dynamics Ax Community