Click to open or copy the files for the NewPkg sample.
Click to open or copy the Common files (required).
NewPkg.exe is a console mode application that can be used for viewing, creating, or removing packages from the SMS database. This code demonstrates datasource connection, folder creation, scalar manipulation, folder display, and helper functions.
For more information, see Newpkg.exe in the Microsoft SMS API.
This sample uses the following keywords:
connecttodatasource; createpackagefolder; createprogitem; createwcl; ctime; didrequesthelp; displaygreeting; displayhelp; displayscalars; displaysmserror; free; getplatformselection; gets; getstatusname; inputstring; malloc; mktime; number; printf; readtime; setscalardword; setscalarstring; smsclosecontainer; smsclosefolder; smscommitfolder; smscreatefolder; smsdatasourceconnect; smsdatasourcedisconnect; smsgetfoldercount; smsgetfolderid; smsgetfoldertype; smsgetnextfolder; smsgetnextscalar; smsgetscalarcount; smslinkfolder; smsopencontainer; smspopulate; smsrewind; smssetscalar; smsunlinkfolder; sprintf; strcmp; strcpy; switch; time; usersaysyes; viewfolder